288 lines
9.7 KiB
CSS
288 lines
9.7 KiB
CSS
/* Bundled open-source Inter Variable (SIL OFL 1.1, Latin ~47 KB) — optical twin of Apple SF Pro. */
|
||
@font-face {
|
||
font-family: "ReimsSans";
|
||
font-style: normal;
|
||
font-display: swap;
|
||
font-weight: 100 900;
|
||
src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations");
|
||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||
}
|
||
|
||
/* Scoped Simplified Chinese weight-mapping face ("ReimsCJK-SC").
|
||
IMPORTANT: Never attach this unconditionally to all languages — doing so
|
||
hijacks Han Unification `locl` glyphs and turns Traditional Chinese / Japanese
|
||
Kanji into Mainland Simplified forms. Only `:lang(zh-CN|zh-SG|zh-Hans)` activates it. */
|
||
@font-face {
|
||
font-family: "ReimsCJK-SC";
|
||
font-style: normal;
|
||
font-weight: 400 550;
|
||
src:
|
||
local("PingFang SC Medium"), local("PingFangSC-Medium"),
|
||
local("HarmonyOS Sans SC"), local("HarmonyOS_Sans_SC"),
|
||
local("MiSans Regular"), local("MiSans"),
|
||
local("Noto Sans SC Medium"), local("NotoSansSC-Medium"),
|
||
local("Noto Sans SC"), local("NotoSansSC-Regular"),
|
||
local("Source Han Sans CN Medium"), local("SourceHanSansCN-Medium"),
|
||
local("Source Han Sans CN Regular"), local("SourceHanSansCN-Regular");
|
||
unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF, U+F900-FAFF;
|
||
}
|
||
@font-face {
|
||
font-family: "ReimsCJK-SC";
|
||
font-style: normal;
|
||
font-weight: 560 900;
|
||
src:
|
||
local("PingFang SC Semibold"), local("PingFangSC-Semibold"),
|
||
local("PingFang SC Bold"), local("PingFangSC-Bold"),
|
||
local("HarmonyOS Sans SC Bold"), local("HarmonyOS_Sans_SC_Bold"),
|
||
local("MiSans Demibold"), local("MiSans Semibold"), local("MiSans Bold"),
|
||
local("Noto Sans SC SemiBold"), local("NotoSansSC-SemiBold"), local("Noto Sans SC Bold"),
|
||
local("Source Han Sans CN Bold"), local("SourceHanSansCN-Bold");
|
||
unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF, U+F900-FAFF;
|
||
}
|
||
|
||
/* Design tokens — macOS Tahoe aesthetic with Windows platform craft (Light default, Dark & System supported). */
|
||
@layer base {
|
||
:root {
|
||
color-scheme: light;
|
||
|
||
/* Typography — regional CJK family injected via --font-cjk per :lang() */
|
||
--font-locale-pack: ;
|
||
--font-cjk: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
|
||
--font-sans: "ReimsSans", var(--font-locale-pack) -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", var(--font-cjk), system-ui, sans-serif;
|
||
--font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
|
||
--body-lh: 1.48;
|
||
--heading-tracking: -0.015em;
|
||
--fs-11: 11px;
|
||
--fs-12: 12px;
|
||
--fs-13: 13px;
|
||
--fs-14: 14px;
|
||
--fs-15: 15px;
|
||
--fs-16: 16px;
|
||
--fs-20: 20px;
|
||
--fs-24: 24px;
|
||
--fw-regular: 450;
|
||
--fw-medium: 540;
|
||
--fw-strong: 640;
|
||
|
||
/* Spacing (4px grid) */
|
||
--sp-1: 4px;
|
||
--sp-2: 8px;
|
||
--sp-3: 12px;
|
||
--sp-4: 16px;
|
||
--sp-5: 20px;
|
||
--sp-6: 24px;
|
||
--sp-8: 32px;
|
||
|
||
/* Radius */
|
||
--r-sm: 6px;
|
||
--r-md: 8px;
|
||
--r-lg: 12px;
|
||
--r-xl: 16px;
|
||
|
||
/* Surfaces (macOS Tahoe Light) */
|
||
--surface-0: #ffffff;
|
||
--surface-canvas: #ffffff;
|
||
--surface-sidebar-rail: linear-gradient(180deg, #e7f0fa 0%, #dde8f7 100%);
|
||
--surface-sidebar: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(247, 250, 255, 0.72) 100%);
|
||
--surface-sidebar-border: rgba(255, 255, 255, 0.90);
|
||
--surface-sidebar-shadow: 0 4px 18px rgba(15, 35, 70, 0.065), 0 0 0 1px rgba(15, 23, 42, 0.06);
|
||
--surface-chrome: linear-gradient(180deg, #eff4fb 0%, #e8f0fa 100%);
|
||
--surface-statusbar: #eef3fa;
|
||
--surface-1: #f5f6f8;
|
||
--surface-card-elevated: #ffffff;
|
||
--surface-2: rgba(255, 255, 255, 0.98);
|
||
--surface-input: #ffffff;
|
||
--surface-hover: rgba(15, 23, 42, 0.048);
|
||
--surface-active: rgba(15, 23, 42, 0.085);
|
||
--border: rgba(15, 23, 42, 0.08);
|
||
--border-strong: rgba(15, 23, 42, 0.14);
|
||
--highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.85);
|
||
--scrim: rgba(15, 23, 42, 0.34);
|
||
--shadow-btn: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
|
||
--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.025);
|
||
--shadow-overlay: 0 16px 36px rgba(15, 23, 42, 0.16), 0 3px 10px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.06);
|
||
/* Retained for UI Contract v1 (uiApi 1.0.0) theme compatibility; unused by default
|
||
base styles while main.go runs WebView2 in software compositing mode. */
|
||
--blur-chrome: blur(20px) saturate(180%);
|
||
--blur-overlay: blur(18px) saturate(165%);
|
||
|
||
/* Text */
|
||
--text: #1d1d1f;
|
||
--text-2: #424247;
|
||
--text-3: #6e6e73;
|
||
--text-code: #2c2c30;
|
||
|
||
/* Semantics (Apple System Colours) */
|
||
--accent: #007aff;
|
||
--accent-hover: #006be6;
|
||
--accent-text: #ffffff;
|
||
--accent-soft: rgba(0, 122, 255, 0.11);
|
||
--accent-soft-text: #0066d6;
|
||
--focus-ring: 0 0 0 3px rgba(0, 122, 255, 0.30);
|
||
|
||
--status-running: #28cd41;
|
||
--status-busy: #ff9f0a;
|
||
--status-error: #ff3b30;
|
||
--status-idle: #aeaeb2;
|
||
|
||
--ok-soft: rgba(40, 205, 65, 0.13);
|
||
--ok-text: #188c2c;
|
||
--warn-soft: rgba(255, 159, 10, 0.14);
|
||
--warn-text: #a86200;
|
||
|
||
--danger: #ff3b30;
|
||
--danger-soft: rgba(255, 59, 48, 0.10);
|
||
--danger-border: rgba(255, 59, 48, 0.28);
|
||
--danger-text: #d70015;
|
||
--notice-soft: rgba(255, 159, 10, 0.10);
|
||
--notice-border: rgba(255, 159, 10, 0.28);
|
||
|
||
--seg-thumb: #ffffff;
|
||
|
||
/* Motion curves and durations */
|
||
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
||
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
|
||
--ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
|
||
--dur-press: 100ms;
|
||
--dur-fast: 130ms;
|
||
--dur: 180ms;
|
||
--dur-modal: 220ms;
|
||
--dur-toast: 280ms;
|
||
|
||
/* Layout */
|
||
--titlebar-h: 42px;
|
||
--logbar-h: 32px;
|
||
--sidebar-w: 248px;
|
||
--page-max: 632px;
|
||
}
|
||
|
||
:root[data-theme="dark"] {
|
||
color-scheme: dark;
|
||
|
||
--surface-0: #1b1c20;
|
||
--surface-canvas: #1d1e23;
|
||
--surface-sidebar-rail: #17181c;
|
||
--surface-sidebar: linear-gradient(180deg, rgba(40, 41, 48, 0.94) 0%, rgba(34, 35, 41, 0.92) 100%);
|
||
--surface-sidebar-border: rgba(255, 255, 255, 0.09);
|
||
--surface-sidebar-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||
--surface-chrome: linear-gradient(180deg, #212228 0%, #1c1d22 100%);
|
||
--surface-statusbar: #18191e;
|
||
--surface-1: rgba(255, 255, 255, 0.048);
|
||
--surface-card-elevated: rgba(255, 255, 255, 0.075);
|
||
--surface-2: rgba(42, 43, 50, 0.98);
|
||
--surface-input: rgba(0, 0, 0, 0.28);
|
||
--surface-hover: rgba(255, 255, 255, 0.075);
|
||
--surface-active: rgba(255, 255, 255, 0.12);
|
||
--border: rgba(255, 255, 255, 0.085);
|
||
--border-strong: rgba(255, 255, 255, 0.16);
|
||
--highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||
--scrim: rgba(0, 0, 0, 0.58);
|
||
--shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.18);
|
||
--shadow-overlay: 0 18px 40px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.09);
|
||
|
||
--text: #f5f5f7;
|
||
--text-2: #c2c2ca;
|
||
--text-3: #92929c;
|
||
--text-code: #d4d6e0;
|
||
|
||
--accent: #0a84ff;
|
||
--accent-hover: #2492ff;
|
||
--accent-text: #ffffff;
|
||
--accent-soft: rgba(10, 132, 255, 0.20);
|
||
--accent-soft-text: #64b0ff;
|
||
--focus-ring: 0 0 0 3px rgba(10, 132, 255, 0.45);
|
||
|
||
--status-running: #30d158;
|
||
--status-busy: #ffd60a;
|
||
--status-error: #ff453a;
|
||
--status-idle: #6e6e76;
|
||
|
||
--ok-soft: rgba(48, 209, 88, 0.16);
|
||
--ok-text: #30d158;
|
||
--warn-soft: rgba(255, 214, 10, 0.15);
|
||
--warn-text: #ffd60a;
|
||
|
||
--danger: #ff453a;
|
||
--danger-soft: rgba(255, 69, 58, 0.15);
|
||
--danger-border: rgba(255, 69, 58, 0.34);
|
||
--danger-text: #ff8b83;
|
||
--notice-soft: rgba(255, 214, 10, 0.10);
|
||
--notice-border: rgba(255, 214, 10, 0.28);
|
||
|
||
--seg-thumb: #555760;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
:root {
|
||
--dur-press: 0ms;
|
||
--dur-fast: 0ms;
|
||
--dur: 0ms;
|
||
--dur-modal: 0ms;
|
||
--dur-toast: 0ms;
|
||
}
|
||
}
|
||
|
||
@media (prefers-reduced-transparency: reduce) {
|
||
:root {
|
||
--surface-chrome: #ffffff;
|
||
--surface-2: #ffffff;
|
||
--surface-sidebar: #eef3fa;
|
||
--blur-chrome: none;
|
||
--blur-overlay: none;
|
||
}
|
||
:root[data-theme="dark"] {
|
||
--surface-chrome: #1b1c20;
|
||
--surface-2: #2a2b32;
|
||
--surface-sidebar: #24252b;
|
||
}
|
||
}
|
||
|
||
@media (prefers-contrast: more) {
|
||
:root {
|
||
--border: rgba(15, 23, 42, 0.20);
|
||
--border-strong: rgba(15, 23, 42, 0.34);
|
||
--text-2: #3a3a3d;
|
||
--text-3: #5a5a5f;
|
||
}
|
||
:root[data-theme="dark"] {
|
||
--border: rgba(255, 255, 255, 0.20);
|
||
--border-strong: rgba(255, 255, 255, 0.34);
|
||
--text-2: #d2d2da;
|
||
--text-3: #a6a6b0;
|
||
}
|
||
}
|
||
|
||
/* Regional script & OpenType `locl` typography stacks:
|
||
- Simplified Chinese: DirectWrite Medium ink compensation ("ReimsCJK-SC")
|
||
- Traditional Chinese (TW/HK/MO): Orthodox Traditional glyph stack, 400 regular weight
|
||
and taller line-height (1.56) so dense 20+ stroke characters never blob at 11–13px
|
||
- Japanese: Kana/Kanji stack, 400 regular weight, strict kinsoku line-breaking
|
||
- Korean: Hangul stack, 400 regular weight, `word-break: keep-all` syllable-word integrity */
|
||
:root:lang(zh-CN), :root:lang(zh-SG), :root:lang(zh-Hans) {
|
||
--font-cjk: "ReimsCJK-SC", "PingFang SC Medium", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans CN", "Microsoft YaHei UI", sans-serif;
|
||
--heading-tracking: 0em;
|
||
}
|
||
|
||
:root:lang(zh-TW), :root:lang(zh-HK), :root:lang(zh-MO), :root:lang(zh-Hant) {
|
||
--font-cjk: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;
|
||
--fw-regular: 400;
|
||
--body-lh: 1.56;
|
||
--heading-tracking: 0em;
|
||
}
|
||
|
||
:root:lang(ja) {
|
||
--font-cjk: "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo UI", "Meiryo", sans-serif;
|
||
--fw-regular: 400;
|
||
--body-lh: 1.58;
|
||
--heading-tracking: 0em;
|
||
}
|
||
|
||
:root:lang(ko) {
|
||
--font-cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
|
||
--fw-regular: 400;
|
||
--body-lh: 1.54;
|
||
--heading-tracking: 0em;
|
||
}
|
||
}
|