Skip to content

Making a theme

Webzing edited this page Nov 27, 2026 · 3 revisions

A theme changes how every page looks: colours, fonts, corners and width. You can make one without code in the Studio, or by hand.

The easy way: go to Style, adjust colours, fonts and shapes, press Save style, then use Your themes → Save my current style as a theme. Download it as a .zip to keep it or share it.

By hand: a theme is a folder with these files:

my-theme/
├── theme.json      name, colours, fonts (required)
├── theme.css       styles (required)
├── fonts/          optional .woff2 / .woff files
└── images/         optional .jpg .png .gif .webp files

theme.json:

{
  "id": "my-theme",
  "name": "My Theme",
  "description": "Short description",
  "author": "Your name",
  "dark": false,
  "defaults": {
    "bg": "#ffffff", "surface": "#f5f5f5", "text": "#111111", "muted": "#666666",
    "accent": "#111111", "accentText": "#ffffff", "border": "#e5e5e5",
    "headingFont": "modern", "bodyFont": "modern",
    "radius": 8, "width": 1080, "fontSize": 17
  },
  "alt": { "bg": "#111111", "surface": "#1b1b1b", "text": "#f2f2f2", "muted": "#a0a0a0",
           "accent": "#f2f2f2", "accentText": "#111111", "border": "#2b2b2b" }
}
  • alt is the palette for the visitor light/dark switch.
  • Fonts: pick headingFont and bodyFont from classic, didone, modern, humanist, geometric or mono. To use your own font, put the file in fonts/, add an @font-face rule in theme.css (src: url(fonts/my.woff2)), then set font-family.
  • Selectors: start every rule in theme.css with .theme-my-theme (your theme id).

The shared layout lives in assets/site.css, and all colours come from CSS variables: --tc-bg, --tc-surface, --tc-text, --tc-muted, --tc-accent, --tc-accent-text, --tc-border, --tc-font-heading, --tc-font-body, --tc-radius, --tc-wide, --tc-font-size.

Install it: zip the folder and upload it in Style → Your themes, or copy the folder into themes/ by FTP. See examples/theme-sand for a complete example, and the official themes for more.

Clone this wiki locally