feat(desktop): add data-driven theme system

This commit is contained in:
zhayujie
2026-07-19 18:37:06 +08:00
parent 0c76d851cb
commit e8d9fb4e51
15 changed files with 778 additions and 23 deletions

View File

@@ -5,8 +5,9 @@ module.exports = {
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'system-ui', '-apple-system', '"PingFang SC"', '"Hiragino Sans GB"', '"Microsoft YaHei"', 'sans-serif'],
mono: ['"JetBrains Mono"', '"Fira Code"', 'Consolas', 'monospace'],
// Driven by CSS variables so a skin can restyle typography.
sans: 'var(--font-sans)',
mono: 'var(--font-mono)',
},
colors: {
'danger-soft': 'var(--danger-soft)',
@@ -62,8 +63,9 @@ module.exports = {
lg: 'var(--shadow-lg)',
},
borderRadius: {
card: '12px',
btn: '8px',
card: 'var(--radius-card)',
btn: 'var(--radius-btn)',
sm: 'var(--radius-sm)',
},
animation: {
'pulse-dot': 'pulseDot 1.4s infinite ease-in-out both',