-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
185 lines (179 loc) · 4.95 KB
/
tailwind.config.js
File metadata and controls
185 lines (179 loc) · 4.95 KB
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
184
185
const plugin = require('tailwindcss/plugin');
const colors = require('tailwindcss/colors');
module.exports = {
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
mode: 'jit',
darkMode: false, // or 'media' or 'class'
prefix: 'tw-',
theme: {
extend: {
fontFamily: {
redhat: ['Red Hat Display', 'ui-serif'],
},
backgroundColor: {
new: 'a159fe',
main: '#269DF8',
surface: '#eff6fc',
dark: '#232B3E',
logo: '#FF00B8',
hover: '#FF00B8',
active: '#FF00B8',
NavDark: '#151565',
hoverDark: '#171c28',
profileDark: '#151565',
activeOrange: '#FF655B',
'#F9F9F9': '#F9F9F9',
'#EAEFF2': '#EAEFF2',
popUpDark:'#14152A',
inputColor: '#3a3551',
},
gradientColorStops: {
FFC700: '#FFC700',
FF655B: '#FF655B',
FF00B8: '#FF00B8',
},
textColor: {
NavDark: '#151565',
textGray: '#676565',
darkGray: '#333333',
activeOrange: '#FF655B',
darkBlue: '3E385D',
'#222222': '#222222',
},
boxShadow: {
'md-top': '0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06)',
mentor: '0 25px 50px -12px rgba(0, 0, 0, 1)',
mentorAppButton: '0px 0px 5px 2px rgba(0, 0, 0, 0.3)',
mentorAppMessagesInner: ' inset 0px 5px 20px 1px rgba(0, 0, 0, 0.25)',
mentorAppMessagesOuter: ' 0px 5px 20px 1px rgba(0, 0, 0, 0.25)',
},
colors: {
main: '#FF00B8',
primary: {
100: '#151565',
200: '#FF00B8',
},
black: colors.black,
white: colors.white,
indigo: colors.indigo,
purple: colors.violet,
red: colors.rose,
yellow: colors.amber,
},
borderColor: {
NavDark: '#151565',
main: '#269df8',
line: '#FF00B8',
surface: '#eff6fc',
'#B9BCC1': '#B9BCC1',
},
gridTemplateRows: {
main: '4.5em auto 3em',
10: 'repeat(10, minmax(0, 1fr))',
12: 'repeat(12, minmax(0, 1fr))',
14: 'repeat(14, minmax(0, 1fr))',
},
gridRow: {
'span-7': 'span 7 / span 7',
'span-8': 'span 8 / span 8',
'span-9': 'span 9 / span 9',
'span-10': 'span 10 / span 10',
},
gridTemplateColumns: {
main: '20% auto 5%',
24: 'repeat(24, minmax(0, 1fr))',
},
gridColumn: {
'span-10': 'span 10 / span 10',
'span-11': 'span 11 / span 11',
'span-12': 'span 12 / span 12',
'span-13': 'span 13 / span 13',
'span-14': 'span 14 / span 14',
'span-15': 'span 15 / span 15',
'span-16': 'span 16 / span 16',
'span-18': 'span 18 / span 18',
'span-20': 'span 20 / span 20',
'span-24': 'span 24 / span 24',
},
width: {
'line-1/6': '100%',
'line-2/6': '80%',
'line-3/6': '60%',
'line-4/6': '40%',
'line-5/6': '20%',
'line-6/6': '0%',
'49%': '49%',
'1300px': '1300px',
'950px': '950px',
'640px': '640px',
'300px': '300px',
'280px': '280px',
'200px': '200px',
'160px': '160px',
'140px': '140px',
},
minHeight: {
'600px': '600px',
},
height: {
'660px': '660px',
'600px': '600px',
'330px': '330px',
'240px': '240px',
'140px': '140px',
'50px': '50px',
inherit: 'inherit',
'61%': '61.08786610878661%',
'49%': '49.16317991631799%',
},
maxHeight: {
s: '90vh',
fitContent: 'fit-content',
},
inset: (theme, { negative }) => ({
auto: 'auto',
...theme('spacing'),
...negative(theme('spacing')),
'2/4': '43%',
'1/4': '27%',
'3/4': '30%',
'1/3': '35%',
}),
},
screens: {
// 'sm': '576px',
// 'md': '768px',
// 'lg': '992px',
// 'xl': '1200px',
sm: { max: '576px' },
md: { max: '818px' },
lg: { max: '991px' },
xl: { max: '1199px' },
'2xl': { min: '1200px' },
'3xl': { min: '1400px' },
},
},
variants: {
extend: {
// add new variants to a property we want to extend
backgroundColor: ['label-checked'],
textColor: ['label-checked'],
fontWeight: ['label-checked'],
borderColor: ['label-checked'],
filter: ['label-checked'],
},
},
plugins: [
plugin(({ addVariant, e }) => {
addVariant('label-checked', ({ modifySelectors, separator }) => {
modifySelectors(
({ className }) => {
const eClassName = e(`label-checked${separator}${className}`); // escape class
const yourSelector = 'input[type="radio"]'; // input selector.
return `${yourSelector}:checked ~ .${eClassName}`; // ~ - CSS selector for siblings
},
);
});
}),
],
};