370 lines
13 KiB
CSS
370 lines
13 KiB
CSS
/* Latin and Latin Extended only: the dashboard has no other scripts yet. */
|
|
@font-face {
|
|
font-family: "IBM Plex Sans Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 700;
|
|
src: url("@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
|
}
|
|
@font-face {
|
|
font-family: "IBM Plex Sans Variable";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 100 700;
|
|
src: url("@fontsource-variable/ibm-plex-sans/files/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
|
|
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
}
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
|
|
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
}
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
font-style: normal;
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
src: url("@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
|
|
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
|
|
}
|
|
|
|
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "./shadcn.css";
|
|
|
|
/* The built bundle must never feed the next build's class scan. */
|
|
@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;
|
|
}
|
|
|
|
/* 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. The theme follows the operator's OS unless they pick one, 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.
|
|
*
|
|
* Both themes are Graphite: neutral warm greys and one sage accent, drawn from
|
|
* the brand primitives below so sage looks the same in either. 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.
|
|
*/
|
|
/* Brand primitives. Only the theme blocks below read these; components use the
|
|
semantic names. One hue (OKLCH 163) at three lightness steps: the mark and
|
|
accents, the button fill, and text on light surfaces. */
|
|
:root {
|
|
--sage: #51a580;
|
|
--sage-deep: #2e795a;
|
|
--sage-deeper: #277354;
|
|
--sage-ink: #0c6f4d;
|
|
}
|
|
|
|
@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-brand: var(--brand);
|
|
--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);
|
|
|
|
--color-sidebar: var(--card);
|
|
--color-sidebar-foreground: var(--card-foreground);
|
|
--color-sidebar-primary: var(--primary);
|
|
--color-sidebar-primary-foreground: var(--primary-foreground);
|
|
--color-sidebar-accent: var(--accent);
|
|
--color-sidebar-accent-foreground: var(--accent-foreground);
|
|
--color-sidebar-border: var(--border);
|
|
--color-sidebar-ring: var(--ring);
|
|
|
|
/* 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 ─────────────────────────────────────────────────────────────── */
|
|
: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 primary fill is the same deep sage in both themes: white on it is
|
|
5.3:1. --brand is the mark and accent colour; as text it is 5.7:1 on
|
|
the card and 5.0:1 on hover surfaces. */
|
|
--primary: var(--sage-deep);
|
|
--primary-foreground: #ffffff;
|
|
--primary-soft: rgba(81, 165, 128, 0.12);
|
|
--brand: var(--sage);
|
|
--link: var(--sage);
|
|
|
|
/* 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: #70727a; /* 3.5:1 on the dark card */
|
|
--ring: var(--sage);
|
|
|
|
--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(--sage);
|
|
--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: #9a978f; /* 5.1:1 on the dark accent */
|
|
--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 ──────────────────────────────────────────────────────────────── */
|
|
/* The same neutral rules on paper. Sage text steps down to --sage-ink so it
|
|
clears AA on paper; fills and the mark stay as in dark. */
|
|
[data-theme="light"] {
|
|
color-scheme: light;
|
|
|
|
--background: #e9e7e2;
|
|
--card: #ffffff;
|
|
--card-foreground: #1f1f1d;
|
|
--popover: #ffffff;
|
|
--popover-foreground: #1f1f1d;
|
|
--foreground: #1f1f1d;
|
|
|
|
/* Sage ink is 5.0:1 on the canvas and 5.2:1 on hover surfaces. */
|
|
--primary: var(--sage-deep);
|
|
--primary-foreground: #ffffff;
|
|
--primary-soft: rgba(46, 121, 90, 0.1);
|
|
--brand: var(--sage);
|
|
--link: var(--sage-ink);
|
|
|
|
--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: #8a877f; /* 3.6:1 on the light card */
|
|
/* The bright sage is 2.4:1 on paper, under the 3:1 a focus ring needs. */
|
|
--ring: var(--sage-deep);
|
|
|
|
--fg-muted: #5c5a55;
|
|
--fg-subtle: #66635d;
|
|
|
|
--ok: var(--sage-ink);
|
|
--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;
|
|
}
|
|
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(--ring);
|
|
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;
|
|
}
|
|
}
|
|
|
|
/* Widens a control's tap area to 44px on a phone without changing how it looks
|
|
or what space it takes. Apply it to a container of buttons. */
|
|
@utility touch-hit {
|
|
@media (max-width: 767px) {
|
|
& button:not(.absolute) {
|
|
position: relative;
|
|
}
|
|
& button::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset-block: min(0px, calc((100% - 44px) / 2));
|
|
inset-inline: min(0px, calc((100% - 44px) / 2));
|
|
}
|
|
}
|
|
}
|