# Radius

> Use Honest UI's radius scale for consistent corners, pills, and circular shapes.

Source: https://www.honestui.com/docs/theme/radius

Radius tokens keep corner decisions consistent across components and let a product change its overall character without rewriting component classes. Honest UI provides seven roles, from subtle rounding to a full pill or circle.

The scale applies wherever the theme is loaded. There is no attribute to set: controls are clearly rounded, and cards are large and calm.

<TokenTable
  caption="Honest UI radius tokens"
  type="radius"
  tokens="[
  { name: &#x22;--hui-radius-1&#x22;, value: &#x22;6px&#x22;, description: &#x22;Small controls and subtle corner treatment&#x22; },
  { name: &#x22;--hui-radius-2&#x22;, value: &#x22;10px&#x22;, description: &#x22;Buttons, inputs, menus, and badges&#x22; },
  { name: &#x22;--hui-radius-3&#x22;, value: &#x22;12px&#x22;, description: &#x22;Grouped component containers&#x22; },
  { name: &#x22;--hui-radius-4&#x22;, value: &#x22;16px&#x22;, description: &#x22;Dialogs, sheets, and larger surfaces&#x22; },
  { name: &#x22;--hui-radius-5&#x22;, value: &#x22;20px&#x22;, description: &#x22;Cards and large panels&#x22; },
  { name: &#x22;--hui-radius-6&#x22;, value: &#x22;28px&#x22;, description: &#x22;Extra-large or expressive surfaces&#x22; },
  { name: &#x22;--hui-radius-full&#x22;, value: &#x22;800px&#x22;, description: &#x22;Pills, circular avatars, and round indicators&#x22; },
  { name: &#x22;--hui-radius-frame-panel&#x22;, value: &#x22;var(--hui-radius-3)&#x22;, description: &#x22;FramePanel corners&#x22; },
  { name: &#x22;--hui-radius-frame&#x22;, value: &#x22;calc(panel radius + 8px)&#x22;, description: &#x22;Frame corners, concentric with the panels inside&#x22; },
]"
/>

## Earlier styles [#earlier-styles]

Honest UI used to offer `modern`, `traditional`, and `soft` values for `data-style`. They are merged into the one style above. Existing `data-style` attributes are ignored, so you can remove them when convenient. `honestui/theme.css` now includes the style, and `honestui/soft.css` remains as a copy so existing imports keep building.

For denser screens, use a `compact` [density scope](/docs/components/density) instead of a smaller radius scale.

## Tailwind usage [#tailwind-usage]

```tsx
<article className="overflow-clip rounded-[var(--hui-radius-3)]">
  <img
    alt=""
    className="rounded-[var(--hui-radius-2)]"
    src="/project-cover.jpg"
  />
  <span className="rounded-[var(--hui-radius-full)]">Active</span>
</article>
```

To round a product differently, override the radius tokens on `:root` after the theme. Component classes do not need to change.

## Practical guidance [#practical-guidance]

* Pick a token by the element's role and reuse it. Similar controls should not have slightly different corners.
* Keep nested radii visually related. An inner element normally uses the same or a smaller token than its container.
* Use `--hui-radius-full` for pills and circles rather than choosing an arbitrarily large number.
* Radius does not make an element interactive. Preserve visible boundaries, affordances, labels, and focus indicators.
* Test clipped focus rings and content near rounded corners. Use the focus-ring offset tokens documented in [Effects](/docs/theme/effects) when a container would otherwise cut the indicator off.
