Agentic Design System
v3.5.0

Foundations · Radius

Radius

The corner-radius language every control, container and surface in this system borrows from - a visual signal of hierarchy, not just a rounded corner.

What are you building?

Pick the product type closest to yours and the recommended radius philosophy below updates to match - you can still choose a different one manually afterward.

Radius philosophy

The corner-rounding character every control, card and surface in this system follows. Balanced is the starting preview. Choose the radius philosophy yourself, then select Save foundation. Project Setup does not select a radius for you.

Each tagline ("4-16px") names the characteristic core range - what most everyday controls actually look like under that philosophy - not the full set of values it makes available. Every philosophy's own scale below additionally always includes 0 (for the deliberate square-corner exceptions every philosophy still needs - a divider, a code block) and a generous top value or Full (for circular/pill elements - an avatar, a toggle thumb - which exist under every philosophy too). Neither is a contradiction of the tagline; both are values the tagline was never claiming to describe in the first place.

Recommended global model

Radius communicates hierarchy - smaller values read as precise and utilitarian, larger values read as container or emphasis.

Precision

2-4px

Interactive

4-8px

Container

8-16px

Large surface

16-24px

Pill / circle

Full

Radius by component role

These values are Balanced's own resolved numbers (the default philosophy) for each named role slot, not a fixed literal promise across every philosophy. Every real component references the slot by name (--radius-md, not a literal 8px), so picking Sharp above doesn't drop "Interactive components" below the role's intended size tier - it reinterprets what that same slot resolves to under Sharp instead (4px, not 8px). The role stays the same; only the philosophy's own numbers behind it change.

Micro components Small badge, tiny indicator, chip, compact control 2, 4px
Interactive components Button, input, select, checkbox, search field, dropdown - default 8px 4, 6, 8px
Content components Card, info panel, notification, form container - default 12px 8, 12, 16px
Large surfaces Modal, dialog, drawer, bottom sheet, dashboard container - default 16px 12, 16, 24px
Floating / overlay Popover, tooltip, dropdown menu, context menu - default 8px 6, 8, 12px

Attachment changes which corners this role's radius actually applies to - a floating surface detached on all sides (a popover) rounds all four corners, but a surface attached to the viewport edge (a side drawer, a mobile bottom sheet) only rounds the corners that are actually free - the edge flush against the viewport uses 0 on that edge specifically, via CSS's own per-corner border-radius syntax (e.g. a bottom sheet: border-radius: 12px 12px 0 0), not a single uniform value forced onto all four corners. Shadows documents the same attached edge for its own purpose (still shadowed, just not rounded there) - this is the Radius half of that same rule. A surface that fills the entire viewport with no visible edge at all (a full-screen mobile modal) has no corner to round either way - radius is moot there, not 0 as a stated choice.

The circle-vs-pill rule above (Avatar/Icon Button/Toggle) isn't specific to those three components - it's this system's one standalone rule for the Full value generally: the exact same token renders as a true circle only when the element's own width equals its height, and as a stadium/pill shape on anything wider (or taller) than that - both are correct, intentional uses of Full, distinguished by the element's own aspect ratio, never by picking a different radius value for one versus the other.

A component's radius stays invariant across its own interactive states - hover, focus, error and selected change color, border and background, never the corner radius itself (confirmed: no state rule in this system's component CSS touches border-radius). A rounded shape that subtly changed radius when focused would read as movement, not feedback. The one real risk this invariance doesn't cover on its own: a rounded container using overflow: hidden (Card does, to keep its own content from spilling past its corners) can clip a focused child's outline if that child sits close enough to the edge - this system's own Card avoids it today with generous internal padding (14px, well past the ~4px a focus outline needs), but it's a constraint to check explicitly on any new rounded + clipped container, not something the invariance rule above guarantees by itself.

Component defaults

Button Compact enterprise 4px · expressive consumer 12px · pill uses Full 8px
Input / Select / Textarea Share one control radius across every form field 8px
Card Follows Medium: Sharp 4px · Compact 6px · Balanced 8px · Soft 12px · Expressive 16px 8px
Modal / Dialog Compact enterprise 12px · large/expressive 20-24px 16px
Badge Chip uses 8px; pill status uses Full - not every badge should be a pill 4px
Tooltip / Popover / Dropdown Keep floating surfaces tighter than content containers 8px
Table Round the container only - individual cells stay 0px to avoid fragmentation 8px
Avatar / Icon Button / Toggle Circular only when width equals height Full
Navigation (nav links, tabs, menu items) Same as its own container's radius family - a sidebar nav link already matches Input/Button's 8px, not a separate value 8px

