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.
—radius-sm4px—radius-md6px—radius-lg8px—radius-xl12px| Token | Tailwind utility | Typical role |
|---|---|---|
--radius-sm | rounded-sm | Menu items, close controls, indicators, and compact nested elements |
--radius-md | rounded-md | Buttons, inputs, tags, popovers, and standard controls |
--radius-lg | rounded-lg | Accordions, previews, grouped controls, and medium surfaces |
--radius-xl | rounded-xl | Cards, dialogs, side navigation, and application frames |
Match radius to hierarchy
Section titled “Match radius to hierarchy”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 → smallAvoid mixing several radii within one compact component. A clear outer shape and one consistent nested shape are usually enough.
Controls
Section titled “Controls”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.
Surfaces and overlays
Section titled “Surfaces and overlays”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.
Circular and pill shapes
Section titled “Circular and pill shapes”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 and clipping
Section titled “Focus and clipping”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.
Customization
Section titled “Customization”Override semantic radius tokens when adapting the complete Zenos theme:
: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.