-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
29 lines (29 loc) · 870 Bytes
/
tailwind.config.js
File metadata and controls
29 lines (29 loc) · 870 Bytes
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{ts,tsx}",
],
darkMode: 'class', // 通过 .dark 类控制暗色主题
theme: {
extend: {
colors: {
// 语义化颜色,自动适配明暗主题
bg: {
base: 'rgb(var(--bg-base) / <alpha-value>)',
surface: 'rgb(var(--bg-surface) / <alpha-value>)',
hover: 'rgb(var(--bg-hover) / <alpha-value>)',
},
text: {
primary: 'rgb(var(--text-primary) / <alpha-value>)',
secondary: 'rgb(var(--text-secondary) / <alpha-value>)',
tertiary: 'rgb(var(--text-tertiary) / <alpha-value>)',
},
primary: {
DEFAULT: 'rgb(var(--primary) / <alpha-value>)',
hover: 'rgb(var(--primary-hover) / <alpha-value>)',
},
},
},
},
plugins: [],
}