Appearance
Colours & fonts
Templates use Tailwind CSS 4. Brand colours and fonts are defined once, as theme tokens in the @theme block at the top of src/index.css. Every component uses those tokens, so changing one value restyles the whole site.
The current values are also listed in brand/BRAND.md and brand/tokens.json.
The @theme block
css
@import "tailwindcss" source(".");
@theme {
--font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
--color-ink: #0b0b0b;
--color-mist: #f5f5f4;
--color-cloud: #fafaf9;
--color-line: #e8e8e6;
--color-mute: #6b6b6b;
--color-soft: #a3a3a3;
--color-star: #22c55e;
}Tailwind turns each --color-<name> token into utility classes: bg-ink, text-ink, border-line, ring-star, fill-ink, plus opacity variants like bg-ink/80. Each --font-<name> token becomes a font-<name> class (font-sans, font-display).
Change a colour
Open
src/index.cssand find the@themeblock.Change the hex value, keeping the token name:
css--color-star: #e11d48; /* was #22c55e */Save. Every element using
bg-star,text-star, etc. updates.
Keep the roles, change the values
Token names describe a role (ink = main text, line = borders, mute = secondary text, accent/brand = highlights). Keep the names and change only the values, so you don't have to touch any component. Check text contrast with a tool such as the WebAIM contrast checker: body text should reach at least 4.5 : 1 against its background.
Some colours are also used in plain CSS further down index.css (for example body { background: #fff; } or ::selection). Search the file for the old hex value and replace it there too.
Add a new colour
Add a token to the @theme block and use it right away:
css
@theme {
--color-brand: #0f766e;
}jsx
<button className="bg-brand text-white hover:bg-brand/90">Book now</button>Change a font
Fonts load from Google Fonts in index.html and are applied through --font-* tokens.
Pick a font at fonts.google.com and copy its
<link>embed code (choose the weights you need, for example 400, 500, 600, 700).In
index.html, replace the existing Google Fonts<link href="https://fonts.googleapis.com/css2?family=…">with yours. Keep the twopreconnectlines.html<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />In
src/index.css, update the token:css--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;If the template has a second font (for example
--font-displayfor headings), repeat for that token.
Self-hosting fonts instead of Google Fonts
For privacy or speed, you can host font files yourself. Put the .woff2 files in public/fonts/, remove the Google Fonts <link>, and add this to src/index.css (above @theme):
css
@font-face {
font-family: "Inter";
src: url("/fonts/Inter-Variable.woff2") format("woff2");
font-weight: 100 900;
font-display: swap;
}If you deploy to a sub-folder, use a relative path or import the font from src/assets/ instead.
Other tokens
Some templates define more tokens in @theme, such as shadows (--shadow-soft → shadow-soft), radii (--radius-card → rounded-card) or breakpoints. They work the same way: change the value, keep the name.
Dark sections and dark mode
Templates with dark sections use the same tokens (for example bg-ink text-white). If a template has a light/dark switch, the dark values are defined next to the light ones in index.css, usually under a .dark selector or a @variant dark rule. Change both sets.