Shape

Soft corners signal approachability. Roadie uses Tailwind's built-in border-radius scale to create a consistent, rounded visual language that progresses from inline elements to full containers.

Radius scale

Nine tiers, from inline marks to edge-to-edge hero surfaces. Roadie uses Tailwind's built-in radius utilities up to rounded-4xl and adds three extended tiers (rounded-5xl, rounded-6xl, rounded-7xl) for large promotional layouts. Avoid arbitrary values like rounded-[2.5rem] — stick to the named utilities so the scale stays consistent.

TierClassValueUse forPreview
Inlinerounded-sm2pxMarks, highlights
Smallrounded-md6pxInline code, code blocks, prose images
Fieldrounded-lg8pxInputs, textareas, select triggers, radio items
Containerrounded-xl12pxCards, select popups, radio cards, popovers
Largerounded-2xl16pxModals, dialogs, drawers
Herorounded-5xl40pxHero cards, collection headers, bottom sheets
Featurerounded-6xl48pxFeature banners, spotlight surfaces
Oversizerounded-7xl56pxEdge-to-edge promotional layouts
Fullrounded-full9999pxButtons, badges, avatars, pills

Visual examples

Each tier applied to a surface. The progression from subtle to dramatic rounding creates a natural visual hierarchy.

rounded-sm

2px

Inline

rounded-md

6px

Small

rounded-lg

8px

Field

rounded-xl

12px

Container

rounded-2xl

16px

Large

rounded-5xl

40px

Hero

rounded-6xl

48px

Feature

rounded-7xl

56px

Oversize

rounded-full

9999px

Full

Component usage

Which components use which tier. These are the defaults — override with className when a specific context requires it.

ComponentTierClass
ButtonFullrounded-full
BadgeFullrounded-full
CardContainerrounded-xl
Select triggerFieldrounded-lg
Select popupContainerrounded-xl
InputFieldrounded-lg
TextareaFieldrounded-lg
RadioGroup (default)Fieldrounded-lg
RadioGroup (card)Containerrounded-xl
CodeSmallrounded-md
Mark / HighlightInlinerounded-sm
Prose (code blocks, images)Small / Fieldrounded-md / rounded-lg

Guidelines

Match radius to hierarchy

Larger radii for higher-level containers, smaller radii for inline or nested elements. This creates a natural visual hierarchy.

Card — rounded-xl

Input — rounded-lg

Do

Use larger radii for containers (cards, dialogs) and smaller radii for inline elements (code, marks).

Card — rounded-md

Input — rounded-md

Don’t

Apply the same radius everywhere. A card and an inline code span should not share the same corner treatment.

Keep pills for actions

Reserve rounded-full for interactive pill shapes and circular elements.

ButtonButtonBadgeTag

Do

Use rounded-full for buttons, badges, tags, and avatars.

A card with rounded-full

Don’t

Use rounded-full on cards or containers. Full rounding distorts rectangular layouts.

Nest with decreasing radius

When elements are nested, the inner element should use an equal or smaller radius than the outer. This avoids visual tension at corners.

Parent rounded-xl, child rounded-lg

Do

Inner elements use equal or smaller radius than their parent.

Parent rounded-lg, child rounded-2xl

Don’t

Use a larger radius on a child than its parent — the child's corners will clip awkwardly against the parent's straighter edges.

Best practices

  • Prefer the standard tier for each element type. Override with className only when a specific context demands it.

  • When in doubt, round up to the next tier for a softer feel. The brand leans soft.

  • rounded-2xl is reserved for top-layer UI (modals, dialogs, drawers). Do not use it on inline components.

  • Never mix custom pixel values with the Tailwind scale. Stick to the utility classes.

  • Focus rings follow automatically. Roadie's is-interactive and is-interactive-field utilities handle focus ring radius — no separate token needed.