generated from github/codespaces-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
157 lines (135 loc) · 3.05 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
/** @type {import('tailwindcss').Config} */
const plugin = require('tailwindcss/plugin')
module.exports = {
//Dark mode toggle
darkMode: 'class',
//Safelist utility classes to use variable dynamic styles
safelist: [
{ pattern: /animation-delay-(0|150|300|450|600|1000|2000|3000|4000)/, },
],
content: [
"./src/components/**/*.{js,jsx,ts,tsx}",
"./src/util/**/*.{js,jsx,ts,tsx}",
"./src/App.js",
"./public/index.html"
],
theme: {
extend: {
colors: {
EMPTY: "#121213",
CORRECT: "#86efac",
PRESENT: "#fef08a",
ABSENT: "#a1a1aa"
},
fontFamily:{
ATW: "American Typewriter",
TMS: "Trebuchet MS"
},
keyframes: {
Pop: {
'0%': {transform : 'scale(.75)'},
'50%': {transform : 'scale(1.1)'},
},
Shake: {
'0%': {transform : 'translateX(-2px)'},
'40%': {transform : 'translateX(4px)'},
},
Flip: {
"50%" : {
transform : 'rotateX(-90deg)'
},
},
Bounce: {
"20%" : {
transform: 'translateY(-18px)',
},
"40%" : {
transform: 'translateY(8px)',
},
"60%" : {
transform: 'translateY(-9px)',
},
"80%" : {
transform: 'translateY(-4px)',
},
},
},
animation: {
pop: 'Pop 100ms ease-in-out 1',
shake: 'Shake 150ms ease-in-out 2',
flip: 'Flip 1000ms ease-in-out 1',
bounce: 'Bounce 1000ms ease-in-out 1',
},
},
},
plugins: [
plugin(function({ matchUtilities, addComponents, addUtilities, theme }) {
//Animation delay utility Class
matchUtilities(
{
'animation-delay': (value) => ({
'animation-delay' : value
}),
},
{ values: theme('animationDelay') }
)
addUtilities({
'.pb-full': {
'padding-bottom': '100%',
}
})
matchUtilities(
{
'wP': (value) => ({
'width' : `${value}%`
})
},
{
values: {
'10': '10'
}
}
)
matchUtilities(
{
'hP': (value) => ({
'height' : `${value}%`
})
},
{
values: {
'10%': '10'
}
}
)
//Component plugin for standard flexbox
addComponents(
{
'.centerStage' : {
'display' : 'flex',
'place-content' : 'center',
'place-items' : 'center',
}
},
)
},
//End of Additions
//Default values of plugins
{
theme : {
animationDelay : {
0: '0ms',
150: '150ms',
300: '300ms',
450: '450ms',
600: '600ms',
1000: '1000ms',
2000: '2000ms',
3000: '3000ms',
4000: '4000ms',
},
}
})
//End of Plugin
],
}