-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
98 lines (95 loc) · 2.04 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
const plugin = require('tailwindcss/plugin')
const extendColors = [
'main',
'secondary',
'error'
].reduce((acc, colorKey, inde)=>{
return {
...acc,
[colorKey]: {
DEFAULT: `var(--color-${colorKey})`,
50: `var(--color-${colorKey}-50)`,
100: `var(--color-${colorKey}-100)`,
200: `var(--color-${colorKey}-200)`,
300: `var(--color-${colorKey}-300)`,
400: `var(--color-${colorKey}-400)`,
500: `var(--color-${colorKey}-500)`,
600: `var(--color-${colorKey}-600)`,
700: `var(--color-${colorKey}-700)`,
800: `var(--color-${colorKey}-800)`,
900: `var(--color-${colorKey}-900)`,
}
}
}, {})
module.exports = {
content: [
'./src/**/*.{js,jsx,ts,tsx,vue,php,html}',
],
future: { },
theme: {
container: {
center: true,
},
fontWeight: {
100: '100',
200: '200',
300: '300',
400: '400',
500: '500',
600: '600',
700: '700',
800: '800',
900: '900',
},
screens: {
sm: '576px',
md: '768px',
lg: '992px',
xl: '1200px',
xxl: '1400px',
xxxl: '1600px',
xxxxl: '1920px',
_sm: {
max: '575px',
},
_md: {
max: '767px',
},
_lg: {
max: '991px',
},
_xl: {
max: '1199px',
},
_xxl: {
max: '1399px',
},
_xxxl: {
max: '1599px',
},
_xxxxl: {
max: '1919px',
},
},
extend: {
colors: extendColors,
screens: {
print: {raw: 'print'},
}
},
},
plugins: [
plugin(function({ addVariant, e }){
addVariant('lang-zh-TW', ({modifySelectors, separator})=>{
modifySelectors(({className})=>`body.lang-zh-TW .${e(`lang-zh-TW${separator}${className}`)}`)
})
addVariant('lang-other', ({modifySelectors, separator})=>{
modifySelectors(({className})=>`body.lang-other .${e(`lang-other${separator}${className}`)}`)
})
}),
],
corePlugins: {
container: false,
animation: false,
},
}