Skip to content

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: dimension

Corners

Per-corner values using logical inline-axis directions (topStart/topEnd/bottomStart/bottomEnd). Used for cornerRadius when corners differ.

topStart: 4
topEnd: 4
bottomEnd: 0
bottomStart: 0

number (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 aspectRatio to Styles
  • ADR-010 — Sides and Corners Composite Types
  • ADR-113 — Style defaults belong to the schema

Further reading

Rules

RuleStatement
DSPEC-44Every property of Styles declares a default, and its value validates against that property’s own schema
DSPEC-45A declared default is a literal, never a TokenReference, PropBinding or Conditional

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11