Repository navigation
Studio: one radius scale app-wide, filled borderless buttons - #14895
Closed
shimmyshimmer wants to merge 10 commits into
Closed
shimmyshimmer wants to merge 10 commits into
shimmyshimmer wants to merge 10 commits into
Conversation
Fix the Tailwind radius scale to concentric tiers (12px rows, 21px menus, 24px cards, 28px dialogs and composer) instead of offsets from a --radius that several regions overrode, move every component onto it, and make one-line controls full pills. Outline buttons and hand-rolled bordered buttons become neutral fills; value dropdowns and fields keep their border.
…rer toasts Number values in run settings no longer gain a focus ring that reads as the box growing, and drop from 32px to 28px. The system prompt editor's fields get the standard field border so they stand out from the light dialog. Toasts move from the 21px menu radius to the 16px compact tier.
Header and sidebar icon buttons, the model selector and context chips, and the account and update buttons go back to their rounded-square shapes rather than circles and pills. List menus return to a 4px gutter, with 16px rows so the hover stays concentric with the 21px corner.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
Command, URL and code boxes that are usually one line but can wrap use a new rounded-line utility: a pill on one line, soft corners once wrapped. The composer + button shows "Add files and more" on hover, like the pills beside it, and hides it while its menu is open.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
…ey run-settings sliders Standard menu rows go back to 12px so one-line rows are not pills. Value pickers get an explicit Button "picker" variant instead of an aria-based override that beat a caller's own fill, which had erased the run-settings Tool permissions box. Slider thumbs are 18px, and run settings sliders fill with the panel grey again.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
A menu's corner is now its 12px row radius plus its gutter. Standard menus, selects, context menus, the menubar and popover menus use a 4px gutter and a 16px corner (the browser and link menus drop their 6px gutter to match); the sidebar row menu (8px) and account menu (10px) get 20px and 22px, and the + menus keep 21px around their 9px gutter.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
Compact tooltips go back to 11px, rich tooltips to 16px and the sources hover card to its original radius; tooltips stay outside the radius scale.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
The CSS-only one-line radius gave a wrapped box half a line box of corner (about 22px), rounder than the code tier. A small ResizeObserver hook now tells one line from several: one line stays a pill, a wrapped command, URL or code box gets 16px like other code blocks. The account setup code is always one line and is a plain pill.
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
Notices, errors, alerts, option rows and small inner panels (8-12px padding, one to three lines) were on the 21px or 24px tier, which on a 50-70px box reads close to a capsule. They now use 16px, as do the debug log pane, the Library storage groups and the Hub load-more card. Larger panels, cards, popovers, textareas and the composer keep their tiers.
# Conflicts: # studio/frontend/src/features/settings/tabs/keyboard-shortcuts-tab.tsx
shimmyshimmer
pushed a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Oct 23, 2026
This was referenced Oct 23, 2026
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary The composer `+` button shows "Add files and more" on hover, using the same hover label as the pills beside it, and hides it while its menu is open. Applies to the single chat and compare composers. Independent of the radius stack; based on `main`. Split out of #14895. ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio: the label shows on hover and not while the menu is open.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
…4926) ## Summary - Run settings number values (Temperature, Presence Penalty and the rest) no longer get a focus ring outside the pill, which made the box look like it grew while editing. Editing only deepens the fill, and the pills are 28px instead of 32px. - Run settings sliders fill with the panel grey again; every other slider keeps the accent fill. - Slider thumbs are 18px instead of 20px everywhere. - The system prompt editor's prompt and variables fields get the standard field border, so they no longer blend into the white dialog in light mode. Independent of the radius stack; based on `main`. Split out of #14895. ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - In an isolated Studio the value pill measures 28px at rest and while editing, and thumbs 18x18. ## Not tested here Nothing specific to this change beyond the usual GPU-only screens.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary Chat, the composer surroundings, the browser panel and the shared assistant components (message parts, tool output, attachments, sidebar, command palette, update cards) move onto the radius scale. Stacked on #14919 (the radius scale and primitives); review that first. Split out of #14895. Applies the tiers per role and size: one-line buttons, chips, triggers and nav rows are pills, rows inside menus and lists 12px, compact notices, error boxes, option rows and code 16px, larger inner panels and popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep their shapes (the 30px header and sidebar icon buttons, the settings cog, the model selector and context chips, the account and update buttons). ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio together with the rest of the stack, including a rendered-DOM radius audit of these pages. ## Not tested here Surfaces that only render with a loaded model or a GPU (tool cards, generated images, streaming states).
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary Settings, Profile, Library, login, change password and the guided tour move onto the radius scale. The Settings dialog is 28px, matching the composer. Stacked on #14919 (the radius scale and primitives); review that first. Split out of #14895. Applies the tiers per role and size: one-line buttons, chips, triggers and nav rows are pills, rows inside menus and lists 12px, compact notices, error boxes, option rows and code 16px, larger inner panels and popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep their shapes (the 30px header and sidebar icon buttons, the settings cog, the model selector and context chips, the account and update buttons). ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio together with the rest of the stack, including a rendered-DOM radius audit of these pages. ## Not tested here Multi-account flows beyond the owner account.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary The Hub, model picker, loaded-models panel, Images and Video move onto the radius scale: model and trending cards 24px, the hero 28px, menu rows nested in their menus, one-line chips and triggers as pills. Stacked on #14919 (the radius scale and primitives); review that first. Split out of #14895. Applies the tiers per role and size: one-line buttons, chips, triggers and nav rows are pills, rows inside menus and lists 12px, compact notices, error boxes, option rows and code 16px, larger inner panels and popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep their shapes (the 30px header and sidebar icon buttons, the settings cog, the model selector and context chips, the account and update buttons). ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio together with the rest of the stack, including a rendered-DOM radius audit of these pages. ## Not tested here Image and video generation states that need a GPU.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
…g pages (#14923) ## Summary Recipe Studio, training Studio, Audio, API monitor, RAG, Export and the other remaining pages move onto the radius scale. Stacked on #14919 (the radius scale and primitives); review that first. Split out of #14895. Applies the tiers per role and size: one-line buttons, chips, triggers and nav rows are pills, rows inside menus and lists 12px, compact notices, error boxes, option rows and code 16px, larger inner panels and popovers 21px, cards 24px, dialogs 28px. Deliberate rounded squares keep their shapes (the 30px header and sidebar icon buttons, the settings cog, the model selector and context chips, the account and update buttons). ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio together with the rest of the stack, including a rendered-DOM radius audit of these pages. ## Not tested here Training, export and audio generation states that need a GPU or a loaded model.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary Clickable buttons no longer draw an outline. `Button variant="outline"` and the hand-rolled bordered buttons become a neutral fill (6% wash, 9% on hover; white in dark mode, as dark already was), and red outlined buttons become red fills. Value pickers keep their border: a new `Button variant="picker"` gives menu triggers that show a value (Tool permissions, the Data tab export format, the Library filters) the select trigger's look, as do `SelectTrigger`, text fields, selectable option cards and drop zones. Stacked on #14919 (the radius scale and primitives). Split out of #14895. ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - Checked in an isolated Studio in light and dark: Settings (General, Data, Voice, Agents), run settings, the library selection bar, error retry buttons. ## Not tested here GPU-only screens and surfaces that need a loaded model.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
## Summary Command, URL and code boxes that are usually one line but can wrap are pills while they fit on one line and take the 16px code tier once they wrap: the Agents setup commands and usage prompt, the LAN and remote URLs, the browser error message and the LLM Compressor command. CSS cannot tell one line from several, so a small `useSingleLine` hook (a ResizeObserver, only on these boxes) behind a `LineBox` component does it. The account setup code is always one line and is a plain pill. Stacked on #14919 (the radius scale and primitives). Split out of #14895. ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch. - In an isolated Studio the one-line Agents prompt measures a full pill and the two-line commands 16px. ## Not tested here The Desktop (Tauri/WebKit) shell.
shimmyshimmer
added a commit
that referenced
this pull request
Oct 23, 2026
) ## Summary Studio's corners follow one fixed radius scale, and the shared primitives and global styles move onto it. This is the base of a short stack: the per-area sweeps, filled buttons and one-line command boxes build on it (split out of #14895 so each piece can be reviewed on its own). Before, the Tailwind radius scale was a set of offsets from `--radius`, and five regions overrode that variable (chat search, model selector, API page, Settings, Skills), so the same class gave different corners in different places. The scale is now fixed px tiers, nested so an outer corner equals the inner corner plus its inset (the composer: 28px around an 18px send circle at a 10px inset; the `+` menu: 21px around 12px rows at a 9px gutter): | Class | Radius | Used for | |---|---|---| | `rounded-full` | pill | anything one line tall: buttons, inputs, select triggers, chips, badges, tabs, nav rows, toggles | | `rounded-sm` | 8px | tiny tiles and swatches | | `rounded-md` (and bare `rounded`) | 12px | rows in menus and lists, tiles inside a card | | `rounded-lg` | 16px | menus (12px rows + 4px gutter), code blocks, thumbnails, compact boxes with 8-12px padding | | `rounded-xl` | 21px | popovers, textareas, larger panels inside a card or dialog | | `rounded-2xl` | 24px | cards and panels | | `rounded-3xl` | 28px | composer, dialogs, sheets, large floating surfaces | In this PR: - The scale above, defined once in `@theme`; the `--radius` overrides are gone. - Primitives: one-line controls (badge, tabs, toggles, menubar, progress, kbd) are pills; dialogs, alert dialogs and the command palette are 28px; cards 24px; alerts and empty states on the compact and card tiers. - Menus: dropdowns, selects, context menus and the menubar use a 4px gutter, 12px rows and a 16px corner so the hover nests in the corner. The sidebar row menu (8px gutter) is 20px, the account menu (10px) 22px, the composer `+` menus keep 21px around their 9px gutter. - Global styles: composer 28px, code blocks 16px, elevated cards one 24px radius at every width, sidebar drag ghosts as pills, toasts 16px. - Tooltips keep their existing radii (11px compact, 16px rich). Pages that are not swept yet still render on the new scale, so some corners move slightly until their area PR lands. ## Verification - `npm run typecheck`, `npm test` and `npm run build` pass on this branch alone. - Tests that pinned old radius classes on primitives assert the new tiers. - Checked in an isolated Studio (light and dark) together with the rest of the stack; a rendered-DOM audit across chat, every Settings tab, Hub, Library, Images, Video, Audio, Studio, Data Recipes, Export, API monitor and Projects checks one-line boxes are pills, short boxes are not near-capsules and hover rows nest in their container. ## Not tested here GPU-only screens and surfaces that need a loaded model; the Desktop (Tauri/WebKit) shell. `corner-shape: squircle` only renders in Chromium. ## Stack Split out of #14895. Based on this PR (review this first): - #14920 radius scale in chat, browser and shared components - #14921 radius scale in Settings, Profile and Library - #14922 radius scale in the Hub, model picker, Images and Video - #14923 radius scale in Recipe Studio, Studio, Audio and the remaining pages - #14924 filled borderless buttons - #14925 one-line command and URL boxes are pills Independent, based on `main`: #14926 run settings controls, sliders and thumbs; #14927 composer `+` hover label. The sibling PRs touch disjoint lines, so they merge cleanly in any order once this lands. Merged together they are identical to #14895. ### Stacked PRs folded in The stacked PRs were squash-merged into this branch, so merging this PR lands all of them: #14920 (chat, browser, shared components), #14921 (Settings, Profile, Library), #14922 (Hub, model picker, Images, Video), #14923 (Recipe Studio, Studio, Audio, remaining pages), #14924 (filled borderless buttons), #14925 (one-line command and URL boxes as pills). Each was reviewed and staged on its own PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Studio's corners and buttons now follow one system.
Radius. The Tailwind radius scale is now a fixed set of concentric tiers. Before, it was a set of offsets from
--radius, which five regions overrode (chat search, model selector, API page, Settings, Skills), so the same class gave different corners in different places. The tiers come from the composer (28px around an 18px send circle at a 10px inset) and the+menu (21px around 12px rows at a 9px gutter):rounded-fullrounded-smrounded-md(and barerounded)rounded-lgrounded-xlrounded-2xlrounded-3xlEvery menu's corner is its 12px row radius plus its gutter, so the hover nests in the corner. Dropdowns, selects, comboboxes, context menus, the menubar and popover menus use a 4px gutter and a 16px corner (the browser and link menus drop their 6px gutter to match). The sidebar row menu (8px gutter) is 20px, the account menu (10px) 22px, and the composer
+menus keep 21px around their 9px gutter. Dialogs, the Settings dialog and the command palette are 28px. Cards are 24px. Tooltips are left as they were (11px compact, 16px rich). Arbitrary radii (rounded-4xl,[14px],[18px],[22px]and so on) are gone from the app. The exceptions are deliberate rounded squares, which stay as they were: the 30px header and sidebar icon buttons, the settings cog, the model selector and context chips in the chat header, and the account and update buttons in the sidebar.Buttons. A clickable button no longer draws an outline.
Button variant="outline"and the hand-rolled bordered buttons are now a neutral fill (6% wash, 9% on hover; white in dark mode, as dark already was). Red outlined buttons become red fills. Value pickers (SelectTrigger, and menu triggers that show the current value, nowButton variant="picker"), text fields, selectable option cards and drop zones keep their border.Smaller fixes.
useSingleLineResizeObserver hook (LineBoxcomponent) tells the two apart, since CSS cannot.+button shows "Add files and more" on hover, using the same hover label as the pills beside it, hidden while its menu is open.Radius follows box size as well as role: 21px or 24px on a 50 to 70px box reads close to a capsule, so short boxes take 16px.
Verification
npm run typecheck,npm test(13687 pass) andnpm run buildall pass. Biome reports the same per-file diagnostics as onmain.+menu, Settings (General, Profile, Voice, Data, API, Chat), Hub, Library, run settings and the system prompt editor. The run settings value pill measures 28px both at rest and while editing.Not tested here
corner-shape: squirclecorners only show in Chromium.