-
Notifications
You must be signed in to change notification settings - Fork 49
/
tailwind.config.ts
108 lines (105 loc) · 3.94 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
import type { Config } from "tailwindcss";
const config = {
darkMode: ["class"],
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
colors: {
danger: "#FA3D1D",
success: "#4BD17E",
primary: {
dark: {
DEFAULT: "var(--grk-primary-dark-DEFAULT)",
100: "var(--grk-primary-dark-100)",
200: "var(--grk-primary-dark-200)",
300: "var(--grk-primary-dark-300)",
400: "var(--grk-primary-dark-400)",
500: "var(--grk-primary-dark-500)",
600: "var(--grk-primary-dark-600)",
700: "var(--grk-primary-dark-700)",
800: "var(--grk-primary-dark-800)",
900: "var(--grk-primary-dark-900)",
},
light: {
DEFAULT: "var(--grk-primary-light-DEFAULT)",
100: "var(--grk-primary-light-100)",
200: "var(--grk-primary-light-200)",
300: "var(--grk-primary-light-300)",
400: "var(--grk-primary-light-400)",
500: "var(--grk-primary-light-500)",
600: "var(--grk-primary-light-600)",
700: "var(--grk-primary-light-700)",
800: "var(--grk-primary-light-800)",
900: "var(--grk-primary-light-900)",
},
},
background: {
light: "var(--grk-background-light)",
dark: "var(--grk-background-dark)",
},
foreground: {
dark: "var(--grk-foreground-dark)",
light: "var(--grk-foreground-light)",
},
secondary: {
dark: "var(--grk-secondary-dark)",
light: "var(--grk-secondary-light)",
},
fill: {
DEFAULT: "var(--grk-primary-light)",
},
ring: {
DEFAULT: "var(--grk-primary-light)",
},
stroke: {
DEFAULT: "var(--grk-primary-light)",
},
},
borderColor: {
light: "var(--grk-secondary-light)",
dark: "var(--grk-secondary-dark)",
},
borderRadius: {
DEFAULT: "var(--grk-border-radius)",
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--grk-radix-accordion-content-height)" },
},
"accordion-up": {
from: {
height: "var(--grk-radix-accordion-content-height)",
},
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
safelist: [
{
pattern: RegExp(
/^(bg|text|shadow|border|stroke|ring|fill)-(background|foreground|primary|secondary)-(light|dark)$/,
),
variants: [
"dark",
"hover",
"ui-selected",
"dark:hover",
"dark:ui-selected",
],
},
{
pattern: RegExp(
/^(bg|text|shadow|border|stroke|ring|fill)-(primary)-(light|dark)-(DEFAULT|100|200|300|400|500|600|700|800|900)$/,
),
variants: ["dark", "hover", "dark:hover"],
},
],
plugins: [require("tailwindcss-animate")],
} satisfies Config;
export default config;