-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
46 lines (45 loc) · 1.22 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
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
purge: ['./src/**/*.{js,jsx,ts,tsx}', './src/template.html'],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
backgroundSize: {
'full-h-3': '100% .3rem'
},
backgroundImage: {
swap: 'url(/assets/swap.svg)',
logo: 'url(/assets/logo.svg)'
},
boxShadow: {
'inset-thin': 'inset 0 2px 5px rgba(0,0,0,.2)'
},
minHeight: {
content: 'calc(100vh - 3.5rem - 3.5rem)',
screen: '100vh'
},
maxWidth: {
'1/2': '50%',
'1/3': '33.33%'
}
}
},
variants: {
extend: {},
},
plugins: [
plugin(({ addVariant, e }) => {
addVariant('peer-checked-fch', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.peer:checked ~ .${e(`peer-checked-fch${separator}${className}`)} > :first-child`
})
}),
addVariant('peer-not-checked-lch', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.peer:not(:checked) ~ .${e(`peer-not-checked-lch${separator}${className}`)} > :last-child`
})
})
})
],
}