Skip to content

Studio: radius scale in the Hub, model picker, Images and Video - #14922

Merged
shimmyshimmer merged 3 commits into
studio-radius-scalefrom
studio-radius-hub
Oct 23, 2026
Merged

shimmyshimmer merged 3 commits into
studio-radius-scalefrom
studio-radius-hub

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

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.

The Hub, model picker, loaded-models panel, Images and Video move onto the radius tiers: model cards 24px, hero 28px, menus and rows nested, one-line chips and triggers as pills, compact notices 16px.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex 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 🔄 Running since 2026-10-23T06:17:11.923942Z 6402ce3 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. Keep them coming!

Reviewed commit: def712642d

ℹ️ 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".

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

1 similar comment
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer
shimmyshimmer merged commit 6420316 into studio-radius-scale Oct 23, 2026
4 of 38 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-radius-hub branch October 23, 2026 07:56
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.
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