123 lines
2.8 KiB
CSS
123 lines
2.8 KiB
CSS
/*
|
|
tokens.css — design tokens. Every color, size, radius, shadow and duration used by the
|
|
UI comes from here; retheme by editing this file only.
|
|
*/
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
/* palette */
|
|
--bg: #09090b;
|
|
--bg-elev: #0f0f12;
|
|
--surface: #15151a;
|
|
--surface-2: #1c1c22;
|
|
--surface-3: #26262d;
|
|
--overlay: rgba(9, 9, 11, 0.82);
|
|
--glass: rgba(255, 255, 255, 0.1);
|
|
--glass-hover: rgba(255, 255, 255, 0.18);
|
|
--glass-border: rgba(255, 255, 255, 0.16);
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--border-strong: rgba(255, 255, 255, 0.16);
|
|
--text: #f4f4f6;
|
|
--text-2: #b6b6c0;
|
|
--text-3: #7c7c88;
|
|
--accent: #c084fc;
|
|
--accent-hover: #d8b4fe;
|
|
--accent-ink: #12071f;
|
|
--accent-soft: rgba(192, 132, 252, 0.16);
|
|
--accent-glow: rgba(192, 132, 252, 0.4);
|
|
--star: #f5c518;
|
|
--danger: #ff5f5f;
|
|
--warn: #f5a524;
|
|
--ok: var(--accent);
|
|
--focus: #ffffff;
|
|
|
|
/* type */
|
|
--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
|
|
--fs-2xs: 0.6875rem;
|
|
--fs-xs: 0.75rem;
|
|
--fs-sm: 0.875rem;
|
|
--fs-base: 1rem;
|
|
--fs-md: 1.125rem;
|
|
--fs-lg: 1.375rem;
|
|
--fs-xl: 1.75rem;
|
|
--fs-2xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
|
|
--fs-hero: clamp(2.4rem, 1.4rem + 4vw, 4.75rem);
|
|
--lh-tight: 1.1;
|
|
--lh: 1.55;
|
|
--fw-medium: 500;
|
|
--fw-semi: 600;
|
|
--fw-bold: 700;
|
|
--fw-heavy: 800;
|
|
|
|
/* spacing (4px base) */
|
|
--sp-1: 4px;
|
|
--sp-2: 8px;
|
|
--sp-3: 12px;
|
|
--sp-4: 16px;
|
|
--sp-5: 20px;
|
|
--sp-6: 24px;
|
|
--sp-7: 32px;
|
|
--sp-8: 40px;
|
|
--sp-9: 48px;
|
|
--sp-10: 64px;
|
|
--sp-11: 80px;
|
|
--max-w: 1680px;
|
|
--gutter: max(clamp(16px, 4vw, 56px), calc((100vw - var(--max-w)) / 2));
|
|
|
|
/* layout */
|
|
--header-h: 72px;
|
|
--tabbar-h: 0px;
|
|
--row-gap: clamp(10px, 1vw, 16px);
|
|
--card-poster-w: clamp(128px, 12.5vw, 210px);
|
|
--card-wide-w: clamp(250px, 23vw, 380px);
|
|
--card-logo-w: clamp(150px, 15vw, 220px);
|
|
|
|
/* radii */
|
|
--r-xs: 4px;
|
|
--r-sm: 6px;
|
|
--r-md: 10px;
|
|
--r-lg: 14px;
|
|
--r-xl: 20px;
|
|
--r-pill: 999px;
|
|
|
|
/* shadows */
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
--shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
|
|
--ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
|
|
|
|
/* motion */
|
|
--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
--dur-fast: 140ms;
|
|
--dur: 240ms;
|
|
--dur-slow: 600ms;
|
|
--dur-fade: 900ms;
|
|
|
|
/* z layers */
|
|
--z-header: 50;
|
|
--z-tabbar: 55;
|
|
--z-modal: 100;
|
|
--z-toast: 110;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
:root {
|
|
--header-h: 60px;
|
|
--tabbar-h: calc(62px + env(safe-area-inset-bottom, 0px));
|
|
--card-poster-w: 31vw;
|
|
--card-wide-w: 74vw;
|
|
--card-logo-w: 40vw;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
:root {
|
|
--dur-fast: 0ms;
|
|
--dur: 0ms;
|
|
--dur-slow: 0ms;
|
|
--dur-fade: 0ms;
|
|
}
|
|
}
|