[web] The web UI: hosts, add/edit with apply progress, undo, history and restore, share links, engine switch, certificates and device installs, signing by hand, settings and tokens; smoke test counts every §4 flow's clicks
This commit is contained in:
@@ -0,0 +1,150 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* 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). */
|
||||
.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 */
|
||||
--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;
|
||||
|
||||
/* ── 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) */
|
||||
|
||||
/* 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);
|
||||
|
||||
/* ── 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;
|
||||
|
||||
--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 */
|
||||
--fs-h3: 1.45rem; --lh-h3: 1.15; /* book 600: dialog and section titles */
|
||||
--fs-body: 0.9375rem; --lh-body: 1.6; /* hand 400: everything read (15 px) */
|
||||
--fs-host: 0.98rem; /* hand 600: hostname in a row */
|
||||
--fs-button: 0.95rem; /* hand 600; 700 on primary */
|
||||
--fs-field-label: 0.92rem; /* hand 400, text-2 */
|
||||
--fs-hint: 0.88rem; --lh-hint: 1.5; /* hand 400, muted: hints, notes */
|
||||
--fs-sub: 0.86rem; /* hand 400, muted: row sub-lines, times */
|
||||
--fs-chip: 0.78rem; /* 12.5 px, hand 400, text-2 */
|
||||
--fs-state: 0.95rem; /* hand 700, all-small-caps, tracking 0.12em */
|
||||
--fs-label: 0.74rem; /* hand 700, tracking 0.26em: SECTION LABELS */
|
||||
--fs-nav: 0.95rem; /* sidebar item, hand 600 */
|
||||
--fs-tab-phone: 0.78rem; /* bottom-bar label, hand 600 */
|
||||
--fs-wordmark: 0.8125rem; /* 13 px Cinzel 500, tracking 0.3em; phone 12 px, 0.26em */
|
||||
--fs-code: 2.2rem; /* Cinzel 500, tracking 0.16em: Custos match code */
|
||||
--tracking-state: 0.12em;
|
||||
--tracking-label: 0.26em;
|
||||
--tracking-wordmark: 0.3em;
|
||||
|
||||
/* ── Spacing (Domi) ────────────────────────────────────────────────────── */
|
||||
--space-1: 0.35rem; /* label to its field */
|
||||
--space-2: 0.6rem; /* between buttons in a row, list items */
|
||||
--space-3: 1rem; /* field to field */
|
||||
--space-4: 1.4rem; /* panel padding */
|
||||
--space-5: 2rem; /* between sections of a view */
|
||||
--space-6: 3.5rem; /* a view's bottom padding */
|
||||
--target: 44px; /* minimum height and width of every control and touch target */
|
||||
|
||||
/* ── Radii ─────────────────────────────────────────────────────────────── */
|
||||
--radius-chip: 6px;
|
||||
--radius-sm: 10px; /* quiet buttons, fields, nav items, menu items */
|
||||
--radius: 12px; /* primary button, cards inside panels */
|
||||
--radius-lg: 18px; /* panels, banners, the bar, the host list, dialogs */
|
||||
--radius-pill: 999px; /* chips, the engine chip */
|
||||
|
||||
/* ── Shadows ───────────────────────────────────────────────────────────── */
|
||||
--leaf-bevel: 0 0 0 1px rgba(199,124,193,0.25), 0 12px 40px -14px rgba(141,59,137,0.6),
|
||||
inset 0 1px 0 rgba(255,220,250,0.30), inset 0 -2px 0 #3a1237; /* primary button */
|
||||
--carved: inset 0 2px 6px rgba(12,11,15,0.8), inset 0 -1px 0 rgba(182,173,190,0.16); /* fields */
|
||||
--inset-lit: inset 0 0 18px rgba(224,163,220,0.07); /* current nav item */
|
||||
--shadow-dialog: 0 40px 100px -40px rgba(0,0,0,0.95); /* dialogs, menus, popover */
|
||||
--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-offset: 3px;
|
||||
--focus-halo: 0 0 0 4px rgba(224,163,220,0.16); /* fields: border goes accent, plus this halo */
|
||||
|
||||
/* ── Motion (Domi's transitions; the last three are new for this UI) ──── */
|
||||
--dur-color: 0.3s; /* border, background, colour */
|
||||
--dur-lift: 0.45s; /* box-shadow, transform (primary hover lifts 1px) */
|
||||
--ease: ease;
|
||||
--dur-tick: 1s; /* watch progress bar: linear, one step per second */
|
||||
--dur-enter: 0.18s; /* dialog, panel, menu, toast enter (opacity + 8px) */
|
||||
--dur-exit: 0.12s;
|
||||
|
||||
/* ── Layout ────────────────────────────────────────────────────────────── */
|
||||
--sidebar-w: 232px;
|
||||
--main-pad: 26px 32px 40px; /* desktop; phone 18px 16px 20px */
|
||||
--gutter-phone: 16px;
|
||||
--panel-w: 480px; /* add/edit host side panel */
|
||||
--dialog-w: 520px; /* share, token, device dialogs */
|
||||
--popover-w: 420px; /* engine popover */
|
||||
--phone-bar-h: 56px; /* bottom navigation item height */
|
||||
--bp-phone: 720px; /* below: phone layout (header + bottom bar) */
|
||||
|
||||
color-scheme: dark;
|
||||
background: var(--ground);
|
||||
color: var(--text);
|
||||
font-family: var(--font-hand);
|
||||
font-size: var(--fs-body);
|
||||
line-height: var(--lh-body);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.ia *, .ia *::before, .ia *::after { box-sizing: border-box; }
|
||||
.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; }
|
||||
}
|
||||
Reference in New Issue
Block a user