This page uses every text style the editor offers. If editors can pick it in the Studio, it shows up somewhere below.
Tokens first
Colors, spacing and font sizes live as CSS variables in one folder, web/src/assets/styles/variables. Tailwind reads them, the rich text reads them, the cookie banner reads them. Change a value there, and every place that uses it follows.
Light and dark
The switch in the menu flips the whole site between light and dark. Both themes use the same token names with different values, so no component has to check which theme is on.
Type
The demo uses Geist and Geist Mono. Next.js downloads both at build time and serves them from the site itself, so no visitor’s browser talks to Google.
There are six font sizes, from xs to 3lg. From 1440 pixels wide the larger ones step up, and the base size grows with the window.
What editors can use
- Body text, and big text for intros
- Four heading levels
- Bold, italic and
code - Links to pages on this site, to other websites, or to the cookie settings
- Numbered lists work too.
- This is one.
The editor’s H1 style renders as an h2 in the HTML, because the site name in the header is the page’s only h1. Screen readers find exactly one h1 per page, whatever style the editor picks.