-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtailwind.config.cjs
132 lines (131 loc) · 3.96 KB
/
tailwind.config.cjs
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
/**
*
* @param {string} variableName
*/
function withOpactity(variableName) {
return ({ opacityValue = 1 }) => {
return `rgba(var(${variableName}), ${opacityValue})`;
};
}
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
darkMode: ['[data-theme="dark"]'],
theme: {
extend: {
fontSize: {
"3.5xl": [
"2rem",
{
lineHeight: "2.25rem"
}
]
},
keyframes: {
slideDownAndFade: {
from: { opacity: 0, transform: "translateY(-2px)" },
to: { opacity: 1, transform: "translateY(0)" }
},
slideLeftAndFade: {
from: { opacity: 0, transform: "translateX(2px)" },
to: { opacity: 1, transform: "translateX(0)" }
},
slideUpAndFade: {
from: { opacity: 0, transform: "translateY(2px)" },
to: { opacity: 1, transform: "translateY(0)" }
},
slideRightAndFade: {
from: { opacity: 0, transform: "translateX(-2px)" },
to: { opacity: 1, transform: "translateX(0)" }
}
},
animation: {
slideDownAndFade:
"slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideLeftAndFade:
"slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
slideRightAndFade:
"slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)"
},
colors: {
disabled: `rgba(var(--disabled-color))`,
grey: {
DEFAULT: withOpactity(`--grey-color`)
},
"tooltip-light": {
DEFAULT: withOpactity(`--tooltip-light-color`)
},
"tooltip-dark": {
DEFAULT: withOpactity(`--tooltip-dark-color`)
},
accent: {
DEFAULT: withOpactity(`--accent-color`),
bg: withOpactity(`--accent-color-bg`),
border: withOpactity(`--accent-color-border`)
},
background: {
DEFAULT: withOpactity(`--bg-color`)
},
foreground: {
DEFAULT: withOpactity(`--fg-color`)
},
success: {
DEFAULT: withOpactity(`--success-color`),
bg: withOpactity(`--success-color-bg`),
border: withOpactity(`--success-color-border`)
},
attention: {
DEFAULT: withOpactity(`--attention-color`),
bg: withOpactity(`--attention-color-bg`),
border: withOpactity(`--attention-color-border`)
},
danger: {
DEFAULT: withOpactity(`--danger-color`),
bg: withOpactity(`--danger-color-bg`),
border: withOpactity(`--danger-color-border`)
},
severe: {
DEFAULT: withOpactity(`--severe-color`),
bg: withOpactity(`--severe-color-bg`),
border: withOpactity(`--severe-color-border`)
},
open: {
DEFAULT: withOpactity(`--open-color`),
bg: withOpactity(`--open-color-bg`),
border: withOpactity(`--open-color-border`)
},
closed: {
DEFAULT: withOpactity(`--closed-color`),
bg: withOpactity(`--closed-color-bg`),
border: withOpactity(`--closed-color-border`)
},
done: {
DEFAULT: withOpactity(`--done-color`),
bg: withOpactity(`--done-color-bg`),
border: withOpactity(`--done-color-border`)
},
neutral: {
DEFAULT: withOpactity(`--neutral-color`)
},
subtle: {
DEFAULT: withOpactity(`--subtle-color`)
},
header: {
DEFAULT: withOpactity(`--header-color`)
},
ghost: {
DEFAULT: withOpactity(`--ghost-color`)
},
backdrop: {
DEFAULT: withOpactity(`--backdrop-color`)
}
},
boxShadow: {
inset: "0px 0px 0px 3px inset",
subtle: "rgba(31, 35, 40, 0.1) 0px 1px 0px"
}
}
},
plugins: []
};