-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
50 lines (48 loc) · 1.66 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
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
purge: ['./src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}'],
darkMode: false, // or 'media' or 'class'
theme: {
textShadow: {
'default': '1px 1px 3px rgb(36 37 47 / 99%)',
},
extend: {
backgroundImage: theme => ({
'register': "url('/register.jpg')",
'bg01': "url('/bg01.png')",
'bg02': "url('/bg02.png')"
}),
colors: {
'primary': '#059669',
'primary-ligth': '#05966990',
'primary-dark': '#00704D',
'secundary': '#F0B518',
'secundary-dark': '#A37908',
'secundary-ligth': '#f0ed79',
'blue': {
900:'#09002c'
}
}
},
},
variants: {
extend: {},
},
plugins: [
plugin(({ addVariant, e }) => {
addVariant('label-checked', ({ modifySelectors, separator }) => {
modifySelectors(
({ className }) => {
const eClassName = e(`label-checked${separator}${className}`); // escape class
const yourSelector = 'input[type="radio"]'; // your input selector. Could be any
return `${yourSelector}:checked ~ .${eClassName}`; // ~ - CSS selector for siblings
}
)
})
}),
require('@tailwindcss/line-clamp'),
require('tailwind-scrollbar'),
require('tailwindcss-textshadow'),
],
}