Radius

Corner radius for containers and controls, and how to change the shape.

Corners come in two ladders. Container radii are for surfaces that hold other content: cards, tiles, modals, popups, toasts, menus. Control radii are for the things you click or type into: buttons, inputs, checkboxes, select triggers. A container is usually larger than the controls inside it, so its ladder is larger at the same step, and the two can be changed separately.

<div className="rounded-ws-container-md border border-ws-static-base p-ws-6">
  <button className="rounded-ws-control-lg">…</button>
</div>

rounded-lg and the rest are Tailwind’s own scale and do not follow these tokens.

Container

rounded-ws-container-*. Each sample is drawn with its token.

rounded-ws-container-none
0rem · --ws-radius-0
rounded-ws-container-sm
0.5rem · --ws-radius-200
rounded-ws-container-md
0.75rem · --ws-radius-300
rounded-ws-container-lg
1rem · --ws-radius-400
rounded-ws-container-xl
1.25rem · --ws-radius-500

Control

rounded-ws-control-*. full makes a pill: tags, status badges, tab pills, slider tracks.

rounded-ws-control-none
0rem · --ws-radius-0
rounded-ws-control-sm
0.25rem · --ws-radius-100
rounded-ws-control-md
0.375rem · --ws-radius-150
rounded-ws-control-lg
0.5rem · --ws-radius-200
rounded-ws-control-xl
0.625rem · --ws-radius-250
rounded-ws-control-full
624.9375rem · --ws-radius-full

Change the shape

Wideset ships one set of radii; there is no sharp or round mode to switch on. The shape is the tokens, so a stylesheet loaded after Wideset’s changes every component that reads them. Point a token at another --ws-radius-* primitive:

:root {
  --radius-ws-control-md: var(--ws-radius-50); /* tighter controls */
  --radius-ws-container-md: var(--ws-radius-100);
}

The same card drawn with the default tokens and with two such overrides, scoped to each box:

Container md
Control md
Default
Container md
Control md
Tighter
Container md
Control md
Pill controls

The chain is --radius-ws-control-md → --ws-corner-radius-control-medium → --ws-radius-150. Overriding a lower link at :root works too, but a primitive can be shared: --ws-radius-200 is both control-lg and container-sm. See Theming for where to load overrides.