Making a theme

A theme is a folder with one text file, THEME.CFG. It gives values (colours, corner radii, sizes, button styles) to one of Mizu's two looks, Kasumi or Retro. The look still draws everything; a theme can't run code. Nothing needs building: change the file, and the theme changes.

Where themes live

Settings > Appearance lists both, beside Retro and Kasumi. Install a theme there copies a folder you pick (by its THEME.CFG) into your own themes. A folder's name may use letters, digits, spaces, - and _. To share a theme, share its folder (a .zip of it is fine; unpack it, then install).

The smallest one

format=1
name=Plum
base=kasumi

[light]
accent=#8E44AD

[dark]
accent=#B07CC6

Everything you don't give comes from the base. Settings shows the theme by its name.

The file

Before any section

KeyValue
formatThe file format's version, 1 today. Leave it out and it's 1. A file with a higher number is read all the same (what this Mizu doesn't know is skipped), and Settings shows "(for a newer Mizu)" after its name.
nameWhat Settings calls it. Without it, the folder's name.
basekasumi or retro: the look that draws it. Required: a file without it isn't offered.

Colours: [light] and [dark]

[light] is used with the light scheme, [dark] with the dark one (the switch in Settings > Appearance). Each line names a role, what the colour is for:

RoleWhat it colours
window.bgA window's contents (the paper)
surface.bgFaces: cards, bars, buttons
text.primary / text.secondaryText; greyed text and faint lines
accentThe accent: chosen things, switches, links
accent.waterThe accent's second, lighter colour (made from it when not given)
accent.textText on the accent (white, or dark on a pale accent, when not given)
title.bg / title.textThe active window's title bar
title.idle.bg / title.idle.textOther windows' title bars
bevel.light / bevel.shadow / bevel.darkRetro's raised and sunken edges
desktop.top / desktop.bottomThe desktop with no wallpaper
border / separator / edgeLines: around things, between them, and the fine light line inside a window's edge
selection.bg / selection.textSelected text and rows
shadow / material.tintA window's shadow; the tint over the blurred wallpaper (Kasumi)
focusThe keyboard's ring
tooltip.bg / tooltip.textTips and balloons
danger / warning / info / question / success / attentionSigns and states: delete and close, warnings, information, questions, done, busy
warning.text / sign.textThe mark on a warning; the mark on the other signs, and badges' numbers
linkLinks in text (the accent when not given)
knobSwitches' and sliders' knobs
progressA bar's fill, such as how full a drive is

A role can also have a colour for a state: .hover (the pointer over it), .pressed, .disabled and .focus, for example accent.hover=#9B59B6. Mizu moves text colours until they're readable on their ground, so a pale text on a pale face still shows.

Shapes: [shape]

KeyRangeKasumiWhat
radius.window0-3210Windows' corners
radius.control0-168Buttons and fields (read, not applied yet)
radius.item0-166Rows and menu items (read, not applied yet)
radius.dock0-3220The dock (read, not applied yet)
material.blur0-9648How blurred the wallpaper is behind bars
material.saturation0-300120Its colour, in percent
material.opacity0-23660The face over it, of 256
motion.enter / motion.exit0-1000170 / 140How long things take to appear and go, in ms
space.scalefive numbers4 8 12 16 24Spacing, smallest first
shadow.active / shadow.idleup to 4 layersThe active window's and the others' shadows: x y blur #colour per layer, layers split by ; (0 1 2 #0000001A; 0 8 24 #00000029)

Sizes: [metrics]

KeyRangeKasumiWhat
topbar.height24-4030The top bar (its islands 6 less)
menu.row18-3220A menu's row
dock.icon32-6440An icon in the dock (scaled when there is no icon of that size)
dock.cell40-8050An icon's place; the dock is 12 taller
dock.pad4-168The dock's ends
dock.magnify32-9664An icon under the pointer
font.size12-1413Text, in pixels
font.heading20-2824Headings

Title bars, borders, the 16-pixel text line and buttons keep their sizes: apps lay out their windows by them. That's why font.size stops at 14.

The shell: [shell]

KeyValues
title.buttonsrings, capsule, classic, minimal
title.sideleft, right: where the buttons sit
title.stylemerged (the title bar is part of the window) or bar
title.aligncenter, left
shell.layoutdock or taskbar
marks.runningdrop, dot, none: the mark under a running program
marks.rippleon, off

font.ui, font.ui.bold, icons, cursors, wallpaper and sounds are read, but not applied yet: a theme can't bring its own font, icons, cursors, wallpaper or sounds today.

When a theme can't be read

If the theme you chose is missing, or its THEME.CFG can't be read or has no base, Mizu starts with Kasumi (or Retro) and a notification says so. Your choice is kept: fix the file, sign out and in, and the theme is back.

A fuller example

format=1
name=Plum Big
base=kasumi

[light]
accent=#8E44AD
accent.hover=#9B59B6
window.bg=#FCFAFD
selection.bg=#E8DAEF

[dark]
accent=#B07CC6

[shape]
radius.window=14
radius.control=10
shadow.active=0 2 4 #00000022; 0 12 32 #00000033

[metrics]
topbar.height=36
dock.icon=48
dock.cell=60
font.size=14

[shell]
title.buttons=capsule
marks.running=dot