Branding
You can rebrand Razzia for your school, company or event by dropping a few files in the config/branding folder. Without this folder, Razzia keeps its default look.
Set up a theme
Section titled “Set up a theme”-
Create a
brandingfolder in yourconfigfolder, and put your images in it:Directoryconfig
Directorybranding
- theme.json
- logo.svg
- favicon.svg
- background.png
-
Create
theme.jsonwith the fields you want to change:config/branding/theme.json {"appName": "My Quiz","colors": {"primary": "#ff9900","secondary": "#1a140b","correct": "#22c55e"},"answerColors": ["#e69f00", "#56b4e9", "#3dbfa0", "#cc79a7"],"font": {"family": "Rubik",},"logo": "/branding/logo.svg","favicon": "/branding/favicon.svg","background": "/branding/background.png"} -
Reload the page. No restart is needed: the theme is read by the browser on each load.
Fields
Section titled “Fields”Every field is optional. Anything you leave out keeps its default value.
| Field | What it changes |
|---|---|
appName |
The app name, also used as the browser tab title. |
colors |
The main colors of the interface. See Colors. |
answerColors |
The colors of the answer buttons, in order. Up to 4. |
font |
The font: a family name, and an optional url to a stylesheet that loads it, like Google Fonts. |
logo |
The logo shown in the app. |
favicon |
The icon in the browser tab. |
background |
The background image. |
Files in config/branding are served at /branding/, so a file config/branding/logo.svg is referenced as /branding/logo.svg.
Colors
Section titled “Colors”colors accepts any CSS color for these keys:
| Key | Used for |
|---|---|
primary |
Buttons, highlights and progress bars. |
secondary |
The dark background of the game screens. |
correct |
Right answers: checkmarks, and the expected value and margin of estimation questions. |
background, foreground |
Cards, inputs and dialogs: their surface and their text. |
muted, muted-foreground |
Secondary surfaces and text, like placeholders and hints. |
accent, accent-foreground |
Borders and subtle highlights. |