-
Notifications
You must be signed in to change notification settings - Fork 109
/
tailwind.config.js
40 lines (39 loc) · 1.15 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
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
module.exports = {
darkMode: ['class'],
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
'base-content': withOpacity('--base-content'),
primary: withOpacity('--primary'),
'primary-focus': withOpacity('--primary-focus'),
'primary-accent': withOpacity('--primary-accent'),
'base-100': withOpacity('--base-100'),
'base-200': withOpacity('--base-200'),
'base-300': withOpacity('--base-300'),
'color-purple': withOpacity('--color-purple'),
'color-pink': withOpacity('--color-pink'),
foreground: withOpacity('--foreground'),
background: withOpacity('--background'),
},
gridTemplateColumns: {
'auto-sm': 'repeat(auto-fill, minmax(350px, 1fr))',
},
scale: {
menu: '120',
},
translate: {
500: '40rem',
},
},
},
plugins: [require('@tailwindcss/typography')],
};