-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
43 lines (43 loc) · 1.27 KB
/
tailwind.config.js
File metadata and controls
43 lines (43 loc) · 1.27 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
background: ({ opacityValue }) =>
opacityValue !== undefined ? `color-mix(in srgb, var(--background) ${opacityValue * 100}%, transparent)` : `var(--background)`,
foreground: ({ opacityValue }) =>
opacityValue !== undefined ? `color-mix(in srgb, var(--foreground) ${opacityValue * 100}%, transparent)` : `var(--foreground)`,
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
destructive: "var(--destructive)",
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
},
borderRadius: {
lg: "var(--radius)",
md: "var(--radius-md)",
sm: "var(--radius-sm)",
},
},
},
plugins: [],
}