Nested corners only need adjusting at all when the gap between container and child is tighter than the container's own radius. In that regime, the cap is inner radius = max(0, outer radius - gap) - a ceiling on the inner element's radius, not a replacement value. The moment the gap meets or exceeds the outer radius, this formula stops applying entirely and the inner element keeps its own independent radius unchanged, full stop - it does not mean "the formula evaluates to 0, so square it." Card's 16px body padding is already wider than Card's own 12px radius, so a Button (8px) sitting inside one needs no adjustment (8px, unchanged) - not 0px, even though max(0, 12-16) alone looks like it should be. Something sitting flush against an edge with little or no gap is the case the cap is actually for - e.g. a tab strip inset only 4px inside a 12px-radius container caps at max(0, 12-4) = 8px, genuinely smaller than its own 12px default.

Measure the gap from the outer border edge: gap = border width + padding. A 12px outer radius, 1px border and 4px padding give a 7px child cap: 12 - (1 + 4) = 7px. The inner border contour itself is outer radius - border width. Apply the child cap per corner using its adjacent inset; when the inset exceeds the outer radius, keep the child's independent radius.

AI Rule

Generated interfaces must take a component's corner radius from this page's Component Defaults mapping - never invent a radius value, and never round a component that isn't listed here without first adding it to the mapping.

For developers and AI agents: Markdown export and implementation contract

Radius tokens - Markdown export

A Markdown snapshot of your current product type and radius philosophy choices above - regenerates live as you pick, so it's always in sync. Copy it straight into your design system docs or hand it to an AI/agent workflow.

Implementation contract

Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.

Primitives and roles

Numeric --radius-n primitives retain n pixels in every philosophy. Only semantic sm/md/lg roles change: Sharp 2/4/8; Compact 2/6/12; Balanced 4/8/16; Soft 4/12/20; Expressive 8/16/32. Export these active roles and use semantic tokens for component shells.

Permission and exceptions

Controls use sm/md according to the component recipe; panels/dialogs use md/lg. Pills use full with content width; circles require equal width/height. Attached edges and full-screen sheets set the attached corners to zero. Do not claim every third-party or native consumer is automatically tokenized.

Nested geometry

Measure the inset between the outer contour and the child's outer contour. With border-box outer radius R, border b and padding p, an adjacent child is inset b+p: cap=max(0,R-(b+p)). For outer R=12,b=1,p=4 the cap is 7px. For the parent's inner contour use R-b and gap p. Apply independently per corner; a child separated by at least R keeps its independent radius.

States and clipping

Hover, focus, selected and error change color/boundary but preserve corner geometry. Avoid overflow:hidden near focusable children or leave focus-ring clearance. Forced colors still expose the outline; state shape is not the only signal.

Flow and export

Select and save the radius philosophy explicitly. Project Setup does not preselect it. Reset previews Balanced until Save foundation. Saved settings require Edit foundation before changes; Cancel retains the saved values. Export primitive/semantic mapping, attached/nested geometry, exceptions and px/rem equivalents.

