Skip to content

visible

Whether the element renders.

Path

…elements.<element>.styles.visible

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.

PropBinding

A value supplied by one of the component’s own props.

Conditional

A conditional binding. Evaluates the condition against a bound prop and resolves to the then or else branch.

boolean (default: true)

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

Sets node.visible from a boolean. A $binding value is skipped by an earlier guard, and the conditional form is deferred to the paired-visibility feature — both are declared at the value-form level.

CSS

Disposition: bound · Realised by: effects, layoutToCSS, visibility

Only false emits, as display: none. A visible element says nothing, so the display its layout chose is not overridden. A variant revealing an element hidden in the default restores display from the default element’s own layout mode.

Decisions

  • ADR-002 — Replace effectStyleId with effects — Add Shadow, Blur, and Effects Types
  • ADR-008 — Introduce PropBinding to Replace ReferenceValue Unions for Bound Properties
  • ADR-018 — Conditional Visible Binding
  • ADR-047 — Component Slot Examples
  • 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