Files
arr/web/src/style.css
T
Miguel PalhasandClaude Opus 5.5 e953358f20 build(web): add React and Tailwind to the SPA
Tailwind's theme is reset to the design tokens and the existing
stylesheet moves under a components cascade layer, so utilities can
only produce token values and still win over component rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 00:36:23 +00:00

88 lines
3.0 KiB
CSS

/* arr — the stylesheet entry. Three cascade layers, lowest first:
theme Tailwind's theme, reset to the design tokens and nothing else
components the Master Control board (components.css): tokens, primitives, views
utilities Tailwind utilities, which win over a component rule they touch
Tailwind's preflight is left out on purpose: components.css carries its
own base rules, and the board is the visual truth. */
@layer theme, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "./components.css" layer(components);
@import "tailwindcss/utilities.css" layer(utilities) source(none);
/* utilities are generated from the app's own source only, never from scripts/ */
@source "./";
/* `inline`: utilities resolve straight to the token variable, so the tokens in
components.css stay the one definition (where a theme name matches a token,
the components layer's declaration wins). Every default is cleared first, so `bg-*`, `p-*` and
`text-*` offer token values only — the token gate holds for utilities too. */
@theme inline {
--*: initial;
--color-ground: var(--ground);
--color-panel: var(--panel);
--color-panel-raised: var(--panel-raised);
--color-line: var(--line);
--color-line-strong: var(--line-strong);
--color-highlight: var(--highlight);
--color-ink: var(--ink);
--color-ink-muted: var(--ink-muted);
--color-ink-faint: var(--ink-faint);
--color-signal-ok: var(--signal-ok);
--color-signal-warn: var(--signal-warn);
--color-signal-fault: var(--signal-fault);
--color-signal-idle: var(--signal-idle);
--color-accent: var(--accent);
--color-accent-bright: var(--accent-bright);
--color-lamp-off: var(--lamp-off);
--color-lowlight: var(--lowlight);
--color-verdict-eligible: var(--verdict-eligible);
--color-verdict-waived: var(--verdict-waived);
--color-verdict-rejected: var(--verdict-rejected);
--color-score-0: var(--score-0);
--color-score-1: var(--score-1);
--color-score-2: var(--score-2);
--color-score-3: var(--score-3);
--color-score-4: var(--score-4);
--color-score-5: var(--score-5);
--color-score-6: var(--score-6);
--color-status-airing: var(--status-airing);
--spacing-1: var(--space-1);
--spacing-2: var(--space-2);
--spacing-3: var(--space-3);
--spacing-4: var(--space-4);
--spacing-6: var(--space-6);
--spacing-8: var(--space-8);
--spacing-12: var(--space-12);
--text-2xs: var(--text-2xs);
--text-xs: var(--text-xs);
--text-sm: var(--text-sm);
--text-base: var(--text-base);
--text-md: var(--text-md);
--text-lg: var(--text-lg);
--text-xl: var(--text-xl);
--font-label: var(--font-label);
--font-readout: var(--font-readout);
--font-display: var(--font-display);
--radius-token: var(--radius);
--ease-out: var(--ease-out);
/* the board's own breakpoints: tab bar to rail, column header, dense pointer */
--breakpoint-sm: 40rem;
--breakpoint-md: 46rem;
--breakpoint-lg: 64rem;
}
/* React mounts into #app; the board lays out as if the body held it directly */
#app {
display: contents;
}