-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
67 lines (63 loc) · 1.36 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
const colors = {
orange: {
default: 'var(--color-orange-default)',
accent: 'var(--color-orange-accent)'
},
pink: {
default: 'var(--color-pink-default)',
accent: 'var(--color-pink-accent)'
},
green: {
default: 'var(--color-green-default)',
accent: 'var(--color-green-accent)'
},
violet: {
default: 'var(--color-violet-default)',
accent: 'var(--color-violet-accent)'
},
blue: {
default: 'var(--color-blue-default)',
accent: 'var(--color-blue-accent)'
},
background: {
default: 'var(--color-background-default)',
accent: 'var(--color-background-accent)'
},
text: {
default: 'var(--color-text-default)',
accent: 'var(--color-text-accent)'
}
}
module.exports = {
content: ['./src/**/*.{jsx,css}'],
safelist: [].concat(...Object.keys(colors).map(color => {
return [
`text-${color}-default`,
`text-${color}-accent`,
`bg-${color}-default`,
`bg-${color}-accent`,
`hover:bg-${color}-default`,
`hover:bg-${color}-accent`
]
})),
theme: {
extend: {
animation: {
'spin-slow': 'spin 3s linear infinite',
},
width: {
contextMenu: '205px'
},
placeholderColor: {
text: {
default: 'var(--color-text-default)'
}
},
colors
},
},
variants: {
extend: {},
},
plugins: [],
};