[web] Domi UI: the web UI on @domi/ui v1.0.0 (fonts, roles, Button, TextField with seals, Checkbox, Select, Segmented)

This commit is contained in:
2026-11-22 23:24:03 +01:00
parent 8b4570ca1a
commit afade6d98c
24 changed files with 356 additions and 380 deletions
+30 -60
View File
@@ -2,68 +2,40 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/* Design tokens of the dark Domi theme, murex palette (docs/ui-handoff.md §1.1, verbatim). */
/* Ianitor's own tokens, on top of @domi/ui (docs/ui-handoff.md §1.1). The roles (ground, text, the murex
accent and leaf, ok, warning, danger) come from @domi/ui: data-domi-room="ianitor" on <html> gives them Ianitor's
values, the same hex as before (domi-design docs/PALETTE.md). What is here is Ianitor's alone: status names,
washes, type sizes, spacing, radii and layout. */
.ia {
/* ── Ground and structure: violet-tinted iron black ───────────────────── */
--ground: #0c0b0f; /* page ground; every ratio is measured on it */
--colonnade: #121016; /* sidebar, phone bars, menus, dialogs, side panel */
--surface: #18151d; /* fields, the last-change bar, cards */
--surface-2: #221d28; /* hover, the current place, a chosen option */
--hairline: #2c2633; /* dividers only, never a control edge */
/* ── Structure and metal Ianitor adds to the roles ───────────────────── */
--hairline-strong: #3c3445; /* chip and frame edges (facts, not controls) */
--control-edge: #7d7189; /* edge of every field, button, segmented control, engine chip */
/* ── Text ──────────────────────────────────────────────────────────────── */
--text: #f1edf3; /* body text, hostnames */
--text-2: #cfc6d4; /* secondary text, field labels */
--muted: #a99eb1; /* hints, section labels, times */
--disabled: #7a7183; /* disabled controls only, never content */
/* ── The lead: murex (Tyrian purple) ───────────────────────────────────── */
--accent: #e0a3dc; /* links, focus ring, the current place, running state */
--accent-strong: #f2c9ee; /* focus ring on the primary button; match codes */
--primary-high: #8d3b89; /* primary fill, top */
--primary-mid: #76306f; /* primary fill, 55 % */
--primary-low: #5c2257; /* primary fill, foot */
--primary-edge: #c77cc1; /* primary button edge */
--on-primary: #ffffff; /* label on the primary fill */
/* ── Metal ─────────────────────────────────────────────────────────────── */
--bronze: #b6adbe; /* ornaments: the interpunct rule (iron, not bronze) */
--gilt: #f6f0f7; /* the wordmark only */
/* ── Second light: quiet iron (Domi's .domi-pill and .domi-status use these) */
--second: #cfc6d4;
--second-strong: #f1edf3;
--second-edge: #7d7189;
/* ── Second light: quiet iron ───────────────────────────────────────────── */
--second-strong: var(--domi-fg);
--second-edge: var(--domi-edge);
/* ── Status: blue / amber / vermilion, stepped in lightness (L* 84 / 68 / 58) */
--healthy: #a6d6fa; /* host answers; a change was kept. Filled dot. */
--kept: #a6d6fa;
--degraded: #d99a35; /* partly failing; a change was reverted or not applied. Half dot. */
--reverted: #d99a35;
--down: #e2683a; /* not reachable; needs attention; paused; danger actions. Hollow ring. */
--danger: #e2683a;
--on-danger: #170804; /* text on a filled danger button (none is planned) */
--unknown: #a99eb1; /* no health check set; waiting for first check. Dashed ring. */
--running: #e0a3dc; /* queued, applying, watching, switching, waiting for Custos (= accent) */
--kept: var(--domi-ok); /* host answers; a change was kept. Filled dot. */
--reverted: var(--domi-warning); /* partly failing; a change was reverted or not applied. Half dot. */
--down: var(--domi-danger); /* not reachable; needs attention; paused; danger actions. Hollow ring. */
--unknown: var(--domi-muted); /* no health check set; waiting for first check. Dashed ring. */
--running: var(--domi-accent); /* queued, applying, watching, switching, waiting for Custos */
/* Status washes (banner backgrounds) and edges. color-mix() is what the artifact uses;
the resolved hex is in the comment, for tools that need a literal. */
--wash-degraded: color-mix(in srgb, var(--degraded) 10%, var(--ground)); /* #201913 */
--wash-kept: color-mix(in srgb, var(--kept) 10%, var(--ground)); /* #1b1f26 */
--wash-down: color-mix(in srgb, var(--down) 10%, var(--ground)); /* #211413 */
--edge-degraded: color-mix(in srgb, var(--degraded) 65%, var(--ground)); /* #916828 */
--edge-kept: color-mix(in srgb, var(--kept) 65%, var(--ground)); /* #708fa8 */
--edge-down: color-mix(in srgb, var(--down) 80%, var(--ground)); /* #b75531 */
--edge-outline: color-mix(in srgb, var(--accent) 60%, var(--ground)); /* #8b668a, outline button */
--hover-wash: color-mix(in srgb, var(--accent) 8%, transparent); /* quiet button hover */
--danger-hover: color-mix(in srgb, var(--danger) 7%, transparent);
/* Status washes (banner backgrounds) and edges. */
--wash-degraded: color-mix(in srgb, var(--domi-warning) 10%, var(--domi-bg)); /* #201913 */
--wash-kept: color-mix(in srgb, var(--kept) 10%, var(--domi-bg)); /* #1b1f26 */
--wash-down: color-mix(in srgb, var(--down) 10%, var(--domi-bg)); /* #211413 */
--edge-degraded: color-mix(in srgb, var(--domi-warning) 65%, var(--domi-bg)); /* #916828 */
--edge-kept: color-mix(in srgb, var(--kept) 65%, var(--domi-bg)); /* #708fa8 */
--edge-down: color-mix(in srgb, var(--down) 80%, var(--domi-bg)); /* #b75531 */
--hover-wash: color-mix(in srgb, var(--domi-accent) 8%, transparent); /* menu and nav hover */
/* ── Type ──────────────────────────────────────────────────────────────── */
--font-inscription: Cinzel, "Trajan Pro", "Cormorant Garamond", Georgia, "Times New Roman", serif;
--font-book: "Cormorant Garamond", Cormorant, "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
--font-hand: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
/* ── Type: the three Domi faces come from @domi/ui (bundled, nothing fetched) */
--font-inscription: var(--domi-font-inscription);
--font-book: var(--domi-font-book);
--font-hand: var(--domi-font-hand);
--fs-display: 2.6rem; --lh-display: 1.1; /* book 500: a view title ("Hosts") */
--fs-h2: 1.9rem; --lh-h2: 1.15; /* book 500: panel title; phone view title uses 2.1rem */
@@ -110,8 +82,8 @@
--scrim: rgba(12,11,15,0.82); /* behind modals */
/* ── Focus ─────────────────────────────────────────────────────────────── */
--focus-ring: 2px solid var(--accent); /* outline, offset 3px, on every :focus-visible */
--focus-ring-primary: 2px solid var(--accent-strong);
--focus-ring: 2px solid var(--domi-accent); /* outline, offset 3px, on every :focus-visible */
--focus-ring-primary: 2px solid var(--domi-accent-strong);
--focus-offset: 3px;
--focus-halo: 0 0 0 4px rgba(224,163,220,0.16); /* fields: border goes accent, plus this halo */
@@ -134,8 +106,8 @@
--bp-phone: 720px; /* below: phone layout (header + bottom bar) */
color-scheme: dark;
background: var(--ground);
color: var(--text);
background: var(--domi-bg);
color: var(--domi-fg);
font-family: var(--font-hand);
font-size: var(--fs-body);
line-height: var(--lh-body);
@@ -145,6 +117,4 @@
.ia :focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.ia h1, .ia h2, .ia h3, .ia p { margin: 0; }
.ia button { font: inherit; }
@media (prefers-reduced-motion: reduce) {
.ia *, .ia *::before, .ia *::after { animation: none !important; transition: none !important; }
}
/* Reduced motion: @domi/ui base.css (every duration 0; every state still shown). */