Variable Bindings

Variable bindings connect element properties directly to design variables. When a variable changes, all bound properties update automatically. This creates a single source of truth for your design system.

What Are Variables?

Variables are named values that can be reused:

Creating Variables

  1. Open the Variables panel (View > Variables)
  2. Click "Create Variable"
  3. Choose type (Color, Number, String, Boolean)
  4. Name the variable
  5. Set the value

Binding to Properties

Quick Bind

  1. Select an element
  2. In Properties, click the property value
  3. Click the variable icon
  4. Choose a variable
  5. Property now bound to variable

Properties That Can Be Bound

Variable Modes

Variables can have different values per mode:

Setting Up Modes

  1. In Variables panel, create a collection
  2. Add modes to the collection
  3. Set different values per mode

Switching Modes

Variable Collections

Organize variables into collections:

Aliasing Variables

Variables can reference other variables:

Creates semantic token layers.

Scoping

Control where variables can be applied:

Prevents misuse of design tokens.

Export Options

Variables export to code as:

Tips