Skip to content

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

TypeExample
booleantrue

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

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