cornerRadius
How much each corner is rounded.
Path
…elements.<element>.styles.cornerRadius
Elements Supported
component · container · rectangle · slot
Value
TokenReference
A design token, written as a $token path plus a $type, as in { $token: Color/On surface, $type: color }. The consuming platform resolves it to a value.
$token: Constants/Radius/Medium$type: dimensionCorners
Per-corner values using logical inline-axis directions (topStart/topEnd/bottomStart/bottomEnd). Used for cornerRadius when corners differ.
topStart: 4topEnd: 4bottomEnd: 0bottomStart: 0number (default: 0)
null
Themes
A TokenReference written here resolves under the theme in force on this element — the one it selects in themes, or the nearest ancestor’s. The same token path yields a different value under a different theme.
Platform bindings
Figma
Disposition: bound · Realised by: node.cornerRadius
A uniform value sets the node radius; a token also binds the variable to all four corner fields; a per-corner object expands to Figma’s physical corner properties. Not applied to a text node.
CSS
Disposition: approximated · Realised by: cornerRadius
Emits border-radius, reordering a per-corner object from the schema’s logical order into CSS’s. Loss: a corner that cannot be resolved substitutes 0 rather than being reported, and an unresolved token radius with no cached fallback degrades to the keyword unset. An ellipse receives border-radius: 50% only when this key produced nothing.
Decisions
- ADR-004 — Add
aspectRatiotoStyles - ADR-010 — Sides and Corners Composite Types
- ADR-113 — Style defaults belong to the schema
Further reading
- ADR 010 — Sides and Corners Composite Types — replaces flat padding/stroke/corner fields with
SidesandCornerscomposites using logical directions
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every property of Styles declares a default, and its value validates against that property’s own schema |
| DSPEC-45 | A declared default is a literal, never a TokenReference, PropBinding or Conditional |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |