-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
65 lines (59 loc) · 1.89 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
const defaultTheme = require("tailwindcss/defaultTheme");
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue || 1})`;
}
return `rgb(var(${variableName}))`;
};
}
module.exports = {
content: [
"./src/app/**/*.{js,ts,jsx,tsx}",
"./src/components/**/*.{js,ts,jsx,tsx}",
"./src/page_contents/**/*.{js,ts,jsx,tsx}",
],
theme: {
screens: {
xs: "350px",
...defaultTheme.screens,
},
extend: {
height: {
0.7: "0.1875rem",
},
animation: {
"spin-slow": "spin 9s linear infinite",
},
colors: {
theme: {
"main-bg": withOpacity("--main-bg"),
// eslint-disable-next-line quote-props
accent: withOpacity("--accent"),
"text-main": withOpacity("--text-main"),
"text-accent": withOpacity("--text-accent"),
"text-alt": withOpacity("--text-alt"),
// white: withOpacity('--white'),
// prime: withOpacity('--prime'),
// bg: withOpacity('--bg'),
// grey: withOpacity('--grey'),
// 'dark-grey': withOpacity('--dark-grey'),
// 'light-grey': withOpacity('--light-grey'),
// 'very-light-grey': withOpacity('--very-light-grey'),
// midnight: withOpacity('--midnight'),
// dark: withOpacity('--dark'),
// black: withOpacity('--black'),
// red: withOpacity('--red'),
// 'red-dark': withOpacity('--red-dark'),
// green: withOpacity('--green'),
// orange: withOpacity('--orange'),
// blue: withOpacity('--blue'),
// 'prime-light': withOpacity('--prime-light'),
// 'prime-dark': withOpacity('--prime-dark')
// 'prime-dark': withOpacity('--prime-dark'),
},
},
},
},
plugins: [],
};