-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
103 lines (102 loc) · 2.92 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
93
94
95
96
97
98
99
100
101
102
103
function cssVarRgbHelper(cssVariable) {
return ({ opacityVariable, opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(--${cssVariable}), ${opacityValue})`;
}
if (opacityVariable !== undefined) {
return `rgba(var(--${cssVariable}), var(${opacityVariable}, 1))`;
}
return `rgb(var(--${cssVariable}))`;
};
}
module.exports = {
purge: ['src/**/**.js'],
darkMode: 'class',
mode: 'jit',
theme: {
extend: {
colors: {
'primary-bg': cssVarRgbHelper('primary_background'),
'primary-text': cssVarRgbHelper('primary_text'),
'primary-accent': cssVarRgbHelper('primary_accent'),
'secondary-accent': cssVarRgbHelper('primary_secondary_accent'),
'secondary-gray': cssVarRgbHelper('secondary_gray'),
},
borderWidth: {
'1/2': '0.5px',
},
fontSize: {
xxs: '0.625rem',
'4.5xl': '2.5rem',
'7xl': '4.375rem',
},
spacing: {
96: '24rem',
104: '26rem',
112: '28rem',
128: '32rem',
144: '36rem',
160: '40rem',
168: '42rem',
200: '50rem',
240: '60rem',
280: '70rem',
'full-20': '120%',
'90p': '90%',
'1/2-screen': '50vh',
'2/3-screen': '66vh',
'3/4-screen': '75vh',
},
maxWidth: {
240: '60rem',
400: '100rem',
},
inset: {
'1/5': '20%',
'1/6': '16.67%',
'1/7': '0.14%',
'1/10': '10%',
'1/20': '5%',
'2/5': '40%',
unset: 'unset',
},
lineHeight: {
14: '3.5rem',
18: '4.5rem',
22: '5.625rem',
},
screens: {
xs: '320px',
},
borderRadius: {
'1/2': '50%',
},
keyframes: {
shine: {
'0%, 100%': { transform: 'scale(1)' },
'40%, 60%': { transform: 'scale(1.15)' },
},
},
animation: {
shine: 'shine 3s ease-in-out infinite',
},
},
container: {
center: true,
padding: {
DEFAULT: '1.2rem',
sm: '2rem',
},
},
fontFamily: {
sans: ['Roboto', 'ui-sans-serif', 'system-ui'],
},
},
variants: {
extend: {
brightness: ['hover'],
ringWidth: ['focus-visible'],
},
},
plugins: [],
};