-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
48 lines (47 loc) · 1.22 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** @type {import('tailwindcss').Config} */
const {
getTailwindCompatibleSemanticColors
} = require('./get-tailwind-colors');
const generateSafelist = require('./tailwind-plugins/generate-safelist');
export default {
darkMode: 'class',
content: [
'./src/stories/**/*.{js,ts,jsx,tsx,mdx}',
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/stories/**/*.{js,ts,jsx,tsx,mdx}'
],
safelist: [...generateSafelist(), 'disabled:'],
theme: {
extend: {
colors: {
white: '#fff',
black: '#000'
},
semanticColors: getTailwindCompatibleSemanticColors(),
spacing: {
'space-none': '0px',
'space-1': '0.125rem',
'space-2': '0.25rem',
'space-3': '0.5rem',
'space-4': '1rem',
'space-5': '1.5rem',
'space-6': '2rem',
'space-7': '2.5rem'
}
}
},
variants: {
extend: {
cursor: ['disabled'],
textColor: ['disabled']
}
},
plugins: [
require('@tailwindcss/container-queries'),
require('./tailwind-plugins/semantic-colors'),
require('@tailwindcss/typography')
]
};