forked from Andy-set-studio/CUBE-with-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
79 lines (79 loc) · 2.04 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
module.exports = {
content: ['./src/index.html'],
presets: [],
theme: {
screens: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px'
},
colors: {
primary: '#ff5400',
secondary: '#86c7f0',
light: '#f3f3f3',
dark: '#252525'
},
backgroundColor: ({theme}) => theme('colors'),
textColor: ({theme}) => theme('colors'),
spacing: {
'size-0': 'clamp(0.83rem, 0.90rem + -0.32vw, 0.67rem)',
'base': 'clamp(1.00rem, 1.00rem + 0.00vw, 1.00rem)',
'size-1': 'clamp(1.20rem, 1.08rem + 0.59vw, 1.50rem)',
'size-2': 'clamp(1.44rem, 1.12rem + 1.58vw, 2.25rem)',
'size-3': 'clamp(1.73rem, 1.09rem + 3.21vw, 3.38rem)',
'size-4': 'clamp(2.07rem, 0.91rem + 5.83vw, 5.06rem)',
'size-5': 'clamp(2.49rem, 0.50rem + 9.96vw, 7.59rem)'
},
fontSize: {
'size-0': 'clamp(0.83rem, 0.90rem + -0.32vw, 0.67rem)',
'base': 'clamp(1.00rem, 1.00rem + 0.00vw, 1.00rem)',
'size-1': 'clamp(1.20rem, 1.08rem + 0.59vw, 1.50rem)',
'size-2': 'clamp(1.44rem, 1.12rem + 1.58vw, 2.25rem)',
'size-3': 'clamp(1.73rem, 1.09rem + 3.21vw, 3.38rem)',
'size-4': 'clamp(2.07rem, 0.91rem + 5.83vw, 5.06rem)',
'size-5': 'clamp(2.49rem, 0.50rem + 9.96vw, 7.59rem)'
},
fontFamily: {
sans: ['"Inter"', '"Segoe UI"', 'Roboto', '"Helvetica Neue"', 'Arial', 'sans-serif']
},
gap: ({theme}) => theme('spacing'),
margin: ({theme}) => ({
auto: 'auto',
...theme('spacing')
}),
scrollMargin: ({theme}) => ({
...theme('spacing')
}),
textColor: ({theme}) => theme('colors'),
zIndex: {
auto: 'auto',
0: '0',
10: '10',
20: '20',
30: '30',
40: '40',
50: '50'
}
},
variantOrder: [
'first',
'last',
'odd',
'even',
'visited',
'checked',
'empty',
'read-only',
'group-hover',
'group-focus',
'focus-within',
'hover',
'focus',
'focus-visible',
'active',
'disabled'
],
plugins: []
};