Skip to content

Studio: neutral grey tints instead of green ones - #14938

Merged
shimmyshimmer merged 15 commits into
mainfrom
studio-neutral-accent
Oct 23, 2026
Merged

shimmyshimmer merged 15 commits into
mainfrom
studio-neutral-accent

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Light mint and dark green fills are gone from controls. Selected toggles, secondary buttons, hover and open pills, drag-over drop zones and selected cards now use a neutral grey wash of the text colour. Solid brand green (primary buttons, switches, slider fill, active pill text), the green on small badges and icon chips (New, research steps, section icon boxes, the API page chip) and status colours are unchanged.

What changed

  • Default theme tokens in index.css: --secondary is #f2f2f2 / #262626 (was mint / dark green). --border, --input, and the card, popover and sidebar ink lose their green chroma at the same lightness.
  • New bg-wash-N, border-wash-N, ring-wash-N and outline-wash-N utilities: foreground at N%, scaled by --contrast-wash-gain / --contrast-edge-gain like the existing hand-written washes, so the Contrast setting still applies.
  • Translucent *-primary/N tints under 80% on controls, selections, hovers and drop zones (about 55 sites) are now washes. Badges and icon chips keep their green.
  • Drop-zone drag-over states are lighter in light mode (30% dashed edge, 3% fill) and keep the stronger values in dark mode.
  • Composer pill hover and open state, the pill clear button, the video band behind browser clips, the image loading dots and the sidebar / files panel drag cues are neutral. The faint green glow behind the Studio and Hub page titles is removed.
  • Chat answer links are ink with a grey underline instead of green.
  • Add / new / create buttons lead with a plus icon (about 30 buttons; the Library's New and create buttons keep their own icons). The ones that were green (New project, New Recipe, Add server, New skill, Create section, Create token, ...) use the neutral secondary fill; black ones stay black.
  • Drop zones (image, audio, dataset, seed files, project sources) show a plain plus instead of upload, image-add or folder-add icons.
  • No green buttons: Button's default variant is the neutral grey (Save, Apply, minor actions). The one key action on a surface uses dark (black in light mode, white in dark mode): Generate, Send / Stop, Start (remote / LAN), Start training, Start Export, Export Model, Run, Connect in browser, Create project, Load, Download and alert-dialog confirms. Selected toggle buttons (export formats, run kind) use dark too. link buttons are ink instead of green.
  • Settings > Data: Import and Export buttons are text-only.
  • Delete, clear-data and revoke buttons use the red destructive variant (tinted red fill, red text) everywhere, including confirms that were solid red and the Library bulk-delete pills.
  • Chevrons: hugeicons ArrowRight01Icon / ArrowDown01Icon / ... and lucide ChevronRight / ChevronDown / ... are replaced by the standard chevrons in lib/chevron-icons.ts (54 files).

Before / after

Images > Edit (light): Add image 2 and the aspect swap button go from mint to grey.

01_images_edit_add_image_light_before_after

Images > Extend (dark): selected side toggles go from dark green to grey.

02_images_extend_sides_dark_before_after

Composer (light): pill hover fill goes from mint to grey.

03_composer_pill_hover_light_before_after

Drop zone while dragging a file (light): light grey dashed edge and fill.

08_image_dropzone_dragover_light_before_after

Drop zone while dragging a file (dark).

08_image_dropzone_dragover_dark_before_after

Add / create buttons: green ones go neutral, and every one leads with a plus.

10

11

Drop zones use a plain plus.

13

14

Key actions are black / white, minor ones grey.

19

18

16

Standard chevrons (archive rows, training-data button).

17

Verification

  • npm run typecheck, npm test (13730 pass), npm run build. No new biome findings on changed lines. Five source-text tests updated to the new class names.
  • Screenshots come from two isolated Studios: the merge base and this branch.

Not covered

  • This host has no GPU. The Images panels were rendered with a mocked /api/inference/images/status so they show without a loaded diffusion model. The drag-over shots dispatch a synthetic dragenter.
  • Other colour palettes (Classic, Minimal, the fruit palettes) also get neutral tints now instead of tints of their own accent; their solid accents are unchanged.

Selected, hover, drag-over and chip tints that were translucent brand green
are now translucent ink (new bg/border/ring/outline-wash-N utilities that
follow the contrast setting). The default theme's secondary fill, borders and
card ink lose their green cast. Solid brand green (primary buttons, switches,
slider fill) and status colours are unchanged.
Section card icon boxes (Export, training progress), Settings and provider
badges, the API page icon chip, resource share chips and the guided tour glow
used translucent --control-accent, which is green in the default theme.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
…zones

Reverts the control-accent tint commit and restores the green on small
badges and icon chips (New, Beta, research steps, recipe seed icons, chat
tile icons). Drop-zone drag-over borders and fills are lighter in light mode.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
Every add / new / create button leads with a plus icon, and the ones that were
green are now the neutral secondary fill (black ones stay black). Image, audio,
dataset and seed-file drop zones show a plain plus instead of upload or
image-add icons.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
# Conflicts:
#	studio/frontend/src/components/resource-picker/picker-shell.tsx
#	studio/frontend/src/features/chat/thread-sidebar.tsx
#	studio/frontend/src/features/rag/components/knowledge-base-dialog.tsx
#	studio/frontend/src/features/rag/components/project-source-dropzone.tsx
#	studio/frontend/src/features/rag/components/project-sources-panel.tsx
#	studio/frontend/src/features/recipe-studio/components/recipe-floating-icon-button-class.ts
#	studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx
#	studio/frontend/src/features/video/video-page.tsx
The default button is grey; the one key action on a surface (Generate, Send,
Start, Export, Connect in browser, dialog confirms) is black / white instead
of green. Delete, clear-data and revoke buttons use the red destructive style.
Hugeicons ArrowX01 and lucide Chevron icons are replaced by the standard
chevrons in lib/chevron-icons.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 23, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T08:45:26.796353Z e6d21f9 Manual request
🔒 Security Review ✅ Completed 2026-10-23T08:46:05.165321Z e6d21f9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e6d21f917e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: e6d21f917e

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

A new --action token fills black buttons. It is #1a1c1f in light mode for the
standard, classic and minimal palettes, and the ink everywhere else: dark mode,
the other palettes, and any custom foreground colour.
# Conflicts:
#	studio/frontend/src/features/settings/components/lan-access-section.tsx
#	studio/frontend/src/features/settings/components/remote-access-section.tsx
#	studio/frontend/src/features/settings/components/remote-lan-summary.tsx
@shimmyshimmer
shimmyshimmer merged commit a77db84 into main Oct 23, 2026
2 of 44 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-neutral-accent branch October 23, 2026 09:59
shimmyshimmer added a commit that referenced this pull request Oct 26, 2026
…lish (#15232)

## Studio: control heights, composer fades, API page layout, settings
polish

A round of UI fixes on top of #15122 (one padding for every main
button).

### Fields and pickers line up with buttons
- In Settings, every option dropdown (selects and picker-style menus, 55
across the tabs) has one height, a filled Button's, with 14px sides, a
pill shape and regular text-sm; they were 32, 34.75 or 36px with some at
11.25px, 12px sides or 16px corners. Scoped to `[data-settings-dialog]`,
so other pages keep their pickers; action menus (Export, Delete all)
keep the button look.
- New `h-control` / `size-control` utilities give a field or picker the
filled Button's height (label line + 7px padding + 1px border) at every
UI font size.
- Applied only where a field or picker shares a row with a filled
button: Settings rows (HF token and endpoint, upload cap, idle seconds,
sandbox memory, llama.cpp path and backend, LAN port and addresses,
first-token timeout, dictation search and sort, embedding model picker),
the accounts search, the API key form, Projects and Tasks search, and
the Hub folders dialog. Shared `Input`, `SelectTrigger` and icon
`Button` defaults are unchanged, so Images, Video and other pages look
as before.
- Dropdown rows round up to a whole pixel (`min-h-menu-row`), so the
last hover pill and the menu's bottom edge no longer sit between pixels.
A label pads itself the same way.

### Composer
- The circular Stop buttons (Stop generating, research, queued message,
dictation) draw their square at about 31% of the circle, up from 26%,
and the queue Resume button's play glyph is 1.125x the icon size (18px
at the default scale, from 16px), about a third of the circle's height.
The send arrow keeps its size.
- Stop, Send and Resume glyphs round up to an even pixel size, so their
offset in the circle is a whole pixel. At UI scales where the glyph came
out fractional (13.125px Stop, 19.5px Send) the browser snapped it up
and left; measured at 2x, Stop sat 1px left and 0.5px up, Send 0.5px
both ways, and both are now centred. Browsers without CSS `round()` keep
the unrounded size.
- Text cut off at the bottom fades; the last line of any draft gets a
faint fade on its descenders, and lines scrolled past the top fade once
you scroll.
- The scrollbar sits 8px from the composer edge instead of 14px; text
does not move.
- On the welcome screen, expanding the composer keeps its bottom edge
fixed and grows upward. Before, the whole composer jumped up and grew
only to a viewport clamp that, on a short window, barely exceeded a long
draft's compact height (#10863).
- Attachment tiles are 14px round instead of 16px. The remove X is white
in light mode and black in dark mode with a 1px outline.
- The scroll-to-bottom button has a 0.5px ring. Its edge came from the
outline Button border that #14919 replaced with a fill.

