Skip to content

Colors, fonts and text styles

Define your colors, fonts and text styles once — they change everywhere, in the design and in the app.

The Style tab on the left holds the design's colors, its two fonts and its text styles. These are the things worth defining once, because everything that uses one follows it.

And they are not only a convenience inside the design: they become CSS variables in the generated app. A color changed here is a color changed in the app.

Colors#

Each color has a name and a value. Give them names that say what they're for rather than what they are — primary, surface, text-muted — because blue is a lie as soon as the brand changes.

Next to each color is a count of how many layers use it. That number is how you find the color nobody is using, and it's how you know what you're about to affect before you change one.

Dark mode#

Each color can have a second value for dark mode. Switch the Style panel to Dark and you're editing those values; the canvas shows the design as it will look.

The app follows the visitor's own device setting, so you aren't building a switch — you're providing the other half of each color.

Fonts#

Two: one for headings, one for body text. Keeping it to two is most of what makes a design look deliberate.

A sample below the pickers shows both, at the sizes you'll actually read them at.

Text styles#

A text style is a named set of font, size, weight, line height and letter spacing. "Heading 1", "Body", "Caption", "Button".

A text layer can use a style instead of having its own settings. When it does, its font and size controls disappear from the right panel — because those now come from the style, and changing the style changes every text that uses it.

Like colors, each style shows how many texts use it.

Why this matters more here than in a design tool#

In a design tool, consistent styles are good practice. Here they are the app's theme.

A design where every heading was sized by hand produces a project with a hundred hard-coded font sizes, and changing the type scale means a hundred edits. The same design using five text styles produces five CSS variables.

The Code tab on the right shows this as you work: the Vue template for what you've selected, with your colors and fonts as variables rather than values.

Next#