Colours and fonts
Colours and fonts holds your site's shared design values: its colours, fonts, text sizes, spacing and corners. Change one there and every element that uses it follows, on every page.
On this page
The Colours and fonts panel: the bakery site's paper, ink and accent colours, its display font, fluid text sizes and spacing, read from src/index.css, with Light and Dark mode.
Open the panelLink to this section
Choose Colours and fonts in the left rail, or press V. It reads the values from the file they live in, so what you see is what your site really uses.
What's in itLink to this section
- Colours, such as your brand colour, text and background
- Fonts, the families your site uses
- Text sizes, from small text up to big headings
- Spacing, the gaps between and inside sections
- Corner radius, how round cards and buttons are
- Sizes and Shadows, such as the widest a page's content gets and the shadow under cards
Add a value with the plus beside its group, and remove one you no longer use. On a Tailwind site these are its theme values, the same ones the Tailwind v4 visual editor writes into classes.
Light and dark modeLink to this section
A switch at the top reads Light and Dark mode. Dark mode holds the colours for visitors whose device is set to dark mode. Leave a colour empty there and it keeps its light colour.
On plain CSS, Sass and CSS-in-JS sitesLink to this section
A site without a Tailwind theme shows the CSS variables it sets for the whole page. A site built with Sass, styled-components or Emotion lists its own settings under Shared values, with where each one is used. See Sass and CSS-in-JS and CSS, Sass and CSS-in-JS.
Good to knowLink to this section
- A site with no shared values yet shows Add some with AI, which asks your AI to set them up.
- Undo on the canvas doesn't cover Colours and fonts. To go back, use a restore point. See Restore points and undo.
- To style one element instead of the whole site, use the Style panel. See The Style panel.
- Shared styles, next to it in the rail, is where you see where each class is used, rename it everywhere and clean up unused ones.