Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Collapse duplicate tokens, alias dialog and hover fills

Bitti34f10ac3d72e
diff --git a/src/styles/controls.css b/src/styles/controls.css
index e1d300d..e3482af 100644
--- a/src/styles/controls.css
+++ b/src/styles/controls.css
@@ -25,7 +25,7 @@
gap: var(--space-2);
padding: 0 var(--space-3);
border: 1px solid transparent;
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
font-size: var(--text-base);
font-weight: var(--weight-regular);
line-height: var(--leading-normal);
@@ -86,7 +86,7 @@
padding: 0 var(--space-3);
border: 1px solid var(--stroke-control);
border-bottom-color: var(--stroke-control-bottom);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--button-fill-bg);
font-size: var(--text-base);
@@ -112,7 +112,7 @@
gap: var(--space-2);
padding: 0 var(--space-3);
border: 1px solid var(--danger-line);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--danger);
background: var(--danger-soft);
font-size: var(--text-base);
@@ -284,7 +284,7 @@
border: 1px solid var(--stroke-control);
border-bottom-color: var(--stroke-control-bottom);
padding: 2px var(--space-1);
- border-radius: var(--radius-xs);
+ border-radius: var(--radius-sm);
}
/* --- Check box, radio button, slider ----------------------------------------
@@ -494,7 +494,7 @@ input[type="range"]:disabled::-webkit-slider-thumb {
/* --- Panel chrome (shared header strip inside editor panels) ---------------- */
.panel-chrome {
- height: var(--control-lg);
+ height: var(--control-md);
display: flex;
align-items: center;
justify-content: space-between;
diff --git a/src/styles/generator.css b/src/styles/generator.css
index ab31e84..5c0f41b 100644
--- a/src/styles/generator.css
+++ b/src/styles/generator.css
@@ -4,7 +4,7 @@
whatever is open on the board.
Legibility contract: body copy is --text-base, the smallest text anywhere is
- --text-2xs (12px), standard controls are --control-md (32px) and compact
+ --text-xs (12px), standard controls are --control-md (32px) and compact
ones --control-sm (24px). No raw px type, no hand-written greys.
========================================================================== */
@@ -505,7 +505,7 @@
border-radius: var(--radius-sm);
color: var(--text-secondary);
background: var(--fill-control);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-style: normal;
line-height: 16px;
}
@@ -579,7 +579,7 @@
.shot-thumb em {
padding: 0 var(--space-2);
color: inherit;
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-style: normal;
text-align: center;
}
@@ -587,7 +587,7 @@
.shot-thumb__eta {
padding: 0 var(--space-2);
color: var(--text-muted);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
line-height: var(--leading-tight);
text-align: center;
}
diff --git a/src/styles/image-editor.css b/src/styles/image-editor.css
index ce974c5..86a34d5 100644
--- a/src/styles/image-editor.css
+++ b/src/styles/image-editor.css
@@ -71,7 +71,7 @@
.image-center > .image-error { margin: var(--space-2); }
.image-results { display: flex; min-height: 82px; gap: var(--space-2); overflow-x: auto; padding: var(--space-2); border-top: 1px solid var(--line); }
.image-results button { position: relative; flex: 0 0 72px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--panel); }
-.image-draft-badge { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 2px; background: var(--glass); color: var(--text-primary); font-size: var(--text-2xs); }
+.image-draft-badge { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 2px; background: var(--glass); color: var(--text-primary); font-size: var(--text-xs); }
.image-results button[aria-pressed="true"] { border-color: var(--accent); }
.image-results img { width: 100%; height: 100%; object-fit: cover; }
diff --git a/src/styles/index.css b/src/styles/index.css
index 43020be..625854c 100644
--- a/src/styles/index.css
+++ b/src/styles/index.css
@@ -38,7 +38,7 @@
:root input[type="url"],
:root input[type="email"],
:root textarea {
- font-size: var(--text-sm);
+ font-size: var(--text-base);
}
:root .generator-panel .job-title__name,
diff --git a/src/styles/library.css b/src/styles/library.css
index fb85367..2ad25c8 100644
--- a/src/styles/library.css
+++ b/src/styles/library.css
@@ -198,7 +198,7 @@
left: var(--space-1);
bottom: var(--space-1);
padding: 0 var(--space-1);
- border-radius: var(--radius-xs);
+ border-radius: var(--radius-sm);
background: var(--layer);
color: var(--text-secondary);
font-size: var(--text-xs);
@@ -295,7 +295,7 @@
display: block;
height: 12px;
margin-left: var(--space-1);
- border-radius: var(--radius-xs);
+ border-radius: var(--radius-sm);
background: var(--panel-3);
}
diff --git a/src/styles/references.css b/src/styles/references.css
index 988c4ab..69fc6b7 100644
--- a/src/styles/references.css
+++ b/src/styles/references.css
@@ -4,7 +4,7 @@
dialog.
Sizing contract (see tokens.css): no literal px type sizes, nothing below
- --text-2xs (12px), standard controls --control-md (32px), compact ones
+ --text-xs (12px), standard controls --control-md (32px), compact ones
--control-sm (24px).
========================================================================== */
@@ -811,7 +811,7 @@
.reference-preset-grid small {
margin-bottom: 2px;
color: var(--text-muted);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
}
.reference-preset-grid b {
diff --git a/src/styles/tag-editor.css b/src/styles/tag-editor.css
index b5a4779..23d4352 100644
--- a/src/styles/tag-editor.css
+++ b/src/styles/tag-editor.css
@@ -12,7 +12,7 @@
.tag-editor__drag:active { cursor: grabbing; }
.tag-editor__remove { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; margin-right: 1px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: var(--text-secondary); }
.tag-editor__remove:hover { color: var(--text-primary); background: var(--fill-subtle-hover); }
-.tag-editor__input { flex: 1 0 64px; min-width: 64px; height: var(--control-sm); padding: 0 var(--space-1); border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--text-primary); font-size: var(--text-sm); }
+.tag-editor__input { flex: 1 0 64px; min-width: 64px; height: var(--control-sm); padding: 0 var(--space-1); border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--text-primary); font-size: var(--text-base); }
.tag-editor__suggestions { position: fixed; z-index: 960; max-height: 264px; overflow-y: auto; padding: var(--space-1); border: 1px solid var(--stroke-surface); border-radius: var(--radius-lg); background: var(--acrylic); backdrop-filter: var(--acrylic-filter); box-shadow: var(--shadow-sm); color: var(--text-primary); font-size: var(--text-base); }
.tag-editor__suggestion { display: flex; align-items: center; min-height: var(--control-md); padding: 0 var(--space-3); border-radius: var(--radius-sm); }
.tag-editor__suggestion--active { background: var(--fill-subtle-hover); }
diff --git a/src/styles/timeline.css b/src/styles/timeline.css
index 04f19e2..3577c02 100644
--- a/src/styles/timeline.css
+++ b/src/styles/timeline.css
@@ -205,7 +205,7 @@
border-radius: 2px;
color: var(--on-stage);
background: color-mix(in srgb, var(--stage-bg) 60%, transparent);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-style: normal;
line-height: 16px;
font-variant-numeric: tabular-nums;
@@ -1065,7 +1065,7 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }
width: 148px;
min-height: 0;
height: var(--control-sm);
- font-size: var(--text-sm);
+ font-size: var(--text-base);
}
.transport-format {
@@ -1251,7 +1251,7 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }
border-left: 1px solid var(--text-muted);
color: var(--text-secondary);
font-family: var(--font-mono);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-variant-numeric: tabular-nums;
line-height: 1;
white-space: nowrap;
@@ -1498,7 +1498,7 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }
border-radius: 2px;
background: color-mix(in srgb, var(--stage-bg) 28%, transparent);
font-family: var(--font-mono);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
line-height: 14px;
}
@@ -1636,7 +1636,7 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }
color: var(--on-accent);
background: var(--danger);
font-family: var(--font-mono);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-weight: var(--weight-semibold);
line-height: 16px;
white-space: nowrap;
@@ -1673,7 +1673,7 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }
left: var(--space-1);
color: var(--snap);
font-family: var(--font-mono);
- font-size: var(--text-2xs);
+ font-size: var(--text-xs);
font-weight: var(--weight-semibold);
line-height: 1;
white-space: nowrap;
diff --git a/src/styles/tokens.css b/src/styles/tokens.css
index e788bb7..17001df 100644
--- a/src/styles/tokens.css
+++ b/src/styles/tokens.css
@@ -8,20 +8,19 @@
and elevation, not a website. When in doubt, do what the Settings app does.
RULES
- 1. Body copy is 14px (--text-base / --text-sm), Fluent "Body". Captions,
- secondary labels and metadata are 12px (--text-xs), Fluent "Caption".
- 2. 12px (--text-2xs) is the ABSOLUTE FLOOR. Nothing in the app is smaller.
+ 1. Body copy is 14px (--text-base), Fluent "Body". Captions, secondary
+ labels and metadata are 12px (--text-xs), Fluent "Caption".
+ 2. 12px (--text-xs) is the ABSOLUTE FLOOR. Nothing in the app is smaller.
Labels are sentence case at caption size: no uppercase, letter-spaced
- eyebrows, and no negative tracking on headings (the --tracking-* tokens
- are all 0 and exist only so old call sites resolve).
+ eyebrows, and no letter-spacing at all (there are no tracking tokens;
+ a heading never gets negative tracking).
3. Spacing follows an 8px rhythm with 4px half-steps. Use --space-*, never
arbitrary values.
4. Standard controls are 32px tall (--control-md): buttons, text fields,
selects, combo boxes, square icon buttons (--icon-button). Compact
controls packed into a dense toolbar or row are 24px (--control-sm).
- There is no taller "hero" size — --control-lg is also 32px and only
- survives because layout rows are built from it.
- 5. Corners are 4px on controls (--radius-sm / --radius-md) and 8px on cards,
+ There is no taller "hero" size.
+ 5. Corners are 4px on controls (--radius-sm) and 8px on cards,
flyouts, menus and dialogs (--radius-lg / --radius-xl). --radius-pill is
for badges, toggle switches and dots ONLY — never for a button or field.
The accent button is the one committed action on a surface; everything
@@ -89,15 +88,12 @@
/* --- Type ramp (Fluent) --------------------------------------------------
Caption 12/16 · Body 14/20 · Body large 18/24 · Subtitle 20/28 ·
- Title 28/36. The t-shirt names predate the ramp and several now collapse
- onto the same Fluent step; that is deliberate, not a typo. */
- --text-2xs: 12px; /* absolute floor: Caption */
- --text-xs: 12px; /* Caption: secondary text, metadata, labels */
- --text-sm: 14px; /* Body */
+ Title 28/36. One name per Fluent step; the t-shirt names predate the
+ ramp, which is why there is no --text-sm or --text-xl. */
+ --text-xs: 12px; /* Caption, and the absolute floor: secondary text, metadata, labels */
--text-base: 14px; /* Body / default */
--text-md: 18px; /* Body large: inspector titles */
- --text-lg: 20px; /* Subtitle */
- --text-xl: 20px; /* Subtitle: section and panel headings */
+ --text-lg: 20px; /* Subtitle: section and panel headings */
--text-2xl: 28px; /* Title: page titles */
/* --- Line height -------------------------------------------------------- */
@@ -126,9 +122,7 @@
/* --- Radii --------------------------------------------------------------
4px on controls, 8px on the containers that hold them (ControlCornerRadius
and OverlayCornerRadius in WinUI). */
- --radius-xs: 4px;
--radius-sm: 4px; /* buttons, fields, list items, chips */
- --radius-md: 4px; /* buttons, fields (the common spelling) */
--radius-lg: 8px; /* cards, flyouts, menus */
--radius-xl: 8px; /* dialogs */
--radius-pill: 999px; /* badges, toggle switches, dots ONLY */
@@ -139,7 +133,6 @@
still generous for a mouse; this is a desktop app. */
--control-sm: 24px; /* compact: dense toolbars, row actions */
--control-md: 32px; /* standard button / combo box */
- --control-lg: 32px; /* no taller variant exists; see rule 4 */
--icon-button: 32px; /* square subtle icon button */
--field-height: 32px; /* text inputs, selects, search */
--progress-height: 3px; /* ProgressBar track */
@@ -244,8 +237,8 @@
lifts to ~#3e414a, where --text-faint drops to 3.0:1 — menu labels use
primary / secondary ink (9.1:1 / 6.3:1 there), faint is only hints. */
--acrylic: rgba(30, 34, 44, 0.86);
- --dialog-bg: #12151d; /* ContentDialog body */
- --dialog-footer-bg: #0d1016; /* its button row, one step darker */
+ --dialog-bg: var(--panel-2); /* ContentDialog body */
+ --dialog-footer-bg: var(--surface-pane); /* its button row, one step darker */
--tooltip-bg: #1d212b;
--tooltip-stroke: rgba(0, 0, 0, 0.2);
@@ -259,7 +252,12 @@
/* --- Neutral washes ------------------------------------------------------
Hover / rest / pressed tints laid over whatever surface is underneath.
White in dark, BLACK in light — this is the single most common reason a
- converted stylesheet looks broken in the other theme. */
+ converted stylesheet looks broken in the other theme. Not folded into
+ the Fluent --fill-subtle-* pair: the compact segmented control rests on
+ --wash-1, which has to stay fainter than a hovered segment, and the
+ window caption buttons (titlebar.css) were tuned against the system's
+ own caption hover on Mica with this pair — swapping them is a visual
+ change, not a rename, so it waits for a side-by-side check. */
--wash-1: rgba(255, 255, 255, 0.025); /* resting fill on a segmented control */
--wash-2: rgba(255, 255, 255, 0.045); /* hover */
--grid-line: rgba(255, 255, 255, 0.14); /* beat grid + empty-stage dots, on --bg */
@@ -316,7 +314,7 @@
One flat fill with the faint Fluent elevation edge. No gradient, no
coloured shadow. */
--button-primary-bg: #3557c7; /* white on it is 6.3:1 */
- --button-primary-hover: #3f64d9; /* 5.2:1 — lighter, as dark-theme hover should be */
+ --button-primary-hover: var(--accent-fill); /* 5.2:1 — lighter, as dark-theme hover should be */
--button-primary-active: #2c49ac; /* 7.9:1 */
--button-primary-off-bg: var(--accent-disabled);
--button-primary-off-ink: var(--on-accent-disabled);
@@ -412,7 +410,9 @@
subtle fills). The accent darkens rather than brightens, because "more
contrast" points the other way here. Aliases (--layer, --glass, the focus
ring colour, --surface-base / -pane / -stage) are not restated: they
- follow the names they point at.
+ follow the names they point at. The two dialog aliases ARE restated,
+ because light swaps which rung is the body and which the footer (white
+ body over a grey button row, where dark puts the lighter step on top).
========================================================================== */
@media (prefers-color-scheme: light) {
@@ -447,8 +447,8 @@
--fill-subtle-pressed: rgba(0, 0, 0, 0.0241);
--thumb-bg: #ffffff;
--acrylic: rgba(252, 252, 252, 0.85);
- --dialog-bg: #ffffff;
- --dialog-footer-bg: #f5f7fa;
+ --dialog-bg: var(--panel);
+ --dialog-footer-bg: var(--panel-2);
--tooltip-bg: #f9f9f9;
--tooltip-stroke: rgba(0, 0, 0, 0.0578);
@@ -481,7 +481,7 @@
--on-accent-disabled: #ffffff;
--button-primary-bg: #2d5bd7; /* white on it is 5.9:1 */
- --button-primary-hover: #2450c4; /* 7.0:1 */
+ --button-primary-hover: #2450c4; /* 7.0:1 — darker in light, so not the --accent-fill alias */
--button-primary-active: #1e40af; /* 8.7:1 */
--button-primary-stroke: rgba(255, 255, 255, 0.08);
--button-primary-stroke-bottom: rgba(0, 0, 0, 0.4);
@@ -558,8 +558,8 @@
--fill-subtle-pressed: rgba(0, 0, 0, 0.0241);
--thumb-bg: #ffffff;
--acrylic: rgba(252, 252, 252, 0.85);
- --dialog-bg: #ffffff;
- --dialog-footer-bg: #f5f7fa;
+ --dialog-bg: var(--panel);
+ --dialog-footer-bg: var(--panel-2);
--tooltip-bg: #f9f9f9;
--tooltip-stroke: rgba(0, 0, 0, 0.0578);
diff --git a/src/styles/ui.css b/src/styles/ui.css
index 7649a10..62a1694 100644
--- a/src/styles/ui.css
+++ b/src/styles/ui.css
@@ -149,7 +149,7 @@
gap: var(--space-3);
padding: 0 var(--space-2) 0 var(--space-4);
border: 1px solid var(--stroke-card);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--card);
font-size: var(--text-base);
@@ -228,7 +228,7 @@
padding: 0 var(--space-2) 0 var(--space-3);
border: 1px solid var(--stroke-control);
border-bottom-color: var(--stroke-control-bottom);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--fill-control);
font-size: var(--text-base);
@@ -531,7 +531,7 @@
column-gap: var(--space-4);
padding: var(--space-3) var(--space-4);
border: 1px solid var(--stroke-card);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--card);
font-size: var(--text-base);
@@ -643,7 +643,7 @@
.ui-settings-expander__content {
border: 1px solid var(--stroke-card);
border-top: 0;
- border-radius: 0 0 var(--radius-md) var(--radius-md);
+ border-radius: 0 0 var(--radius-sm) var(--radius-sm);
background: var(--card);
}
@@ -992,7 +992,7 @@
max-width: 320px;
padding: calc(var(--space-1) + 1px) var(--space-2) calc(var(--space-2) - 1px);
border: 1px solid var(--tooltip-stroke);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--tooltip-bg);
box-shadow: var(--shadow-tooltip);
@@ -1277,7 +1277,7 @@
gap: var(--space-4);
padding: var(--space-2) var(--space-4);
border: 1px solid var(--stroke-card);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: var(--card);
font-size: var(--text-base);
@@ -1328,7 +1328,7 @@
padding: var(--space-4);
border: 1px solid var(--stroke-card);
border-top: 0;
- border-radius: 0 0 var(--radius-md) var(--radius-md);
+ border-radius: 0 0 var(--radius-sm) var(--radius-sm);
background: var(--card);
}
@@ -1350,7 +1350,7 @@
gap: var(--space-2);
padding: 0 var(--space-3);
border: 0;
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-secondary);
background: transparent;
font-size: var(--text-base);
@@ -1402,7 +1402,7 @@
gap: 0;
padding: 1px;
border: 1px solid var(--stroke-control);
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
background: var(--wash-1);
}
@@ -1480,7 +1480,7 @@
gap: var(--space-2);
padding: 0;
border: 1px solid transparent;
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: transparent;
font-size: var(--text-base);
@@ -1861,7 +1861,7 @@
gap: var(--space-3);
padding: 0 var(--space-3);
border: 0;
- border-radius: var(--radius-md);
+ border-radius: var(--radius-sm);
color: var(--text-primary);
background: transparent;
font-size: var(--text-base);
diff --git a/src/styles/work-queue.css b/src/styles/work-queue.css
index a3193f0..feb9c69 100644
--- a/src/styles/work-queue.css
+++ b/src/styles/work-queue.css
@@ -49,7 +49,7 @@
border-radius: var(--radius-sm);
background: transparent;
color: var(--accent-bright);
- font-size: var(--text-sm);
+ font-size: var(--text-base);
transition: var(--transition-control);
}