@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 , 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; } /* Room below the last line of a code view, so the end of a file can be scrolled up to the middle of the pane instead of pinned to its bottom edge. */ :root { --code-overscroll: 0px; } [data-overscroll="on"] { --code-overscroll: 50vh; } /* * 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; /* The dashboard's type scale between Tailwind's steps: captions (section and column labels), labels (rows, nav, controls) and titles (panels). */ --text-micro: 0.625rem; --text-caption: 0.6875rem; --text-label: 0.8125rem; --text-title: 0.9375rem; --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: #0e0f10; --card: #1c1d21; --card-foreground: #e8e6e1; --popover: #202226; --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: #26282c; --secondary-foreground: #e8e6e1; --muted: #26282c; --muted-foreground: #a6a39b; --accent: #26282c; --accent-foreground: #e8e6e1; --destructive: #d9776b; --destructive-foreground: #121314; --destructive-soft: rgba(217, 119, 107, 0.08); --border: #313338; --border-strong: #3c3f45; --input: #35373c; --ring: var(--primary); --fg-muted: #a6a39b; /* The dimmest text allowed: 5.7:1 on the card, 5.0:1 on hover surfaces; hints and captions only. */ --fg-subtle: #99968f; --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(14, 15, 16, 0.6); --surface-glass: var(--card); --surface-glass-strong: var(--popover); --workspace: #16171a; --hairline: #2a2c30; --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: #e9e7e2; --card: #ffffff; --card-foreground: #1f1f1d; --popover: #ffffff; --popover-foreground: #1f1f1d; --foreground: #1f1f1d; /* White on #3f6f5a is 5.8:1; as text on the canvas, 4.7: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(233, 231, 226, 0.6); --surface-glass: var(--card); --surface-glass-strong: var(--popover); --workspace: #f5f4f1; --hairline: #d6d3cc; --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); } /* 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; } /* Rows in a floating menu are the one thing a finger cannot aim at with a mouse's precision, and a min height there cannot deform a layout because the panel is sized by its content. Everything else keeps its own size: min sizes on buttons, links and fields made every control on a phone 44px tall and 44px wide, which is what made the dashboard look like a toy. */ @media (pointer: coarse) { :where([role="menuitem"], [role="option"]) { min-height: 2.75rem; } } /* 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; } }