Skip to content

rotation

Clockwise rotation about the element’s centre, in degrees.

Path

…elements.<element>.styles.rotation

Elements Supported

component · container · ellipse · glyph · instance · line · polygon · rectangle · slot · star · text · vector

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: Rotation/Quarter turn
$type: number

number (default: 0)

  • 45
  • -90

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.rotation

Degrees, written directly.

CSS

Disposition: bound · Realised by: transform

Emits transform: rotate(<n>deg). A rotation of 0 is suppressed because it matches the CSS initial value and a transform would otherwise create a containing block for absolute descendants.

Decisions

  • ADR-113 — Style defaults belong to the schema

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