-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtailwind.config.js
173 lines (171 loc) · 4.67 KB
/
tailwind.config.js
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/** @type {import('tailwindcss').Config} */
import { heroui } from "@heroui/react";
import animate from "tailwindcss-animate";
import typography from "@tailwindcss/typography";
import safe from "tailwindcss-safe-area";
export default {
content: [
"./index.html",
"./src/**/*.{js,jsx,ts,tsx}",
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {},
screens: {
// 自定义 display-mode: standalone 媒体查询
standalone: { raw: "(display-mode: standalone)" },
},
boxShadow: {
custom: "var(--shadow-custom)",
"custom-sm": "var(--shadow-custom-sm)",
"custom-button": "var(--shadow-custom-button)",
"custom-inner": "var(--shadow-custom-inner)",
"custom-cursor": "var(--shadow-custom-cursor)",
},
keyframes: {
"collapsible-down": {
from: {
height: "0",
opacity: "0.3",
},
to: {
height: "var(--radix-collapsible-content-height)",
opacity: "1",
},
},
"collapsible-up": {
from: {
height: "var(--radix-collapsible-content-height)",
opacity: "1",
},
to: {
height: "0",
opacity: "0.3",
},
},
pulse: {
"0%, 100%": { backgroundColor: "hsl(var(--heroui-content2))" },
"50%": { backgroundColor: "hsl(var(--heroui-content4))" },
},
},
animation: {
"collapsible-down": "collapsible-down 0.2s ease-out",
"collapsible-up": "collapsible-up 0.2s ease-out",
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
},
},
darkMode: ["selector", '[class$="dark"]'],
plugins: [
heroui({
themes: {
light: {
colors: {
divider: "rgba(17, 17, 17, 0.08)",
default: {
DEFAULT: "#e4e4e7",
},
primary: {
50: "#E8FFEA",
100: "#AFF0B5",
200: "#7BE188",
300: "#4CD263",
400: "#23C343",
500: "#00B42A",
600: "#009A29",
700: "#008026",
800: "#006622",
900: "#004D1C",
DEFAULT: "#00B42A",
},
},
},
dark: {
colors: {
divider: "rgba(255,255,255,0.06)",
background: "#1E1E1E",
primary: {
50: "#004D1C",
100: "#046625",
200: "#0A802D",
300: "#129A37",
400: "#1DB440",
500: "#27C346",
600: "#50D266",
700: "#7EE18B",
800: "#B2F0B7",
900: "#EBFFEC",
foreground: "#FFFFFF",
DEFAULT: "#27C346",
},
},
},
"black-dark": {
extend: "dark",
colors: {
divider: "rgba(255,255,255,0.08)",
background: "#000000",
primary: {
50: "#004D1C",
100: "#046625",
200: "#0A802D",
300: "#129A37",
400: "#1DB440",
500: "#27C346",
600: "#50D266",
700: "#7EE18B",
800: "#B2F0B7",
900: "#EBFFEC",
foreground: "#FFFFFF",
DEFAULT: "#27C346",
},
},
},
stone: {
colors: {
background: "#F3F1ED", // or DEFAULT
foreground: "#42403B", // or 50 to 900 DEFAULT
divider: "rgba(17, 17, 17, 0.08)",
focus: "#D19600",
content1: "#ffffff",
content2: "#f5f5f4",
content3: "#e7e5e4",
content4: "#d6d3d1",
primary: {
50: "#FDF8F1",
100: "#FBF1E3",
200: "#F7E3C7",
300: "#F3D6AB",
400: "#EFCA8F",
500: "#EBC27B",
600: "#D19600",
700: "#966900",
800: "#603D00",
900: "#301E00",
foreground: "#FFFFFF",
DEFAULT: "#D19600",
},
default: {
50: "#fafaf9",
100: "#f5f5f4",
200: "#e7e5e4",
300: "#d6d3d1",
400: "#a8a29e",
500: "#78716c",
600: "#57534e",
700: "#44403d",
800: "#292524",
900: "#1c1917",
DEFAULT: "#e7e5e4",
foreground: "#1c1917",
},
},
},
},
}),
animate,
typography,
safe,
],
};