-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
92 lines (90 loc) · 2.3 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
const { boxShadow } = require('tailwindcss/defaultTheme')
module.exports = {
purge: [
'./pages/*.tsx',
'./pages/**/*.tsx',
'./components/*.tsx',
'./components/**/*.tsx',
'./components/*.js',
'./components/**/*.js',
'./pages/*.js',
'./components/footer-box/*.js'
],
theme: {
extend: {
orderOpacity: ['active'],
spacing: {
'2/3': '66.66666667%'
},
animation: {
enter: 'enter 200ms ease-out'
},
keyframes: {
enter: {
'0%': { transform: 'scale(0.9)', opacity: 0 },
'100%': { transform: 'scale(1)', opacity: 1 }
}
}
},
screens: {
'--ms': '200px',
'--m': '350px',
'--ml': '450px',
'--t': '850px',
'--d': '1280px',
},
borderRadius: {
default: '4px',
medium: '8px',
regular: '16px',
large: '24px',
full: '9999px'
},
container: {
padding: '1rem',
center: true
},
boxShadow: {
...boxShadow,
xs: '0 2px 2px rgba(0,0,0,0.02)',
sm: '0 4px 4px rgba(0,0,0,0.02)'
},
colors: {
primary: 'var(--c-primary)',
secondary: 'var(--c-yellow)',
gradient:'var(--c-gradient)',
'secondary-20': 'var(--c-yellow-20)',
'secondary-40': 'var(--c-yellow-40)',
'secondary-60': 'var(--c-yellow-60)',
'secondary-80': 'var(--c-yellow-80)',
'text-color': 'var(--c-text-color)'
}
},
variants: {
extend: {
borderWidth: ['group-hover', 'first', 'group-focus'],
borderRadius: [
'responsive',
'hover',
'focus',
'group-hover',
'group-focus'
],
textDecoration: ['hover', 'group-hover', 'group-focus'],
boxShadow: ['active', 'focus'],
backgroundColor: ['group-focus', 'group-hover'],
textColor: ['group-hover', 'group-focus'],
},
border:['hover','focus'],
fontSize: ['group-hover', 'hover', 'group-focus'],
textColor: ['responsive', 'hover', 'focus'],
backgroundColor: ['responsive', 'hover', 'focus'],
translate: ['hover', 'focus', 'group-hover', 'group-focus'],
opacity: ['hover', 'group-hover', 'group-focus'],
scale: ['hover', 'group-hover', 'group-focus']
},
future: {
removeDeprecatedGapUtilities: true,
purgeLayersByDefault: true
}
}