Skip to content

Corners: a 12px radius base, as in the updated UI Kit - #2878

Open
yasell wants to merge 1 commit into
CopilotKit:mainfrom
yasell:redesign/radius-12
Open

yasell wants to merge 1 commit into
CopilotKit:mainfrom
yasell:redesign/radius-12

Conversation

@yasell

@yasell yasell commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What changes

--radius, the one value every corner in the web app is worked out from, goes from 10px (0.625rem) to 12px (0.75rem). The ladder on top of it stays as it is (sm ×0.6, md ×0.8, lg ×1, xl ×1.4, up to 4xl ×2.6), and so does the step each thing takes. Every corner grows by a fifth:

Step What takes it main This pull request
rounded-md buttons, fields, tabs, menu rows 8px 9.6px
rounded-lg cards, the page's panel 10px 12px
rounded-xl menus, dialogs, toasts, the message box 14px 16.8px
rounded-sm the checkbox 6px 7.2px

No primitive and no screen is edited.

Why

The designer rebuilt the corners of the Figma UI Kit (OpenBot (MASTER), Primitives → radius) on a 12px base, because 10px read too small. The kit's ladder is the code's: base 12, sm 7.2, md 9.6, lg = base, xl 16.8, 2xl 21.6, 3xl 26.4, 4xl 31.2. Its mapping is also the code's rule as it stands: buttons, fields and tabs md, cards and panels lg, menus, dialogs, toasts and the message field xl. So the change is the one value, as design-system.md asks: "to make the app rounder or sharper, change that one value".

What follows the value

  • Artifacts. app/src/lib/artifacts/tokens.css takes the app's radius; regenerated with bun run tokens:generate.
  • The Recorder. Its in-page notice and recording mark (extension/src/content/notice.ts) draw with the app's radius, and extension/tests/content-notice.test.ts holds the two together, so RADIUS is 0.75rem too. The extension's own pages import theme.css and follow on their own.
  • Skins. A skin sets no radius of its own (app/tests/skins.test.ts), so OpenDuet, OpenDots and OpenFuse follow.
  • A Bot's generated UI (a2ui) reads var(--radius) and follows.

Left as they are, on purpose:

  • OpenBot Desktop keeps its own copy of the radius in desktop/src/styles.css, and its first-paint cover is drawn natively with 14px corners to match it (desktop/src-tauri/src/first_paint.rs). Moving it is a change of its own, in CSS and in Rust.
  • OpenBot Mobile has its own value (0.5rem, mobile/global.css).
  • The generative UI prompt (app/src/lib/copilot/generative-ui.ts) describes a look of its own to the model, colors included, with corners in rem. It is not tied to the theme and isn't touched here.

What it looks like

main beside this pull request, light and dark. The real primitives, built from each branch.

Up close: a button and a field (md), a card (lg), a menu's surface (xl).

Close-up: main and this pull request

Buttons, fields, a card, an open menu and a toast:

Controls, card, menu and toast: main and this pull request

A dialog:

Dialog: main and this pull request

Rules and tests

  • app-guidelines.md, "The look", item 3 (Corners): a 12px base, so controls 9.6px, cards and the panel 12px, menus, dialogs and the message box 16.8px. Only the numbers change, on the same lines.
  • app/tests/ui-look-theme.test.ts holds --radius at 0.75rem; its comments name the 12px base and the 7.2 to 31.2 ladder.
  • The comment over --radius in app/src/theme.css, and the checkbox's reason in app/tests/ui-primitives-look.test.ts (the control corner is now 9.6px), name the new steps.

What I looked at

  • bun run typecheck in app; biome lint --error-on-warnings and biome format on the changed files.
  • bun test: ui-look-theme, ui-primitives-look, skins, design-tokens, artifact-bridge-tokens, artifacts-kit; tokens/tests/generated.test.ts; extension/tests/content-notice.test.ts.
  • In Chromium and WebKit (OPENBOT_APP_BROWSER=1): artifacts-kit, free-runs-heads-up-layout, step-rows-layout, conversation-reply-toolbar-layout, organization-menu-names (the ones that read a computed corner).
  • The pictures above, light and dark.

Overlaps

The designer rebuilt the kit's corners on a 12px base (Primitives > radius),
with the code's own ladder and mapping, so --radius goes from 10px to 12px:
controls 9.6px, cards 12px, menus, dialogs and toasts 16.8px. The artifacts'
tokens are regenerated, and the Recorder's in-page notice takes the same
radius, as its test asks. The look's Corners item and the tests name the new
steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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