Files
ai-write/src/styles/design-tokens.css
empty 4212b63df2 feat: 添加主页组件并设为默认首页
- 新增 HomePage.vue 主页组件 (玻璃态设计风格)
- GlobalSidebar logo 改为可点击跳转主页
- 默认页面从 writer 改为 home
- 新增玻璃态 CSS 变量支持

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 03:56:40 +08:00

132 lines
3.2 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ========== 设计令牌系统 - Modern Minimalist ========== */
/* ===== 深色模式(默认) ===== */
:root {
/* 背景色 */
--bg-primary: #0f172a;
/* 页面主背景 */
--bg-secondary: #1e293b;
/* 卡片/面板背景 */
--bg-elevated: #334155;
/* 悬浮元素背景 */
--bg-sunken: #0f172a;
/* 凹陷元素背景 */
/* 边框色 */
--border-default: #334155;
/* 默认边框 */
--border-subtle: #1e293b;
/* 微妙边框 */
--border-strong: #475569;
/* 强调边框 */
--border-focus: #60a5fa;
/* 焦点边框 */
/* 文本色 */
--text-primary: #f1f5f9;
/* 主要内容 */
--text-secondary: #94a3b8;
/* 次要内容 */
--text-muted: #64748b;
/* 禁用/提示文本 */
--text-inverse: #0f172a;
/* 反色文本 */
/* 语义色 */
--accent-primary: #60a5fa;
/* 主操作色 - 蓝色 */
--accent-primary-hover: #3b82f6;
--accent-success: #34d399;
/* 成功 - 绿色 */
--accent-warning: #fbbf24;
/* 警告 - 黄色 */
--accent-danger: #f87171;
/* 危险 - 红色 */
/* 语义背景色(带透明度) */
--info-bg: rgba(96, 165, 250, 0.1);
--success-bg: rgba(52, 211, 153, 0.1);
--warning-bg: rgba(251, 191, 36, 0.1);
--danger-bg: rgba(248, 113, 113, 0.1);
/* 字体 */
--font-display: system-ui, -apple-system, sans-serif;
--font-body: system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
/* 字号 */
--text-xs: 0.6875rem;
/* 11px - 标签、提示 */
--text-sm: 0.8125rem;
/* 13px - 次要内容 */
--text-base: 0.9375rem;
/* 15px - 正文 */
--text-lg: 1.125rem;
/* 18px - 小标题 */
--text-xl: 1.375rem;
/* 22px - 页面标题 */
--text-2xl: 1.75rem;
/* 28px - 大标题 */
--text-3xl: 2.25rem;
/* 36px - 超大标题 */
/* 行高 */
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
/* 字重 */
--font-normal: 400;
--font-medium: 500;
--font-semibold: 600;
--font-bold: 700;
/* 间距4px 基础倍数) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
/* 圆角 */
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-2xl: 16px;
--radius-full: 9999px;
/* 阴影(深色模式更明显) */
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
--shadow-glow: 0 0 15px rgba(96, 165, 250, 0.3);
--shadow-glow-strong: 0 0 25px rgba(96, 165, 250, 0.5);
/* 玻璃拟态 (Glassmorphism) */
--glass-bg: rgba(30, 41, 59, 0.7);
--glass-bg-hover: rgba(51, 65, 85, 0.8);
--glass-border: rgba(255, 255, 255, 0.1);
--glass-blur: 12px;
/* 过渡 */
--transition-fast: 0.15s ease;
--transition-normal: 0.2s ease;
--transition-slow: 0.3s ease;
/* Z-index 层级 */
--z-dropdown: 1000;
--z-sticky: 1020;
--z-fixed: 1030;
--z-modal-backdrop: 1040;
--z-modal: 1050;
--z-popover: 1060;
--z-tooltip: 1070;
}