296 lines
9.8 KiB
CSS
296 lines
9.8 KiB
CSS
@import "@fontsource-variable/ibm-plex-sans";
|
|
@import "@fontsource/ibm-plex-mono/400.css";
|
|
@import "@fontsource/ibm-plex-mono/500.css";
|
|
|
|
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "./shadcn.css";
|
|
|
|
/* ui/dist is committed, so nothing ignores it and Tailwind's automatic content
|
|
detection scans it. That makes every build an input to the next one: class
|
|
strings left in the committed bundle generate utilities for classes nothing
|
|
references any more, so rebuilding an unchanged tree produced a different
|
|
bundle and tools/uidist.sh's freshness check failed on the first build after
|
|
every change. The bundle is generated, never a source. */
|
|
@source not "../dist";
|
|
|
|
/* The theme is an attribute on <html>, not a class, so the inline script in
|
|
index.html can set it before the first paint and a reload does not flash the
|
|
wrong palette. */
|
|
@custom-variant dark (&:is([data-theme="dark"] *));
|
|
|
|
/* Compact mode tightens the shared Tailwind spacing scale without shrinking
|
|
text or hit targets independently. Components keep their relative rhythm;
|
|
the whole workspace simply carries less air. */
|
|
[data-density="compact"] {
|
|
--spacing: 0.225rem;
|
|
}
|
|
|
|
/*
|
|
* Design tokens. Dark is the default because archied is a daemon you check at
|
|
* odd hours; light is a toggle, not an afterthought, so both themes define the
|
|
* same variable set and nothing else in the app references a raw colour.
|
|
*
|
|
* Semantic names only. Never `--violet`; always `--primary` or `--ok`, so a
|
|
* palette change is one file rather than a grep.
|
|
*
|
|
* Names on the left are shadcn-vue's contract, so its components pick the
|
|
* palette up with no per-component overrides. Names on the right that shadcn
|
|
* does not define (status colours, the subtle foreground, the glass surfaces)
|
|
* are ours.
|
|
*
|
|
* The dark theme is Graphite (docs/design/ui-redesign/tokens/tokens.css):
|
|
* neutral warm greys and one low-chroma accent. Every foreground is
|
|
* checked against every surface it lands on, hover states included, at AA
|
|
* (4.5:1), and the ratios in the comments are the measured ones.
|
|
*/
|
|
@theme inline {
|
|
--font-sans: "IBM Plex Sans Variable", system-ui, sans-serif;
|
|
--font-heading: var(--font-sans);
|
|
--font-mono: "IBM Plex Mono", ui-monospace, monospace;
|
|
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-primary-soft: var(--primary-soft);
|
|
--color-link: var(--link);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-destructive-soft: var(--destructive-soft);
|
|
--color-border: var(--border);
|
|
--color-border-strong: var(--border-strong);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-hairline: var(--hairline);
|
|
|
|
/* Foreground ramp. --muted-foreground is shadcn's; --fg-subtle is the
|
|
quieter third step the dashboard's secondary text uses. */
|
|
--color-fg-muted: var(--fg-muted);
|
|
--color-fg-subtle: var(--fg-subtle);
|
|
|
|
/* Status. Task state, gate results and trend direction all draw from here,
|
|
so the same colour always means the same thing wherever it appears. */
|
|
--color-ok: var(--ok);
|
|
--color-ok-soft: var(--ok-soft);
|
|
--color-warn: var(--warn);
|
|
--color-warn-soft: var(--warn-soft);
|
|
--color-danger: var(--danger);
|
|
--color-danger-soft: var(--danger-soft);
|
|
--color-info: var(--info);
|
|
--color-info-soft: var(--info-soft);
|
|
--color-idle: var(--idle);
|
|
--color-idle-soft: var(--idle-soft);
|
|
|
|
--radius-sm: 4px;
|
|
--radius-md: 6px;
|
|
--radius-lg: 8px;
|
|
--radius-xl: 12px;
|
|
}
|
|
|
|
/* ── Dark (default) ─────────────────────────────────────────────────────── */
|
|
:root,
|
|
[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
|
|
/* Graphite: warm neutral greys with no hue cast. Hierarchy comes from
|
|
surface steps and borders, never from tinted backgrounds. */
|
|
--background: #121314;
|
|
--card: #16171a;
|
|
--card-foreground: #e8e6e1;
|
|
--popover: #17181a;
|
|
--popover-foreground: #e8e6e1;
|
|
--foreground: #e8e6e1;
|
|
|
|
/* The one accent. Everything that marks "active", "focused", "on" or the
|
|
primary action derives from --primary, so swapping this line (steel
|
|
#8aa4c2, sand #d4a373, muted violet #a397c9) retints the whole app.
|
|
Ink #101412 on sage is 8.1:1. */
|
|
--primary: #86b5a0;
|
|
--primary-foreground: #101412;
|
|
--primary-soft: rgba(134, 181, 160, 0.12);
|
|
--link: var(--primary);
|
|
|
|
/* shadcn's `accent` is the hover surface, not the brand colour. */
|
|
--secondary: #1e2023;
|
|
--secondary-foreground: #e8e6e1;
|
|
--muted: #1e2023;
|
|
--muted-foreground: #a6a39b;
|
|
--accent: #1e2023;
|
|
--accent-foreground: #e8e6e1;
|
|
|
|
--destructive: #d9776b;
|
|
--destructive-foreground: #121314;
|
|
--destructive-soft: rgba(217, 119, 107, 0.08);
|
|
|
|
--border: #2a2c30;
|
|
--border-strong: #34373c;
|
|
--input: #2e3034;
|
|
--ring: var(--primary);
|
|
|
|
--fg-muted: #a6a39b;
|
|
/* The dimmest text allowed: 5.3:1 on the card, 4.9:1 on hover surfaces; hints and captions only. */
|
|
--fg-subtle: #8f8c85;
|
|
|
|
--ok: var(--primary);
|
|
--ok-soft: var(--primary-soft);
|
|
--warn: #d9a45b;
|
|
--warn-soft: rgba(217, 164, 91, 0.08);
|
|
--danger: #d9776b;
|
|
--danger-soft: rgba(217, 119, 107, 0.08);
|
|
/* Info is the "working" agent-state swatch, the only hue besides the
|
|
accent, amber and red. */
|
|
--info: #8aa4c2;
|
|
--info-soft: rgba(138, 164, 194, 0.1);
|
|
--idle: #8f8c85;
|
|
--idle-soft: rgba(143, 140, 133, 0.1);
|
|
|
|
--bg-blur: rgba(18, 19, 20, 0.6);
|
|
--surface-glass: var(--card);
|
|
--surface-glass-strong: var(--popover);
|
|
--workspace: var(--background);
|
|
--hairline: #202225;
|
|
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
|
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
|
|
--shadow-workspace: none;
|
|
|
|
--transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* ── Light ──────────────────────────────────────────────────────────────── */
|
|
/* Not part of the Graphite handoff: the same neutral rules on paper, with a
|
|
darker sage so white labels and accent text clear AA. */
|
|
[data-theme="light"] {
|
|
color-scheme: light;
|
|
|
|
--background: #f5f4f1;
|
|
--card: #ffffff;
|
|
--card-foreground: #1f1f1d;
|
|
--popover: #ffffff;
|
|
--popover-foreground: #1f1f1d;
|
|
--foreground: #1f1f1d;
|
|
|
|
/* White on #3f6f5a is 5.8:1; as text on the canvas, 5.3:1. */
|
|
--primary: #3f6f5a;
|
|
--primary-foreground: #ffffff;
|
|
--primary-soft: rgba(63, 111, 90, 0.1);
|
|
--link: var(--primary);
|
|
|
|
--secondary: #ecebe7;
|
|
--secondary-foreground: #1f1f1d;
|
|
--muted: #ecebe7;
|
|
--muted-foreground: #5c5a55;
|
|
--accent: #ecebe7;
|
|
--accent-foreground: #1f1f1d;
|
|
|
|
--destructive: #b3413a;
|
|
--destructive-foreground: #ffffff;
|
|
--destructive-soft: rgba(179, 65, 58, 0.08);
|
|
|
|
--border: #dcdad4;
|
|
--border-strong: #c7c4bd;
|
|
--input: #d4d1ca;
|
|
--ring: var(--primary);
|
|
|
|
--fg-muted: #5c5a55;
|
|
--fg-subtle: #66635d;
|
|
|
|
--ok: var(--primary);
|
|
--ok-soft: var(--primary-soft);
|
|
--warn: #8a5a12;
|
|
--warn-soft: rgba(138, 90, 18, 0.1);
|
|
--danger: #b3413a;
|
|
--danger-soft: rgba(179, 65, 58, 0.08);
|
|
--info: #3d5f86;
|
|
--info-soft: rgba(61, 95, 134, 0.1);
|
|
--idle: #5f5d58;
|
|
--idle-soft: rgba(95, 93, 88, 0.1);
|
|
|
|
--bg-blur: rgba(245, 244, 241, 0.6);
|
|
--surface-glass: var(--card);
|
|
--surface-glass-strong: var(--popover);
|
|
--workspace: var(--background);
|
|
--hairline: #e6e4df;
|
|
|
|
--shadow-sm: 0 1px 2px rgba(31, 31, 29, 0.06);
|
|
--shadow-md: 0 8px 28px rgba(31, 31, 29, 0.1);
|
|
--shadow-workspace: none;
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
@apply font-sans;
|
|
background: var(--background);
|
|
padding: 1rem;
|
|
}
|
|
/* The focus floor. A component may style its own focus state; this
|
|
guarantees that nothing is ever focused and invisible for a keyboard
|
|
user. `:focus-visible` rather than `:focus` so a mouse click does not
|
|
draw a ring around what was clicked. */
|
|
:focus-visible {
|
|
outline: 2px solid var(--primary);
|
|
outline-offset: 2px;
|
|
}
|
|
/* The frame is a desktop affordance: below this width the workspace goes
|
|
edge to edge, because a rounded card inset on a phone wastes the only
|
|
axis that matters. */
|
|
@media (width < 64rem) {
|
|
body {
|
|
padding: 0;
|
|
}
|
|
}
|
|
/* Fingers need 44px targets (WCAG 2.5.5). Min sizes rather than heights, so
|
|
a component's own sizing still applies wherever it is already larger,
|
|
and inline links in prose are unaffected because min sizes do not apply
|
|
to inline boxes. */
|
|
@media (pointer: coarse), (width < 48rem) {
|
|
:where(
|
|
button,
|
|
a[href],
|
|
summary,
|
|
select,
|
|
textarea,
|
|
input:not([type="checkbox"], [type="radio"], [type="hidden"]),
|
|
[role="button"],
|
|
[role="tab"],
|
|
[role="menuitem"],
|
|
[role="option"]
|
|
) {
|
|
min-height: 44px;
|
|
min-width: 44px;
|
|
}
|
|
}
|
|
/* An accessibility invariant, not a nicety: nothing animates for someone
|
|
who has asked it not to. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
[data-motion="reduced"] *,
|
|
[data-motion="reduced"] *::before,
|
|
[data-motion="reduced"] *::after {
|
|
animation-duration: 0.01ms !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|