Design tokens
Read the colors, spacing and fonts of a design from a capture, as CSS or Swift.
In the Library, right-click a capture and choose Copy Design Tokens. Glimmer reads the capture and copies:
- Colors: the dominant colors, from the pixels.
- Spacing: the gaps between elements, measured from runs of pixels.
The tokens are copied as CSS custom properties (“Design tokens copied (CSS)”).
Fonts can’t be read reliably from pixels, so they aren’t included.
For a single color, use the color picker. To measure a distance, use Measure.
Next#
Something missing or unclear? Write to [email protected].