Skip to content
Playground

Radius

Shape roles across controls, surfaces, and overlays.

Zenos uses a restrained radius scale to communicate size, containment, and interaction. Smaller shapes belong to compact controls and nested elements; larger shapes define cards, panels, and application frames.

Small—radius-sm4px
Medium—radius-md6px
Large—radius-lg8px
Extra large—radius-xl12px
TokenTailwind utilityTypical role
--radius-smrounded-smMenu items, close controls, indicators, and compact nested elements
--radius-mdrounded-mdButtons, inputs, tags, popovers, and standard controls
--radius-lgrounded-lgAccordions, previews, grouped controls, and medium surfaces
--radius-xlrounded-xlCards, dialogs, side navigation, and application frames

Radius should reinforce the relationship between a container and its children. An outer surface generally uses the same or a larger radius than the controls nested inside it.

Application frame  → extra largeCard or panel      → large or extra largeInput or button    → mediumMenu item or icon  → small

Avoid mixing several radii within one compact component. A clear outer shape and one consistent nested shape are usually enough.

Interactive controls use medium radius by default. It provides a visible shape without making dense interfaces feel soft or decorative. Small radius is useful for controls nested inside another rounded surface, such as menu items, tags, or close actions.

The radius does not determine the target size. A control can remain visually compact while preserving an adequate pointer and touch area.

Cards and persistent panels generally use large or extra-large radius. Temporary overlays use a radius that matches their scale: a compact tooltip may use small radius, while a dialog can use extra large.

Sheets that meet a viewport edge may leave that edge square. Radius should describe the exposed boundary rather than force rounding where the surface continues beyond the viewport.

Use a fully rounded shape when geometry carries meaning:

  • circular avatars and status indicators
  • icon-only controls designed as circles
  • pills whose width changes with short, single-line content

Do not make every badge, input, or button pill-shaped. Full rounding creates a stronger visual voice than the core radius scale and should remain intentional.

Focus indicators must follow the component shape and remain visible against nearby surfaces. Avoid clipping an outer focus ring with an overflow-hidden parent.

When a container must clip content, place the focusable element inside the clipping boundary or use an inset focus treatment with sufficient contrast.

Override semantic radius tokens when adapting the complete Zenos theme:

CSS
:root {  --radius-sm: 0.25rem;  --radius-md: 0.375rem;  --radius-lg: 0.5rem;  --radius-xl: 0.75rem;}

Use className for an isolated product-specific shape. Repeated overrides usually indicate that the theme tokens should change instead.

Keep the scale ordered, subtle, and visually distinct. Radius supports hierarchy; it should not become the primary decoration.