-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtailwind.config.js
60 lines (60 loc) · 1.35 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
const { colors } = require('tailwindcss/defaultTheme');
// variant defaults
// https://tailwindcss.com/docs/configuring-variants/#default-variants-reference
module.exports = {
theme: {
extend: {
spacing: {
9: '2.25rem',
11: '2.75rem',
14: '3.5rem',
18: '4.5rem'
},
fontSize: {
xxs: '0.625rem'
},
stroke: {
...colors
},
minWidth: {
48: '12rem'
},
inset: {
full: '100%'
},
transitionDuration: {
0: '0ms'
},
transitionDelay: {
0: '0ms'
}
},
container: {
center: true
}
},
variants: {
borderColor: ['responsive', 'hover', 'focus', 'first', 'last', 'after'],
borderRadius: ['responsive', 'first', 'last'],
borderWidth: ['responsive', 'first', 'last'],
margin: ['responsive', 'before', 'first', 'last'],
textColor: ['responsive', 'hover', 'focus', 'before'],
backgroundColor: ['responsive', 'hover', 'focus', 'before', 'after']
},
plugins: [
function({ addVariant, e }) {
addVariant('before', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`before${separator}${className}`)}:before`;
});
});
},
function({ addVariant, e }) {
addVariant('after', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`after${separator}${className}`)}:after`;
});
});
}
]
};