How to change the colours and fonts of a Vendra shop
Where the palette of each demo lives, how to set your own accent and background, how the 18 font packs work, how to fix one pack for every visitor, and how to add a font that is not included.

A Vendra demo is a block of CSS custom properties on the <html data-demo="…"> element, plus a font pack. Branding a shop means editing one block and, if you like, one pack.
Try it live first
The settings panel (the Customize button on every page) has an accent colour, a font pack, a corner radius, a page width, a card style, an image ratio and light or dark mode. Change them until the shop looks right, press Copy config to copy the choices as JSON, and use the values below. The panel stores a visitor's choices in localStorage; the steps that follow make them the defaults for everyone.
Colours: one block per demo
Open src/scss/_tokens.scss. The :root block is the fashion demo and the base for all; each other demo has an html[data-demo="…"] block that overrides a few properties. The ones you will change:
html[data-demo="mybrand"] {
--vd-font-display: "Fraunces", serif;
--vd-accent: #9c7a4d; --vd-accent-rgb: 156, 122, 77;
--vd-bg: #faf8f5; --vd-ink: #1d1f24;
--vd-radius: 4px; --vd-btn-radius: 0;
--vd-card-ratio: 4 / 5;
}
--vd-bg,--vd-surface,--vd-muted,--vd-field,--vd-border,--vd-card-bg: page background, panels, muted areas, form fields, lines, the background behind product photos.--vd-inkand--vd-heading: text and headings. The primary colour of buttons, links and form controls follows the ink, so a dark brand colour here changes the whole page.--vd-accentplus--vd-accent-rgb(the same colour as three numbers, used for tints and focus rings) and--vd-on-accentfor text on it.--vd-sale,--vd-new,--vd-star: the sale price, the “new” badge and the rating stars.--vd-radius,--vd-radius-lg,--vd-btn-radius,--vd-card-ratio: corners and the shape of product images.
To brand an existing demo, edit its block. To add your own, copy a block, rename the key and set data-demo="mybrand" on the page: in src/data/pages.js for the HTML edition (the demo of a page, or DEFAULT for all), and add the key to DEMOS in src/data/catalog.js so the store name and tagline resolve. Then run npm run build.
Dark mode
Dark mode is one neutral base shared by every demo, at the end of _tokens.scss under html[data-bs-theme="dark"]; a demo keeps its accent and may override it for dark backgrounds, as the tech, grocery, beauty and furniture demos do. Give your demo a dark accent the same way if the light one is too dark to read on #111214.
Fonts: packs of three
A font pack is three self-hosted families with one job each: display for headings and large numbers, body for paragraphs, forms and product names, accent for eyebrows, the menu, buttons, badges and labels. There are 18 packs, three per demo, defined in $packs in src/scss/_fonts.scss and listed with their moods in FONT_PACKS in catalog.js. The first pack of a demo is its default.
- To give a demo another pack for everyone, edit
$demo-packsin_fonts.scss, for examplefashion: gallery, and rebuild. This is the default a visitor gets until they pick a pack themselves. - To change the weight, tracking or uppercase treatment of headings, edit the pack's line in
$packs: each entry is display, body, accent, display weight, tracking, text transform, width, accent tracking, accent weight. - A
data-fonts="couture"attribute on the<html>element also selects a pack, and that is how the settings panel applies a visitor's choice. The engine sets and removes this attribute on every page load from what the visitor saved, so an attribute written intohead.hbsby hand does not survive; use$demo-packs.
Adding a font that is not included
All fonts come from Fontsource packages, Latin subset, under the SIL Open Font Licence, and are copied to public/assets/fonts with a generated fonts.css. To add one:
npm install @fontsource-variable/<name>(or@fontsource/<name>for static weights).- Add it to
scripts/sync-fonts.jsand runnpm run fonts. - Add a pack line to
$packsin_fonts.scssthat names it, and rebuild.
A page downloads only the three files of its pack, and nothing is requested from Google Fonts or any other outside service.
Shipping your defaults and hiding the panel
The settings panel works through attributes on the <html> element: data-radius (sharp, soft, round), data-width (wide, full), data-card (bordered, elevated), data-ratio (portrait, square), data-header="static", dir="rtl" and data-bs-theme. The engine writes all of them on every load from the visitor's saved choices and removes the ones that are not saved, so to change a default for everyone, change the value behind it rather than the attribute:
- Corners, image ratio: set
--vd-radius,--vd-radius-lg,--vd-btn-radiusand--vd-card-ratioin your demo block of_tokens.scss. The values the three radius presets use are insrc/scss/_settings.scss. - Page width, card style, static header: copy the rule you want from
_settings.scss(for examplehtml[data-card="bordered"] .vd-card) and apply it without the attribute selector. - Dark by default: the fallback is the string
'light'in two places, the inline script insrc/partials/head.hbs(var m = s.mode || 'light') andsrc/js/settings.js(const mode = s.mode || 'light'); change both to'dark'. - Effects: the defaults are the
FX_DEFAULTSobject insettings.jsand the same list in the inline script ofhead.hbs.
To remove the panel, delete {{> settings}} from src/partials/overlays.hbs. A visitor's earlier choices stay in their browser under vendra-settings, so clear that entry (or use the panel's reset) when you test your defaults.