forked from Yuami/SGTTailwindDesign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
35 lines (35 loc) · 941 Bytes
/
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
module.exports = {
purge:{
enabled: true,
content: [
'./src/**/*.html',
'./src/**/*.js',
],
safelist: [
'bg-red-500'
]
},
darkMode: false, // or 'media' or 'class'
theme: {
checkbox: {
icon: '<svg fill="#fff" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ><path d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>'
},
extend: {
colors: {
primary: '#00bf6f',
},
backgroundImage: (theme) => ({
check: `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="icon" fill="none" viewBox="0 0 24 24" stroke="white"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>')`,
}),
},
},
variants: {
extend: {
backgroundColor: ["checked"],
borderColor: ["checked"],
inset: ["checked"],
zIndex: ["hover", "active"],
},
},
plugins: [],
}