Theme
The theme is the site's design: its colours, fonts and sizes. Everything on the website takes its look from the theme, so changing a colour once changes it everywhere. It is the website module's, edited by admins. Saving keeps a draft that only the admin sees; the site shows the theme once it is published, as with a page (Publishing and preview). The site's name, address, default SEO and languages are SHADE's site settings. SHADE itself keeps no theme: a frontend on an instance without the website module gets none and brings its own styling.
The design is layered: the theme first, the site's styles on top. The theme's colours, fonts and sizes are the site's first variables, with the same names and values, and the classes made in the visual editor's Style panel go on top of them (Pages and posts).
What users can do
Admins:
- Change the theme: 9 colours, 3 font stacks, web fonts, the type scale, spacing unit, corner radius and container width.
- Give the site dark colours (dark mode): the same 9 colours for visitors who prefer dark, and choose where a visitor starts: their device's setting, or always light or always dark until they switch.
- See the site's home page next to the form, following every unsaved change live, before saving.
- Save the theme as a draft, publish it when it is ready, and look back through its history and restore an earlier version.
- With the editorial module on, schedule the theme to go live at a set time, or put it in a release with pages that go live together with it, all or nothing. A schedule or release publishes the draft that was saved when it was set; later changes to the draft wait for a publish of their own.
- Reset the form to the default theme (nothing is saved until Save).
Editors:
- Nothing on this screen. They can read the theme (the visual editor shows its draft), but not change or publish it.
Who may do it
The theme is the website module's website-theme entry, so its permissions are that collection's own.
| Action | Permission | Roles |
|---|---|---|
| Read the theme | collections.website-theme.read | admin, editor |
| Save a draft of the theme | collections.website-theme.update | admin |
| Publish the theme | collections.website-theme.publish | admin |
| Get the theme editor's preview | collections.website-theme.read | admin, editor (only admins see the screen) |
| See the site styles | website.styles.read | admin, editor |
| Change the site styles | website.styles.update | admin |
AI assistants have no tool for the theme.
In the admin

