locked
Whether the element is protected from selection and editing on the canvas.
Path
…elements.<element>.styles.locked
Elements Supported
component · container · ellipse · glyph · instance · line · polygon · rectangle · slot · star · text · vector
Value
boolean (default: false)
Example
| Type | Example |
|---|---|
boolean | true |
Platform bindings
Figma
Disposition: bound · Realised by: node.locked
Canvas interaction only — the Plugin API can still mutate a locked node, so it applies wherever it is reached, children included.
CSS
Disposition: unsupported · Realised by: —
Not emitted. locked is a canvas-interaction concept with no CSS counterpart, and the transform has no awareness of the key. The value is dropped with no warning.
Decisions
- ADR-113 — Style defaults belong to the schema
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 |