Files
CyberGril/web/src/styles/tokens.css
T
2026-10-22 00:56:18 +08:00

44 lines
2.6 KiB
CSS

/* Authoritative HEL-746 R2 tokens; approved geometry and both themes. */
/* ============================================================
Design tokens — 延续 HEL-744 R1,未改首页已认可的比例与字号
R2 新增:阅读底 --glass-read、状态色 --ok/--warn/--danger、--z-*
============================================================ */
:root{
--font-sans: "PingFang SC","HarmonyOS Sans SC","MiSans","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
--font-num: "SF Pro Display","Segoe UI Variable Display","Segoe UI",var(--font-sans);
--fs-whisper: 30px; --fs-title: 20px; --fs-line: 20px; --fs-body: 15px; --fs-meta: 13px; --fs-tiny: 11.5px;
--space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px; --space-7:48px;
--radius-pill:999px; --radius-card:20px; --radius-stage:28px; --radius-field:14px;
--ease-out: cubic-bezier(.22,1,.36,1);
--ease-in-out: cubic-bezier(.65,0,.35,1);
--ease-drift: cubic-bezier(.45,.05,.55,.95);
--dur-fast: 160ms; --dur-ui: 280ms; --dur-panel: 420ms; --dur-stage: 720ms; --dur-theme: 1100ms;
/* 区域面板(日子 / 设置)几何:电脑 */
--pane-l: 5vw; --pane-w: min(1000px, 66vw); --pane-t: 84px; --pane-b: 104px;
--mini-pw: clamp(170px, 14vw, 230px);
}
html[data-theme="moon"]{
--bg-0:#060a1c; --bg-1:#0d1838; --bg-2:#1b2c5e;
--text-1:#eaf0ff; --text-2:rgba(214,226,255,.72); --text-3:rgba(196,210,250,.48);
--accent:#a9dcff; --accent-soft:rgba(169,220,255,.16); --accent-glow:rgba(150,210,255,.55); --on-accent:#08142e;
--glass:rgba(150,180,255,.075); --glass-strong:rgba(28,44,92,.52); --glass-line:rgba(205,222,255,.18); --glass-hi:rgba(255,255,255,.10);
--glass-blur:18px; --glass-sat:120%; --glass-solid:rgba(12,20,50,.88);
--glass-read:rgba(10,18,46,.62); --surface:#0b1330; --field:rgba(255,255,255,.05); --field-line:rgba(205,222,255,.16);
--window-glow:rgba(255,196,140,.20);
--ok:#9fe8cf; --warn:#ffd79c; --danger:#ff9fb3;
}
html[data-theme="fog"]{
--bg-0:#110b26; --bg-1:#22174a; --bg-2:#43307a;
--text-1:#f3ecff; --text-2:rgba(234,222,255,.74); --text-3:rgba(222,206,255,.50);
--accent:#ebbcff; --accent-soft:rgba(235,188,255,.18); --accent-glow:rgba(226,170,255,.55); --on-accent:#2a0f40;
--glass:rgba(210,180,255,.11); --glass-strong:rgba(60,38,108,.50); --glass-line:rgba(236,218,255,.17); --glass-hi:rgba(255,240,255,.14);
--glass-blur:30px; --glass-sat:145%; --glass-solid:rgba(38,22,74,.88);
--glass-read:rgba(34,20,66,.60); --surface:#24154a; --field:rgba(255,240,255,.06); --field-line:rgba(236,218,255,.16);
--window-glow:rgba(255,170,190,.22);
--ok:#a8f0d8; --warn:#ffdcae; --danger:#ffa8c8;
}