This commit is contained in:
4DBug committed 2026-10-27 05:49:38 -05:00
1 parent bcf05e8063
commit f37985b4c8
109 files changed
+22810 -6143

No files matched your search

+114 -60
View File
@@ -1,68 +1,122 @@
/*
============================================================================
DESIGN TOKENS — the only file you need to touch to restyle the whole UI.
Every color, font size, spacing step, radius and shadow used elsewhere
references a variable defined here. Change a value and it applies everywhere.
============================================================================
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 {
/* ---- palette (retheme here) ----------------------------------------- */
--color-bg: #0a0a0a; /* page background */
--color-surface: #141414; /* cards, panels */
--color-surface-hover: #1d1d1d; /* hover state for surfaces */
--color-surface-2: #1a1a1a; /* inputs, alt surfaces */
--color-border: #262626; /* default borders */
--color-border-strong: #3a3a3a; /* visible borders / hover borders */
--color-text: #f2f2f2; /* primary text */
--color-text-dim: #9a9a9a; /* secondary text */
--color-text-faint: #5c5c5c; /* tertiary text */
--color-accent: #c084fc; /* brand / primary action color */
--color-accent-hover: #d8b4fe;
--color-accent-text: #12071f; /* text on accent buttons */
--color-danger: #ff6b6b;
--color-success: #c084fc;
--color-star: #ffc94d; /* rating stars */
color-scheme: dark;
/* ---- typography ------------------------------------------------------ */
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-md: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.25rem;
--leading-tight: 1.2;
--leading-normal: 1.55;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
/* 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;
/* ---- spacing (4px scale) ---------------------------------------------- */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 24px;
--space-6: 32px;
--space-7: 48px;
--space-8: 64px;
/* 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;
/* ---- shape ------------------------------------------------------------- */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-full: 999px;
--shadow-1: 0 2px 8px rgba(0, 0, 0, 0.45);
--shadow-2: 0 12px 40px rgba(0, 0, 0, 0.6);
/* 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 ------------------------------------------------------------ */
--container-max: 1280px;
--container-pad: var(--space-5);
--header-height: 64px;
--poster-aspect: 2 / 3; /* 2:3 poster cards */
--card-width: 160px; /* poster card width in carousels */
--player-aspect: 16 / 9;
/* 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;
}
}