### Chat messages
- The context usage popup (Chat header and API page) uses the dropdown
surface instead of the black tooltip: popover background and text, the
menu radius, the body font, the menus' soft shadow in light mode and
page-coloured glow in dark mode.
- The Response stopped bar's Resume icon sits on its label's centre line
instead of 3.4px above it. As the button's last element (the label was
bare text), the icon lost its bottom margin to the message's
trailing-margin reset, so its box centred off-axis, and the button took
the trailing-icon padding. The label is a span now.
- The composer's solid play (Resume queue) is optically centred in its
circle: its box was exactly centred, which left the triangle's weight
1.7px left of the middle; it moves right by 1/12 of its width.
- Numbered list markers stay inside the message column. A fixed 1.25rem
gutter let "10." (and "1." at a larger chat font) hang past the
composer's edge; the gutter is now in em and widens at 10 and 100 items.

### API page
- The model picker sits in the top-left bar like Chat, Images and Video,
with Chat's label size and font. With nothing loaded it reads Load
models, since the page can serve several.
- The Base URL card lists every served model the same way, one or many
("1 model answering requests", "No models loaded"). Each row has the
code example beside its name and Run settings, Reload and Eject at its
end.
- Card buttons read Reload / Eject for one model and Reload all / Eject
all for several. Reload all reloads every served model, kept ones first
so the primary stays primary; with nothing served it reloads the last
local load as before. The reload logic moves to
`use-api-model-reload.ts`. A row reloads by its checkpoint (not a kept
slot's public alias), an MLX precision folder reloads as a model rather
than a GGUF quant, and an AMD NPU model goes through the NPU loader, as
the picker does.
- Each row shows Context with Chat's context chip, its ring in front of
the count and sized like the row's other icons: the latest request's
prompt plus reply against that request's window. Hover shows the usage,
prompt and completion split; a click pins it until a click elsewhere or
Escape (`pinOnClick`, opt-in, so Chat's chip is unchanged). Only
requests since the model's latest load count, and requests logged as
`<id>:<quant>` match their model.
- The row icons and the Context chip share one hover: the icons take the
chip's colour in dark mode, the chip takes the icons' colour in light
mode, and on this page the chip hovers as a full pill (`hoverClassName`,
opt-in, so Chat's chip is unchanged).
- A row's code example icon shows only while that row is hovered or the
icon has keyboard focus (always on touch). Rows are subgrids rather than
`display: contents`, so the whole row, gaps included, is the hover
target.
- After Context each row shows Speed (generation tok/s), Total time
(average per request: queue wait, prompt processing and generation) and
Requests (with errors in red), over requests since the model's latest
load. Icons stand in for the labels (the lightning and timer from the
request log, arrows for requests); the label stays in the hover title
and for screen readers.
- The page works at every width down to phones. Under a narrow card a
model row stacks: the name on its own line (wrapping, never cut), then
the facts and its buttons. The summary tiles go 2, 3 or 6 across by the
page's own width rather than the window's, so the sidebar no longer
squeezes six tiles into cut-off labels, and the settings button stays
beside the title.
- The rows drop the Slots fact. It only existed for the primary model,
read "0/4 busy" nearly always, and opened the same Run settings as the
gear; queued requests still show under In flight.
- Fixed: after the code example dialog closed, the Context popup never
opened again. The shared Tooltip latched every controlled tooltip shut
when a modal opened, until its owner next said false; one that was
already shut never says it again. The latch now applies only to a
controlled tooltip that was open.
- Empty-state icons are borderless circles; the saved load settings
forget button is red.
- The page fades into the sticky picker bar with Chat's 24px header fade
instead of cutting off under it.

### Hub
- The Run button's label and play icon are white in both themes (they
used the success foreground, which is dark), and it has 15px of right
padding against 12px on the left, since the play glyph's empty side
already reads as left padding.

### Audio
- The Record button (Clone, Edit and the other pages with an Upload /
Record / From history source) uses the composer's microphone instead of
Hugeicons `Mic01Icon`.

### Settings and sidebar
- Settings > API: Create token uses the dark action button and is never
disabled for an empty name. An unnamed token is called New Token N, one
past the highest N in use (translated in every locale); the name field
reads Token name. The expiry presets and Create token have tooltips
(Create token names the token it will make).
- Settings > API: access tokens are a table with Name, Token, Created,
Last used and Expires columns. The token created panel, its field and
the rows use the standard settings card, input and hover styles instead
of the green panel, and the field no longer draws a focus ring around
the preselected token.
- Settings > API: the row menu adds Regenerate token, which makes a
token with the same name and expiry period and then revokes the old one,
after a confirmation. The new token is created first, so a failed create
leaves the old one working.
- Settings > API is regrouped: access first (tokens, usage examples,
keyless access, MCP access), then the monitor link and model controls
(memory, auto-switch, aliases), then the audio, image and video, and
decision APIs.
- Danger zone draws its divider above the heading, not under it.
- Card icons (Remote access, LAN, Keyless API, MCP, Decision API,
monitor) are borderless filled circles in both themes.
- Sidebar New pills use the API page's green chip (`Badge` variant
`accent`); #14938 had turned them grey through the shared secondary
fill.
- The sidebar More menu has pill hover rows in a matching corner radius.
- The remaining lucide trash icons (API saved settings, prompt storage,
OpenAI code exec, research panel, generation presets) use the Hugeicons
`Delete02Icon` used everywhere else.
- Controls that reload something draw Hugeicons' two-arc reload glyph
(`Refresh04Icon`, re-exported as `ReloadIcon` from `lib/reload-icon.ts`;
the package's own `ReloadIcon` is an older shape with bent arc ends):
Images and Video Reapply (reloads the model), the in-app browser's
Reload and Run again, and the browser tab menu's Reload (was lucide
`RotateCw` / `Refresh01Icon`). Refresh, retry, regenerate and update
keep `Refresh01Icon`.
- Settings > Resources lists Model memory right after GPU devices, above
the inference engine sections.
- Settings > API gets a Model memory section with the two rows that
decide what the server can answer: Keep model in GPU memory and Keep
multiple models loaded. Same controls and saved values as Resources
(`ModelMemorySection variant="api"`). A System settings link beside the
heading opens System settings scrolled to Model memory for the rest
(label in every locale).

### UI parity
- The studiobench thread-structure check reports every action's thread
scaffolding 84 or 172 characters longer. That is intended: it is the
composer's new fade wrappers and control-height classes around the
thread, not message content. The PR carries the `affects UI#` label for
it.
- The startup bundle budget is raised by this PR's measured growth
(2,639 B raw / 717 B transfer, mostly the new strings in the eager
locales), with the numbers in the comment above `BUDGET`.
- The queue Resume glyph is deliberately right of geometric centre
(optically centred), so `playwright_queue_localization.py` now asserts
that offset instead of exact centring.

## Verification
- `npm run typecheck`, `npm test` (13,947 pass, 0 fail), `npm run
i18n:check:strict`, `npm run build`.
- An isolated Studio from this branch, driven with Playwright:
- A scan of every page and Settings tab for a filled button beside a
control of a different height found 13 mismatches before and none after,
at UI font scales 0.8, 1 and 1.25.
- Menus measured at whole-pixel row heights with equal top and bottom
gaps (8px / 8px, 6px / 6px).
- Welcome composer expansion keeps the bottom edge fixed (650px window:
296-650 to 133-650; 900px window: 376-522 to 144-522).
- The API card was checked with one real GGUF model and with three
models (two faked in the browser by rewriting the status responses).
- The API page at 375, 768, 1024 and 1440px wide: no horizontal
overflow, and the row's ring and icons measure 14px on one centre line.
- Token regenerate run against a token the script created with a 30 day
expiry: the new token kept 30 days, the old one was revoked.

## Not covered here
- Reloading several real models at once (keep-models-loaded mode) was
not exercised; it was checked with one model and by reading the runtime
code.
- Desktop (Tauri) builds were not run from this host; the list marker
fix was checked in Chromium with overlay scrollbars.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant