In the bar: “Domain” → “Design”. One screen that paints the whole domain — the ordinary pages and the task page in the game alike.
Styling used to be built by overriding the engine's rules one at a time: a long list of selectors in the domain's css, each with a colour of its own. Now there are two simpler layers underneath — the theme and the tokens — and your own css goes on top of them rather than instead of them.
A theme is a ready-made set of values that your css is laid over. It is picked on the “Domain settings” tab, in the “Theme” row.
A theme paints the domain as a whole, not only the game. One and the same set describes the site, the game, the light mode and the dark one — so a domain cannot end up with a sand-coloured day and a cyberpunk night.
A theme is a delta, not a full set: whatever it does not name stays as the engine has it. So “No theme” is not “broken” but “everything by default”.
The top row — the screens:
The second row — the slots, that is, the fields you actually write into:
| Screen | Slots |
|---|---|
| Menu | Menu (HTML) |
| Site | Header (HTML), Footer (HTML), CSS |
| Game | Header in the game (HTML), CSS: light theme, CSS: dark theme |
Under the tabs there is a line about what the open slot is laid over, and next to every css slot a “Theme tokens” link.
On the left the editor, on the right the showcase. The showcase is not a live page of the domain but a sample built by the studio: for “Site” it is the menu, a basic page, the list of games, the statistics, the codes map and the answers log (the showcase has a table of contents of its own); for “Game” it is the task container, the inventory, a spoiler and an alert. This is deliberate: a draft no longer lands on real pages where anyone could run into it.
The showcase has switches of its own: “Light” / “Dark” (on the “Game” screen only), full width or as on a phone, and redraw.
css is applied on every keystroke, with no reload of the showcase. HTML cannot do that — the server builds it, and the showcase redraws after a pause once you stop typing.
A token is a name for a colour (or a size) that the engine uses in all of its rules: –qeng-body-bg, –qeng-surface-bg, –qeng-accent and a few hundred more. Set the name and the colour spreads across every rule by itself — no selector has to be overridden:
:root { --qeng-body-bg: #050505; }
The list opens by the “Theme tokens” link next to any css slot.
This is a reference, not an input field: you still edit css, the tokens are only listed here.
Above the showcase there is a contrast bar: “Contrast: OK (N elements)“ or “N contrast problems”, the “◀ ▶” arrows to walk the problems, and “Show all”. Its thresholds are deliberately softer than WCAG — this is a hunt for the plainly unreadable, not an accessibility audit.
The “🔍 Inspector” button turns on element picking: you click anything in the showcase and see which layer the rule came from:
<style>),The “➕ To the editor” button inserts the selector into the open slot. On an html slot it does not work — there is nowhere to put a rule.
Both tools work on a css slot only. While an html slot is open, it is your html running in the showcase, and it is served in a sandbox; the inspector closes itself and the contrast bar goes quiet. This is not a fault but a safety boundary.
Broke the layout so badly that the page will not open? Add?safeto the address — the domain shows up with no styling of its own and no theme, and the studio opens.
Admin pages and the editors on their own pages take no domain styling — no theme, no css of yours, no header of yours. They look the same on every domain; there is no screen for them in the studio at all.
Two subtleties that are easiest to trip over:
The light and dark mode in a game is chosen by the player — with the “Dark mode” switch in the game menu. It is not the domain's theme and is not tied to it: a theme describes both modes at once.
Technically the mode is an attribute on the root element of the page:
:root[data-theme="dark"] { /* night */ } :root[data-theme="light"] { /* day */ }
Only the game page sets the attribute. On the pages of the site it is not there at all, sohtml:not([data-theme])means a page of the site, not the day. The rule for the day is written[data-theme=“light”].
In the domain's css for the game you usually do not have to write this: the domain's light and dark themes live in two separate slots, and the engine links the right file itself.
If a theme has to be forced on one level, that is done by a task script: Elements of the task page.