-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathtailwind.config.ts
133 lines (131 loc) · 5.13 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
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
133
import type { Config } from "tailwindcss";
import pluginAnimate from "tailwindcss-animate";
import pluginRAC from "tailwindcss-react-aria-components";
const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
container: {
center: true,
},
extend: {
colors: {
bg: {
DEFAULT: "hsl(var(--color-bg))",
inverse: "hsl(var(--color-bg-inverse))",
surface: "hsl(var(--color-bg-surface))",
muted: "hsl(var(--color-bg-muted))",
disabled: "hsl(var(--color-bg-disabled))",
overlay: "hsl(var(--color-bg-overlay))",
tooltip: "hsl(var(--color-bg-tooltip))",
neutral: {
DEFAULT: "hsl(var(--color-bg-neutral))",
hover: "hsl(var(--color-bg-neutral-hover))",
active: "hsl(var(--color-bg-neutral-active))",
},
primary: {
DEFAULT: "hsl(var(--color-bg-primary))",
hover: "hsl(var(--color-bg-primary-hover))",
active: "hsl(var(--color-bg-primary-active))",
},
success: {
DEFAULT: "hsl(var(--color-bg-success))",
hover: "hsl(var(--color-bg-success-hover))",
active: "hsl(var(--color-bg-success-active))",
muted: {
DEFAULT: "hsl(var(--color-bg-success-muted))",
hover: "hsl(var(--color-bg-success-muted-hover))",
active: "hsl(var(--color-bg-success-muted-active))",
},
},
danger: {
DEFAULT: "hsl(var(--color-bg-danger))",
hover: "hsl(var(--color-bg-danger-hover))",
active: "hsl(var(--color-bg-danger-active))",
muted: {
DEFAULT: "hsl(var(--color-bg-danger-muted))",
hover: "hsl(var(--color-bg-danger-muted-hover))",
active: "hsl(var(--color-bg-danger-muted-active))",
},
},
warning: {
DEFAULT: "hsl(var(--color-bg-warning))",
hover: "hsl(var(--color-bg-warning-hover))",
active: "hsl(var(--color-bg-warning-active))",
muted: {
DEFAULT: "hsl(var(--color-bg-warning-muted))",
hover: "hsl(var(--color-bg-warning-muted-hover))",
active: "hsl(var(--color-bg-warning-muted-active))",
},
},
accent: {
DEFAULT: "hsl(var(--color-bg-accent))",
hover: "hsl(var(--color-bg-accent-hover))",
active: "hsl(var(--color-bg-accent-active))",
muted: {
DEFAULT: "hsl(var(--color-bg-accent-muted))",
hover: "hsl(var(--color-bg-accent-muted-hover))",
active: "hsl(var(--color-bg-accent-muted-active))",
},
},
},
fg: {
DEFAULT: "hsl(var(--color-fg))",
muted: {
DEFAULT: "hsl(var(--color-fg-muted))",
inverse: "hsl(var(--color-fg-muted-inverse))",
},
inverse: "hsl(var(--color-fg-inverse))",
disabled: "hsl(var(--color-fg-disabled))",
link: {
DEFAULT: "hsl(var(--color-fg-link))",
hover: "hsl(var(--color-fg-link-hover))",
active: "hsl(var(--color-fg-link-active))",
visited: "hsl(var(--color-fg-link-visited))",
},
accent: "hsl(var(--color-fg-accent))",
success: "hsl(var(--color-fg-success))",
warning: "hsl(var(--color-fg-warning))",
danger: "hsl(var(--color-fg-danger))",
info: "hsl(var(--color-fg-info))",
onAccent: "hsl(var(--color-fg-onAccent))",
onNeutral: "hsl(var(--color-fg-onNeutral))",
onPrimary: "hsl(var(--color-fg-onPrimary))",
onSuccess: "hsl(var(--color-fg-onSuccess))",
onMutedSuccess: "hsl(var(--color-fg-onMutedSuccess))",
onDanger: "hsl(var(--color-fg-onDanger))",
onMutedDanger: "hsl(var(--color-fg-onMutedDanger))",
onWarning: "hsl(var(--color-fg-onWarning))",
onMutedWarning: "hsl(var(--color-fg-onMutedWarning))",
onTooltip: "hsl(var(--color-fg-onTooltip))",
},
border: {
DEFAULT: "hsl(var(--color-border))",
field: "hsl(var(--color-border-field))",
control: "hsl(var(--color-border-control))",
hover: "hsl(var(--color-border-hover))",
active: "hsl(var(--color-border-active))",
disabled: "hsl(var(--color-border-disabled))",
danger: "hsl(var(--color-border-danger))",
success: "hsl(var(--color-border-success))",
warning: "hsl(var(--color-border-warning))",
info: "hsl(var(--color-border-info))",
secondary: "hsl(var(--color-border-secondary))",
focus: "hsl(var(--color-border-focus))",
inverse: "hsl(var(--color-border-inverse))",
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
},
plugins: [pluginAnimate, pluginRAC],
};
export default config;