-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
58 lines (56 loc) · 1.7 KB
/
tailwind.config.ts
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
import type { Config } from "tailwindcss";
function alpha(variableName: string) {
// some tailwind magic to allow us to specify opacity with CSS variables (eg: bg-app/80)
// https://tailwindcss.com/docs/customizing-colors#using-css-variables
return `hsla(var(${variableName}), <alpha-value>)`;
}
const config: Config = {
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
colors: {
accent: {
DEFAULT: alpha("--color-accent"),
},
app: {
DEFAULT: alpha("--color-app"),
input: alpha("--color-app-input"),
line: alpha("--color-app-line"),
focus: alpha("--color-app-focus"),
divider: alpha("--color-app-divider"),
selected: alpha("--color-app-selected"),
box: alpha("--color-app-box"),
darkBox: alpha("--color-app-dark-box"),
shade: alpha("--color-app-shade"),
},
menu: {
DEFAULT: alpha("--color-menu"),
},
ink: {
DEFAULT: alpha("--color-ink"),
dull: alpha("--color-ink-dull"),
faint: alpha("--color-ink-faint"),
},
sidebar: {
DEFAULT: alpha("--color-sidebar"),
selected: alpha("--color-sidebar-selected"),
ink: alpha("--color-sidebar-ink"),
inkDull: alpha("--color-sidebar-ink-dull"),
inkFaint: alpha("--color-sidebar-ink-faint"),
divider: alpha("--color-sidebar-divider"),
},
},
},
},
plugins: [require("tailwindcss-animate"), require("tailwindcss-radix")()],
};
export default config;