-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtailwind.config.js
More file actions
58 lines (57 loc) · 1.63 KB
/
tailwind.config.js
File metadata and controls
58 lines (57 loc) · 1.63 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { colors } from './src/styles/tokens.js';
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
darkMode: 'class',
theme: {
extend: {
// 直接使用 tokens.js 中的颜色定义
// Tailwind 会自动处理嵌套对象(如 primary.DEFAULT, surface.dark)
colors: colors,
borderRadius: {
'm3-small': '0.375rem', // 6px
'm3-medium': '0.5rem', // 8px
'm3-large': '0.75rem', // 12px
'm3-xl': '1rem', // 16px
},
boxShadow: {
'card': '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
'card-hover': '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
},
fontFamily: {
sans: [
'"Noto Sans SC"', // Google Fonts (Web)
'"Source Han Sans CN"', // 本地思源黑体 (CN)
'"Source Han Sans SC"', // 本地思源黑体 (SC)
'"Microsoft YaHei"', // Windows 微软雅黑
'"PingFang SC"', // macOS 苹方
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'sans-serif',
],
// 编辑器专用等宽字体栈 (PromptEditor 使用)
mono: [
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'"Liberation Mono"',
'"Courier New"',
'monospace',
],
},
},
},
plugins: [
require('@tailwindcss/container-queries'),
],
}