Docs

·

Layout and systems

Make a dark version of a frame

Press Shift D to place a copy of a frame with its background and text colors swapped, still inside your palette.

A dark version is a quick way to see a design in dark mode. Optic makes a copy of the frame, swaps its ground and ink colors, and keeps everything inside your palette.

Make one

  1. Select a frame.

  2. Press ⇧D.

  3. A copy named with · Dark appears to the right of the original, and Optic zooms to show both.

What changes

  • The background color and the main text color swap.

  • Other colors in your palette stay as they are.

  • Layout, text and images are copied exactly.

When to use modes instead

A dark version is a separate copy. If you will keep editing both, set up variables and modes so one design switches between light and dark.

Questions

My accent color looks wrong on dark.

Change it on the dark copy by hand, or use modes to give the accent a different value in Dark.

Does it work on several frames at once?

It works on the selected frame. Repeat for each frame you need.

Next

Libraries: share components and styles between files