Docs
Variables and modes
Store colors and sizes as variables with a value per mode, then flip a whole file or one frame between light and dark.
Variables hold values you use again and again, like brand colors, corner radius or spacing. Each variable has a value per mode, so one file can switch between light and dark, or between two brands.
Turn your colors into variables
Open Variables in the left rail.
Choose Turn this file's colours into variables. Optic collects the colors you used and makes a variable for each.
Rename them by role, like Background, Text and Accent.
Add a mode
In Variables, add a mode.
Call it Dark and Optic fills it with a dark counterpart of every color.
Adjust any of them by hand.
Bind a layer to a variable
Select a layer.
In Variables in the panel on the right, bind its fill, color, border, corners or size to a variable.
When the variable changes, every layer bound to it changes too.
Switch modes
Flip the whole file between modes from the Variables panel, or set a single frame to its own mode so light and dark sit side by side.
Tips
Name variables by purpose, not by color. Accent outlives blue.
Bind text and backgrounds before you add a dark mode, so the switch is complete.
Variables travel with libraries and show as tokens in Handoff.
Questions
What is the difference between a variable and a text style?
A variable holds one value, like a color. A text style holds a whole set of type settings.
Can I have more than two modes?
Yes. Add as many as your design needs, such as Light, Dark and High contrast.
Is this the same as a dark version?
No. A dark version makes a quick copy of one frame. Modes keep one design that switches.
Next
Make a dark version of a frame