Theme (/modules/website/theme)
Sidebar entry Theme (palette icon) in the sidebar's Website section, shown to users who may change the theme.
A full-page editor: the form on the left, the site's home page on the right.
- Colours: Primary, Text on primary, Secondary, Accent, Background, Surface, Text, Muted text, Border. Each is a hex text field with a swatch that opens a colour picker. Under them, the contrast of text on the background, of the primary's own text on the primary, and of muted text on the background, each with its ratio and AAA, AA or too low (4.5:1 is AA for text, 7:1 AAA).
- Dark mode: Give the site dark colours adds the same 9 colours for dark mode, starting from SHADE's own dark colours while the light ones are still the defaults, and otherwise from a dark set that follows the light colours (a grey site gets grey, a slate one slate; a primary that wouldn't stand out on the dark ground is turned around), to change to the site's own. Their contrast is shown as for the light ones, and Light and Dark above the preview show the page in either. Visitors whose device is set to dark see them, and a Light and dark switch on a page (Add element → Interactive) lets anyone choose: one press shows the other mode, and their browser remembers it. Fonts and sizes stay the same. Switched off, the site looks the same in both. The contrast checks look at both.
- Fonts: Headings, Body, Monospace, as font stacks (for example
Georgia, serif). To use a web font, put its family name first:"Inter", system-ui, sans-serif. - Web fonts: the theme's own fonts, at most 12. Add a web font opens the media library with WOFF2 files only (upload one there). Each font is one row: a Family (letters, digits, spaces and dashes; it starts as the file's name), a Weight (All weights = 100–900, for a variable font, Regular = 400, Bold = 700), a Style (Upright, Italic) and a remove button, with the file's name under the family. Add a font twice under one family for its bold or italic file. The card reminds editors to check that the font's licence allows use on a website.
- Import from Google Fonts: type a family's name as Google Fonts lists it (
Open Sans; letters, digits and spaces), tick With italics under it if you want them, and press Import. See "Importing a Google font" below. - Sizing: Base font size, Type scale ratio, Spacing unit, Corner radius, Container width, as number fields (the arrow keys step them; pixels said in the field) with the limits below.
- Header buttons: Reset to defaults (asks "Reset the theme to its defaults?"), History, the editorial module's actions (schedule, add to a release) when it is on, Save and Publish. Save is disabled until something changed; then Unsaved changes shows beside the buttons. After saving: "Theme draft saved"; the site doesn't change yet. Publish saves what is unsaved first and puts the draft on the site ("Theme published", with "The site will rebuild."). It reads Publish changes while the draft differs from the site and Published when there is nothing to publish.
- History lists the theme's versions with what changed in each (for example Primary colour
#000000 → #2563eb). Restoring one makes it the draft; publish it to put it on the site. - Two admins at once: if someone else saved the theme since you opened the screen, your save is refused, so their change isn't lost: "Someone else changed the theme meanwhile", with Reload the theme, which shows the theme as it is now (your changes here go). Save and Publish stay off until then. A theme that, published at the same moment as the site's styles are saved, would make the consent banner hard to read is refused too.
- Live preview: the home page (or, if there is none, the most recently changed page) as the site draws it, at the module's Preview address, in the default language, as in the website editor. Every change to the form shows in it a moment later, web fonts included, before saving; it waits until every value is valid (a half-typed colour waits). An expired link or a site that fails says so in the panel. If the site has no pages yet, the panel shows "No preview" with "Create a page first to preview the theme". The preview is shown on large screens only; on small screens the theme is edited without it.
- Release preview: the preview of a release that holds the theme shows the site's home page in the release's theme version, at the module's Preview address. A page's own preview keeps the published theme.
- Users who may not change the theme get the form read-only, without the buttons.
The screen is in English and Dutch.
Site styles (/modules/website/styles)
What the visual editor's Style panel builds on, in the sidebar's Website section as Site styles. Editors see it; admins change it. Changes are kept until Save, and go live when a page is next published.
- Starting point: mobile first (breakpoints change styles for larger screens) or desktop first (for smaller ones). A new site starts mobile first, with a tablet breakpoint at 768 pixels and a desktop one at 992. It can be switched only while no style is set at a breakpoint, since switching turns what every breakpoint means around; the two buttons are then locked, and the screen says why.
- Breakpoints: one row each, a name and a width in pixels, which can be changed; new ones are added below. The visual editor offers each as a screen width to preview and style.
- Container queries: styles that depend on the width of a box rather than the screen, each on a class that is a container (made in the editor's Style panel), with a width from and to. While no class is a container, Open the visual editor leads to the pages to make one.
- Variables: the theme's colours, fonts and sizes come first, shown as they are, with a link to change them on the
Theme screen. Other variables are kept in collections, each with a dark mode or not; with one, each variable has
a light and a dark value. A collection is a table, one row per variable: its type (an icon: colour, size, font,
corner radius, shadow, number), its name, its name in CSS (
--brand-accent) and its value in each mode side by side, which may refer to another variable. Renaming a variable's CSS name changes every style and variable that uses it. - Still used: removing a breakpoint, container query, variable or collection that styles still use is refused,
and the screen lists where it is used (a class, an element's own styles on a page, another variable, a menu that
folds at the breakpoint), so nothing on the site changes by surprise. A breakpoint can't be called
none: that is what a menu set never to fold says.
On the website
Every page carries the theme as variables, which the site's own styles and the Site styles use:
- colours:
--color-primary,--color-primary-contrast,--color-secondary,--color-accent,--color-background,--color-surface,--color-text,--color-muted,--color-border; - fonts:
--font-heading,--font-body,--font-mono; - type scale:
--text-xsto--text-5xl(9 steps), each the base size times the ratio for each step up;--text-3xland larger shrink on small screens; - spacing:
--space-1,-2,-3,-4,-6,-8,-12,-16,-24,-32, each that many spacing units; --radiusand--container.
With dark colours, the colour variables take their dark values for a visitor whose device is set to dark, and for
anyone who chose dark with a Light and dark switch (data-shade-mode="dark" on the page, kept in their browser
as shade-mode). The page applies the choice before it draws, so it never flashes in the other mode.
Start in (under Give the site dark colours) says which mode a visitor sees first: Their device's setting
(the default), Light or Dark. With Light or Dark the page is written with data-shade-mode set to it, so it
starts there without a script and whatever the device says; a Light and dark switch still changes it, and the
visitor's choice, kept in their browser, wins over the default from then on. SHADE's own site starts in Dark. A
frontend of your own writes the attribute with startingMode(theme) from @shadestack/client/render on <html>, as
the starters do.
Rules and limits
| Setting | Rule | Default |
|---|---|---|
| 9 colours | Hex, 3 or 6 digits (#1a2b3c); no transparency, no colour names | SHADE's own: black primary #000000, white background, text #171717 |
| 3 fonts | 1–200 characters; letters, digits, spaces, commas, quotes, hyphens only | SHADE's Geist and Geist Mono, then the system's own fonts (the Geist files are not included: add them as web fonts) |
| Base font size | 12–24 px | 16 |
| Type scale ratio | 1.05–1.618 (steps of 0.005) | 1.25 |
| Spacing unit | whole px, 2–16 | 4 |
| Corner radius | 0–48 px | 8 |
| Container width | whole px, 640–1920 (steps of 10) | 1200 |
- The strict rules for colours and fonts keep the site safe: a value such as
red;}body{is refused. - A saved draft changes nothing on the site. Publishing rebuilds it, gathered with other changes into one rebuild within 30 seconds to 2 minutes (Builds).
- Until the theme is first published, the site uses the default theme.
- The audit log records saves and publishes as the entry's own actions (
collections.website-theme.update,collections.website-theme.publish). - A web font of the theme's draft, of its published version or of a version waiting to be published counts as in use ("Theme") in the media library, so it cannot be deleted.
For developers
The code and its tests: the README of shade-plugin-website.
Web fonts on the site
- Saving and publishing check that every web font is a WOFF2 file in the media library ("Choose a WOFF2 font file from the media library").
- While a web font loads, text shows at once in the next font of the stack.
- The site's build copies the font files into the site like images, so visitors never load anything from SHADE or from a font service: no third-party requests, nothing to mention in a cookie or privacy notice.
- The theme's live preview shows a font added on the screen before saving, and the visual editor shows the fonts of the theme's draft.
- The site preloads the first three web font files in every page's head, so text does not wait for the CSS before the files are fetched.
Importing a Google font
A Google font is imported, never linked: SHADE downloads its files once into the media library, and from then on it is a web font like any other. Visitors never contact Google.
- SHADE asks Google Fonts for the family's CSS and downloads its WOFF2 files for Latin script (the
latinsubset). It takes every weight as one variable file where the family has one, else Regular and Bold, else the family's only weight; with With italics, the italic files too. - The files land in the media library as "Lora (Google Fonts).woff2", "Lora Italic (Google Fonts).woff2" and so on,
and the matching rows appear under Web fonts. Nothing is saved until you press Save. Then use the family in
a font stack above:
"Lora", Georgia, serif. - Importing a family again uses the files already in the media library: nothing is downloaded twice.
- A name Google Fonts does not have is refused ("Google Fonts has no font by that name").
- Google Fonts are free to use on a website (SIL Open Font License or Apache License).
- Who may: whoever may change the theme (
collections.website-theme.update) and upload media (media.upload); admins. - The download goes through the website module's
networkcapability, which namesfonts.googleapis.comandfonts.gstatic.com: the Modules page and the consent screen show both hosts. No other host is called.