-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
54 lines (53 loc) · 1.83 KB
/
Copy pathtailwind.config.js
File metadata and controls
54 lines (53 loc) · 1.83 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
const withOpacityValue = (variable) => {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
};
module.exports = {
darkMode: 'class',
mode: 'jit',
content: ['./src/**/*.{ts,tsx}'],
prefix: '',
theme: {
extend: {
colors: {
'theme-black': withOpacityValue('--theme-black'),
'theme-grey': {
dark: withOpacityValue('--theme-grey-dark'),
light: withOpacityValue('--theme-grey-light'),
},
'theme-white': withOpacityValue('--theme-white'),
'theme-indigo': withOpacityValue('--theme-indigo'),
'theme-cyan': withOpacityValue('--theme-cyan'),
'theme-green': withOpacityValue('--theme-green'),
'theme-orange': withOpacityValue('--theme-orange'),
'theme-pink': withOpacityValue('--theme-pink'),
'theme-purple': withOpacityValue('--theme-purple'),
'theme-red': withOpacityValue('--theme-red'),
'theme-yellow': withOpacityValue('--theme-yellow'),
},
fontFamily: {
roboto: ['Roboto', 'Arial', 'Noto Sans', 'sans-serif'],
robotomono: [
'RobotoMono',
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace',
],
},
},
},
plugins: [],
future: {
purgeLayersByDefault: true,
removeDeprecatedGapUtilities: true,
},
};