feat(frontend): add cabinet shells, brand tokens, and state primitives
This commit is contained in:
1 parent
dda3825786
commit
0e2a3b02ab
85 files changed
+3313
-113
No files matched your search
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Design tokens of the Lincodex interface.
|
||||
*
|
||||
* Palette values come from the product requirements (section 5). Only the
|
||||
* light theme exists: dark surfaces are local regions (for example the
|
||||
* employer header) that override the text, link, and focus tokens with
|
||||
* checked pairs. A dark theme must define and check its own pairs instead of
|
||||
* inheriting the light accents. See frontend/README.en.md for the contrast
|
||||
* table of every text and background pair in use.
|
||||
*
|
||||
* Breakpoints cannot be custom properties inside media queries, so they are
|
||||
* fixed values used directly by components:
|
||||
* 360px - smallest supported width (body min-width: 20rem)
|
||||
* 768px - tablet: (width >= 48rem)
|
||||
* 1024px - desktop navigation: (width >= 64rem)
|
||||
* 1280px - wide desktop, verified layout width
|
||||
*/
|
||||
:root {
|
||||
/* Brand palette. Use the semantic tokens below in components. */
|
||||
--palette-violet: #402fff;
|
||||
--palette-red: #ec1d35;
|
||||
--palette-graphite: #1b1c21;
|
||||
--palette-graphite-soft: #2d2e37;
|
||||
--palette-light: #ededed;
|
||||
--palette-grey: #c8c9ca;
|
||||
--palette-white: #fff;
|
||||
|
||||
/* Semantic colors for the light theme. */
|
||||
--color-canvas: var(--palette-light);
|
||||
--color-surface: var(--palette-white);
|
||||
--color-text: var(--palette-graphite);
|
||||
--color-text-secondary: var(--palette-graphite-soft);
|
||||
--color-accent: var(--palette-violet);
|
||||
--color-on-accent: var(--palette-white);
|
||||
--color-link: var(--palette-violet);
|
||||
|
||||
/* Red is reserved for errors and problems. It reaches only 4.38:1 on white,
|
||||
* so it marks error graphics (borders, icons) and never carries body text. */
|
||||
--color-danger: var(--palette-red);
|
||||
|
||||
/* Decorative dividers only: grey does not reach 3:1 and must not be the
|
||||
* only boundary of an interactive control. */
|
||||
--color-divider: var(--palette-grey);
|
||||
--color-border-strong: var(--palette-graphite);
|
||||
--color-focus-ring: var(--palette-violet);
|
||||
|
||||
/* Typography. Text uses the system stack; JetBrains Mono is self-hosted for
|
||||
* numbers, scores, codes, and pseudonyms. */
|
||||
--font-text:
|
||||
ui-sans-serif, system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial, sans-serif;
|
||||
--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", menlo, consolas, monospace;
|
||||
--font-size-xs: 0.8125rem;
|
||||
--font-size-s: 0.9375rem;
|
||||
--font-size-m: 1.0625rem;
|
||||
--font-size-l: 1.25rem;
|
||||
--font-size-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
|
||||
--font-size-display: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);
|
||||
--font-weight-regular: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-bold: 700;
|
||||
--line-height-tight: 1.1;
|
||||
--line-height-snug: 1.3;
|
||||
--line-height-body: 1.6;
|
||||
--letter-spacing-display: -0.03em;
|
||||
--letter-spacing-label: 0.08em;
|
||||
|
||||
/* Spacing scale with a 4px base. */
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
--space-4: 1rem;
|
||||
--space-5: 1.5rem;
|
||||
--space-6: 2rem;
|
||||
--space-7: 3rem;
|
||||
--space-8: 4rem;
|
||||
--space-9: 6rem;
|
||||
|
||||
/* Radii follow the rounded corners of the brand connector lines. */
|
||||
--radius-s: 0.375rem;
|
||||
--radius-m: 0.75rem;
|
||||
--radius-l: 1.25rem;
|
||||
--radius-pill: 999px;
|
||||
|
||||
/* Lines. */
|
||||
--line-thin: 1px;
|
||||
--line-strong: 2px;
|
||||
|
||||
/* Focus indicator: 3px ring outside the element. */
|
||||
--focus-ring-width: 3px;
|
||||
--focus-ring-offset: 2px;
|
||||
|
||||
/* Layout widths. */
|
||||
--content-width-narrow: 40rem;
|
||||
--content-width-wide: 80rem;
|
||||
--gutter: var(--space-4);
|
||||
|
||||
/* Motion. Reduced motion collapses durations below. */
|
||||
--duration-fast: 120ms;
|
||||
--duration-base: 220ms;
|
||||
--easing-standard: cubic-bezier(0.2, 0, 0, 1);
|
||||
}
|
||||
|
||||
@media (width >= 48rem) {
|
||||
:root {
|
||||
--gutter: var(--space-6);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
:root {
|
||||
--duration-fast: 0ms;
|
||||
--duration-base: 0ms;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user