-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
178 lines (177 loc) · 5.37 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
const plugin = require('tailwindcss/plugin');
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
purge: ['./pages/**/*.tsx', './components/**/*.tsx'],
darkMode: 'class', // or 'media' or 'class']
mode: 'jit',
theme: {
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
colors: {
blue: {
DEFAULT: '#3E82FC',
50: '#FFFFFF',
100: '#FFFFFF',
200: '#D5E4FE',
300: '#A2C3FE',
400: '#70A3FD',
500: '#3E82FC',
600: '#0C61FB',
700: '#034DD1',
800: '#023A9F',
900: '#02286C',
},
},
},
},
variants: {
extend: {
padding: ['important'],
backgroundColor: ['important'],
accessibility: ['important'],
alignContent: ['important'],
alignItems: ['important'],
alignSelf: ['important'],
animation: ['important'],
appearance: ['important'],
backgroundAttachment: ['important'],
backgroundClip: ['important'],
backgroundImage: ['important'],
backgroundOpacity: ['important'],
backgroundPosition: ['important'],
backgroundRepeat: ['important'],
backgroundSize: ['important'],
borderCollapse: ['important'],
borderColor: ['important'],
borderOpacity: ['important'],
borderRadius: ['important'],
borderStyle: ['important'],
borderWidth: ['important'],
boxShadow: ['important'],
boxSizing: ['important'],
clear: ['important'],
container: ['important'],
cursor: ['important'],
display: ['important'],
divideColor: ['important'],
divideOpacity: ['important'],
divideStyle: ['important'],
divideWidth: ['important'],
fill: ['important'],
flex: ['important'],
flexDirection: ['important'],
flexGrow: ['important'],
flexShrink: ['important'],
flexWrap: ['important'],
float: ['important'],
fontFamily: ['important'],
fontSize: ['important'],
fontSmoothing: ['important'],
fontStyle: ['important'],
fontVariantNumeric: ['important'],
fontWeight: ['important'],
gap: ['important'],
gradientColorStops: ['important'],
gridAutoColumns: ['important'],
gridAutoFlow: ['important'],
gridAutoRows: ['important'],
gridColumn: ['important'],
gridColumnEnd: ['important'],
gridColumnStart: ['important'],
gridRow: ['important'],
gridRowEnd: ['important'],
gridRowStart: ['important'],
gridTemplateColumns: ['important'],
gridTemplateRows: ['important'],
height: ['important'],
inset: ['important'],
justifyContent: ['important'],
justifyItems: ['important'],
justifySelf: ['important'],
letterSpacing: ['important'],
lineHeight: ['important'],
listStylePosition: ['important'],
listStyleType: ['important'],
margin: ['important'],
maxHeight: ['important'],
maxWidth: ['important'],
minHeight: ['important'],
minWidth: ['important'],
objectFit: ['important'],
objectPosition: ['important'],
opacity: ['important', 'disabled'],
order: ['important'],
outline: ['important'],
overflow: ['important'],
overscrollBehavior: ['important'],
placeContent: ['important'],
placeItems: ['important'],
placeSelf: ['important'],
placeholderColor: ['important'],
placeholderOpacity: ['important'],
pointerEvents: ['important'],
position: ['important'],
resize: ['important'],
ringColor: ['important'],
ringOffsetColor: ['important'],
ringOffsetWidth: ['important'],
ringOpacity: ['important'],
ringWidth: ['important'],
rotate: ['important'],
scale: ['important'],
skew: ['important'],
space: ['important'],
stroke: ['important'],
strokeWidth: ['important'],
tableLayout: ['important'],
textAlign: ['important'],
textColor: ['important'],
textDecoration: ['important'],
textOpacity: ['important'],
textOverflow: ['important'],
textTransform: ['important'],
transform: ['important'],
transformOrigin: ['important'],
transitionDelay: ['important'],
transitionDuration: ['important'],
transitionProperty: ['important'],
transitionTimingFunction: ['important'],
translate: ['important'],
userSelect: ['important'],
verticalAlign: ['important'],
visibility: ['important'],
whitespace: ['important'],
width: ['important'],
wordBreak: ['important'],
zIndex: ['important'],
},
},
plugins: [
require('@tailwindcss/typography'),
plugin(function ({ addBase, theme }) {
addBase({
h1: { color: 'white' },
h2: { color: 'white' },
h3: { color: 'white' },
h4: { color: 'white' },
h5: { color: 'white' },
h6: { color: 'white' },
p: { color: 'white' },
span: { color: 'white' },
a: { color: 'white' },
});
}),
plugin(function ({ addVariant }) {
addVariant('important', ({ container }) => {
container.walkRules(rule => {
rule.selector = `.\\!${rule.selector.slice(1)}`;
rule.walkDecls(decl => {
decl.important = true;
});
});
});
}),
],
};