-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
57 lines (53 loc) · 1.44 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
/** @type {import("tailwindcss").Config} */
function generateColors(color) {
const colors = {};
for (let i = 1; i <= 9; i++) {
const shade = `${i}00`;
colors[shade] = `var(--${color}-${shade})`;
}
return colors;
}
module.exports = {
content: ['./app/**/*.{js,ts,jsx,tsx,mdx}', './src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
colors: {
black: 'var(--black)',
darkGrey: 'var(--darkGrey)',
mediumGrey: 'var(--mediumGrey)',
pressedGrey: 'var(--pressedGrey)',
textColor: 'var(--textColor)',
greyText: 'var(--greyText)',
white: 'var(--white)',
grey: 'var(--grey)',
primary: {
170: 'var(--primary-170)',
100: 'var(--primary-100)',
90: 'var(--primary-90)',
},
pink: generateColors('pink'),
blue: generateColors('blue'),
cyan: generateColors('cyan'),
yellow: generateColors('yellow'),
'dark-blue': 'var(--darkBlue)',
'medium-blue': 'var(--medium-blue)',
'status-green': 'var(--status-green)',
'status-red': 'var(--status-red)',
'teal-primary': {
60: 'var(--teal-primary-60)',
},
},
borderRadius: {
lg: '0.625rem',
'2xl': '1.25rem',
'3xl': '2rem',
},
},
},
plugins: [require('@headlessui/tailwindcss')],
safelist: [
{
pattern: /(bg|text|border)-(pink|blue|cyan|yellow)/,
},
],
};