feat: unify theme system #7

Merged
reya merged 14 commits from unify-theme into master 2026-11-16 12:58:35 +00:00
Owner
No description provided.
reya added 14 commits 2026-11-16 12:58:25 +00:00
- Read only mode, accent, accessibility, and native window material from the OS.
- Replace platform palettes, metrics, type ramps, borders, and elevations with unified tokens.
- Align controls, overlays, and data rows with Base UI sizing.
- Lock the rendered medium button to the 32px token height.
- Replace remaining raw component metrics with theme constants.
- Share disabled opacity, focus ring alpha, and code line height.
- Route editor borders, weights, and links through the theme.
- Align tab, alert, toast, panel, and resize spacing.
- Add combobox, alert edge, and code gutter tokens.
- Replace rem-derived literals in alert, combobox, code, and diff.
- Replace the input focus shadow with an accent border.
- Apply the same focus border to select triggers.
- Set command labels to the medium control text size.
- Account for the track border when positioning the switch thumb.
- Keep description-bearing field labels emphasized.
- Render plain row labels at the normal callout weight.
- Render title and headline roles in semibold instead of bold.
- Add the xsmall size class and Sizable::xsmall().
- Use xsmall close buttons in tabs, dialogs, and alerts.
- Assert xsmall and medium button heights.
- Reduce xsmall control height from 24px to 20px.
- Scale xsmall text, icons, avatars, and switches down with it.
- Infer a square icon-only trigger when no label is set.
- Omit the chevron and horizontal padding in that mode.
- Demonstrate it with the gallery's More menu.
- Assert the icon-only trigger renders at 32x32.
- Map avatar small to xsmall, medium to small, and large to medium.
Add icon-only and icon-label toggles
CI / check (pull_request) Waiting to run
7c1827b41d
- Add an icon builder to Toggle.
- Render a square icon-only toggle when no label is set.
- Render icon and label together otherwise.
- Demonstrate both in the gallery.
reya merged commit aed3601c89 into master 2026-11-16 12:58:35 +00:00
reya deleted branch unify-theme 2026-11-16 12:58:35 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: reya/gpui-native-kit#7