-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
63 lines (58 loc) · 1.75 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
module.exports = {
theme: {
colors: {
transparent: 'transparent',
black: '#000',
white: '#fff',
primary: '#e3001b',
secondary: '#0f204b',
grayBlue: '#6a7b9c',
danger: '#f53d3d',
light: '#f2f2f2',
dark: '#222',
positive: '#a40000',
negative: '#668000',
equal: '#008000',
positiveBg: '#798000',
negativeBg: '#cc001b',
equalBg: '#009900',
gray: {
100: '#fafafa',
200: '#f5f5f5',
300: '#f0f0f0',
400: '#dedede',
500: '#bfbfbf',
600: '#949494',
700: '#666666',
800: '#474747',
900: '#2b2b2b',
},
},
screens: {
sm: '640px',
},
container: {
center: true,
},
},
variants: {
borderStyle: ['responsive', 'first-child', 'last-child'],
borderWidth: ['responsive', 'first-child', 'last-child'],
},
plugins: [
function({ addVariant, e }) {
addVariant('first-child', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`first-child${separator}${className}`)}:first-child`
})
})
},
function({ addVariant, e }) {
addVariant('last-child', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(`last-child${separator}${className}`)}:last-child`
})
})
},
]
};