-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
183 lines (181 loc) · 7.79 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
function withOpacityValue(variable) {
return ({opacityValue}) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`
}
return `rgb(var(${variable}) / ${opacityValue})`
}
}
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,jsx}'],
theme: {
extend: {
colors: {
transparent: 'transparent',
current: 'currentColor',
white: '#ffffff',
black: '#000000',
},
fontFamily: {
brand: ['Rajdhani'],
navigation: ['Oswald'],
primary: ['Merriweather'],
secondary: ['Lato'],
lesson: ['Sumana'],
typing: ['Roboto Serif'],
keyboard: ['Montserrat']
},
textColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
backgroundColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
ringColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
borderColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
boxShadowColor: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
gradientColorStops: {
transparent: 'var(--color-primary-transparent)',
50: withOpacityValue('--color-primary-50'),
100: withOpacityValue('--color-primary-100'),
200: withOpacityValue('--color-primary-200'),
300: withOpacityValue('--color-primary-300'),
400: withOpacityValue('--color-primary-400'),
500: withOpacityValue('--color-primary-500'),
600: withOpacityValue('--color-primary-600'),
700: withOpacityValue('--color-primary-700'),
800: withOpacityValue('--color-primary-800'),
900: withOpacityValue('--color-primary-900'),
},
gridTemplateColumns: {
'50': 'repeat(50, minmax(0, 1fr))',
'kfirst': 'repeat(13, minmax(0,1fr)) 1.5fr',
'ksecond': '1.5fr repeat(12, minmax(0,1fr)) 1fr',
'kthird': '1.75fr repeat(11,minmax(0,1fr)) 1.75fr',
'kfourth': '2.25fr repeat(10, minmax(0,1fr)) 2.25fr',
'kfifth': '1.5fr 1.5fr 8.5fr 1.5fr 1.5fr',
},
keyframes: {
blink_cursor: {
'50%': {
borderBottomColor: "rgba(203 213 225 / 0.4)"
}
},
blink_border: {
'50%': {
borderColor: "rgba(203 213 225 / 0.4)"
}
},
shakeY: {
'from, to': {transform: 'translate3d(0,0,0)'},
'10%,30%,50%,70%,90%': {transform: 'translate3d(0, -4px, 0)'},
'20%,40%,60%,80%': {transform: 'translate3d(0, 4px, 0)'}
},
shakeX: {
'from, to': {transform: 'translate3d(0,0,0)'},
'10%,30%,50%,70%,90%': {transform: 'translate3d(-4px, 0, 0)'},
'20%,40%,60%,80%': {transform: 'translate3d(4px, 0, 0)'}
},
blink_bg: {
'50%': {
backgroundColor: "rgba(255 255 255 / 0.9)"
}
},
key_fadein: {
'0%': {opacity: 0.6},
'50%': {
opacity: 0.8
},
'100%': {
opacity: 1
},
},
hand_fadein: {
'0%': {opacity: 0.5},
'100%': {
opacity: 0.6
},
},
},
animation: {
blink_cursor: "blink_cursor 0.8s infinite",
blink_border: "blink_border 1.5s infinite",
shakeY: "shakeY 1s 1",
shakeX: "shakeX 1s 1",
blink_bg: "blink_bg 0.7s infinite",
key_fadein: "key_fadein 0.5s linear forwards",
hand_fadein: "hand_fadein 0.8s linear forwards",
},
screens: {
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
},
},
},
variants: {},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
require('@tailwindcss/line-clamp'),
],
}