Machine contract: section rules, storage, units and acceptance
{
  "schemaVersion": 1,
  "authority": "Saved validated choices override project recommendations, which override system defaults. This implementation contract governs static specimens. Resolved tokens in the current export are authoritative values. Component exceptions must name the affected role and reason.",
  "governance": {
    "owners": "Design System Lead owns token and compatibility policy. Designers own specimens and interaction contracts. Developers own resolver/export/import parity. QA and Accessibility own release evidence. Product teams own domain-specific confidence, privacy and retention policies.",
    "changes": "Change the JSON contract first, regenerate documentation/defaults/catalog/tokens, then run model, DOM and recipient checks. Link the changed finding IDs and evidence in the release review.",
    "compatibility": "Keep hue-named CSS tokens as compatibility aliases while semantic consumers migrate. Additive tokens retain schemaVersion 1. A removed/renamed key or changed stored meaning requires a schema migration, a version bump and a documented replacement before release. Keep the prior reader fixture until the migration is verified.",
    "deprecation": "Record old key, replacement, reason, introduced version, planned removal version and affected consumers. Do not remove a token while an active consumer still uses it. Future records are preserved rather than coerced.",
    "scope": "This is a web design system with one shared workspace profile. Native dp/sp adaptation and real agent execution require separate adapters and acceptance. User-defined colors and responsive exceptions require product-specific rendered verification."
  },
  "storage": {
    "version": 1,
    "legacy": "Unversioned valid records migrate in memory. Typography headingScaleVersion 2 applies the smaller six-heading scale once to older records, retaining other roles and existing font/color/style metrics. Later custom size edits are retained. Unsupported future records are preserved. The next successful write stamps the migrated version.",
    "future": "Reject unsupported future versions. Preserve raw data. Offer backup and explicit reset.",
    "invalid": "Foundation selections preview locally until Save foundation succeeds. Saved Foundation editors require Edit foundation before changes. Cancel discards the preview. Invalid drafts never replace saved records; storage failures retain the editable preview and the last durable record.",
    "concurrency": "A storage event refreshes applied tokens and disables stale editor controls until reload. Never merge simultaneous edits silently."
  },
  "units": {
    "base": "1rem = 16px at default browser settings. Do not fix the root font size.",
    "use": "Prefer rem for typography, spacing and control dimensions. Hairline borders and viewport thresholds may use px. Both equivalents appear in Markdown. SVG strokes use viewBox units. Ratios, percentages, columns, timing and weights are unitless or retain their own units.",
    "native": "Web CSS px/rem are not native dp/sp. A native adapter must map semantic roles, support text scaling and test device density. Native rendering is not shipped by this web library."
  },
  "acceptance": [
    "Compare page, applied tokens, durable record, Machine View and exported instructions.",
    "Test valid, unfinished, invalid, missing, malformed, legacy and future records. Exercise storage failure, reset, reload and another tab.",
    "Test 320, 375, 768, 1024 and 1440px widths, 200% zoom, text-spacing overrides, RTL and long/localized labels.",
    "Use keyboard and screen reader. Confirm focus return, names, values, error associations and status announcements.",
    "Verify actual rendered text/surface pairs, forced colors, reduced motion, print and exported recipes in a recipient fixture. Source or DOM checks alone are not rendered acceptance."
  ],
  "layers": {
    "content": 0,
    "sticky": 20,
    "popover": 40,
    "scrim": 60,
    "dialog": 70,
    "toast": 80,
    "tooltip": 90,
    "rules": "Each overlay gets an explicit owner and close/focus-return path. Portal menus out of clipped scroll containers. Nested dialogs stack one scrim per modal owner. Escape closes the top dismissible layer. Tooltips never block actions. Test collision and zoom; do not infer stacking order from shadow size."
  },
  "section": {
    "title": "Radius",
    "rules": {
      "Primitives and roles": "Numeric --radius-n primitives retain n pixels in every philosophy. Only semantic sm/md/lg roles change: Sharp 2/4/8; Compact 2/6/12; Balanced 4/8/16; Soft 4/12/20; Expressive 8/16/32. Export these active roles and use semantic tokens for component shells.",
      "Permission and exceptions": "Controls use sm/md according to the component recipe; panels/dialogs use md/lg. Pills use full with content width; circles require equal width/height. Attached edges and full-screen sheets set the attached corners to zero. Do not claim every third-party or native consumer is automatically tokenized.",
      "Nested geometry": "Measure the inset between the outer contour and the child's outer contour. With border-box outer radius R, border b and padding p, an adjacent child is inset b+p: cap=max(0,R-(b+p)). For outer R=12,b=1,p=4 the cap is 7px. For the parent's inner contour use R-b and gap p. Apply independently per corner; a child separated by at least R keeps its independent radius.",
      "States and clipping": "Hover, focus, selected and error change color/boundary but preserve corner geometry. Avoid overflow:hidden near focusable children or leave focus-ring clearance. Forced colors still expose the outline; state shape is not the only signal.",
      "Flow and export": "Select and save the radius philosophy explicitly. Project Setup does not preselect it. Reset previews Balanced until Save foundation. Saved settings require Edit foundation before changes; Cancel retains the saved values. Export primitive/semantic mapping, attached/nested geometry, exceptions and px/rem equivalents."
    }
  }
}