Handlr

Customise

App themes โ€” pick, make, share

How every page looks โ€” the shipped themes, previewing one, and the Handlr theme format, so you can make a theme in one CSS file, check it, and share it with the pack.

On this page

An app theme is how every page of Handlr looks. You pick one on Settings โ†’ ๐ŸŽจ Look, and it applies to everyone who opens this box, on every device.

It is not a card theme, the style a share card image is drawn in (Midnight, Gold, Plate, Pixel Pupโ€ฆ). Those are picked on Share and are Python, not CSS. See Making a card theme.

The shipped themes

Theme Look
Original Neon on midnight. Rounded cards and the progress ring on the Dashboard. The default.
Pixel Kennel 8-bit. Square tiles and chunky frames, a monospace face, the Dashboard clock in pixel letters with a pixel pup beside it.
Cosmo Pixel Pup Cozy deep space. Cosmo, a pup in a space helmet, beside the clock; pixel stars; chunky gold buttons. Pixel only in the headings and the clock: menus, forms and settings stay rounded and easy to read. Its fonts ship with Handlr, so nothing is fetched.

Preview before you switch. Every theme on Settings โ†’ Look has a preview link. It draws one page in that theme and saves nothing. Add ?look=<name> to any address to do the same by hand.

The way back

?look=original draws any page in Original, whatever theme is set. If a theme you added ever hides or covers something you need (the emergency key, a button), open /settings?look=original and pick another look.

A theme changes how things look. It does not change what they say. Every theme draws the same words, the same numbers and the same hidden-lock rules. A hidden lock's end time is not on the page at all, so no theme can show it. Colours that mean something keep their meaning in every theme: added time is red, removed time is green, frozen is ice.

The Handlr theme format (v1)

A theme is one .css file. It starts with a header comment, then plain CSS that is loaded after the app's own stylesheet, so everything in it overrides something:

/*! handlr-theme 1
name: bubblegum
label: Bubblegum
blurb: Pastel pink on cream โ€” soft corners, chunky buttons.
swatch: #fff4f8 #ffe3ee #ff4f9a #7a4bd6
pixel-face: no
author: your handle
version: 1.0.0
license: CC0-1.0
*/
:root {
  --bg:#2a1020; --bg2:#33142a; --panel:#3d1833; --panel2:#4a1f3e; --line:#6a2f58;
  --text:#fff0f7; --muted:#e7b9d2; --accent:#ff4f9a; --accent2:#b07cff;
  --r:22px;
}
.card { border-width:2px; }

The header

The first thing in the file must be /*! handlr-theme 1, on a line of its own. Then one key: value per line, and the comment closes with */.

Key Required Rule
name yes The id, and the file is saved as <name>.css. 2โ€“32 characters: lowercase letters, digits, dashes, starting with a letter. Not original or the name of a shipped theme.
label yes What the picker shows. Up to 40 characters.
blurb yes One line under the label. Up to 120.
swatch yes One to six #rrggbb colours, space-separated. The picker's preview strip. Background colours first, accents last, reads best.
pixel-face no yes draws the Dashboard clock and status in Pixel Kennel's 5ร—7 pixel letters. Default no.
author no Up to 60 characters. Shown in the picker. Use a handle, not a legal name.
version no Up to 20. Bump it when you share an update.
license no Up to 40. An SPDX id is clearest (CC0-1.0, CC-BY-4.0, MIT).

Any other key is refused. A file that says handlr-theme 2 is refused by this version of Handlr. The format number changes only when an old Handlr could not read a new file correctly.

What a theme file may not do

These are refused when you add the file, with every reason listed:

What to style

The variables in :root, from the app's own stylesheet:

Variable Paints
--bg, --bg2 The page ground; inputs, code, the deepest wells
--panel, --panel2 Cards; raised things on cards (buttons, active tabs)
--line Borders and separators. Never text
--text, --muted Body text; secondary text and labels
--accent, --accent2 The hot pink and the violet: primary buttons, highlights, the ring
--r Card corner radius
--shadow Card shadow
--ok --bad --warn --ice --cyan Off limits (see above)

The class hooks below are the theme API for format 1. A release may rename anything else, but these stay. A change to one is listed in the changelog:

Hook What
html[data-theme="<name>"] Your theme is on
body, main, footer, h1โ€“h3, a, code, hr The page
.top, .brand, .navg, .navg .menu, .level The header, the menus (a tab bar at the foot of a phone, under 820 px), the XP bar
.card, .hint, .flash (.ok .err .warn), .toast Panels, notes, messages
button, .btn, .primary, .danger, .act Buttons and the Dashboard's big doors
input, select, textarea, label, details > summary Forms
.chip, .badge, .tab, .tbl, .ev Chips, badges, tabs, tables, log rows
.hero The Dashboard clock card, with .status-locked, .status-frozen, .status-done or .status-none on it
.ring-wrap, .kn-pup The progress ring (Original) and the pixel pup (Pixel Kennel). Show one, hide the other
.kn-clock, .status-pill, .remaining, .sub The clock: status line, countdown, "caged โ€ฆ"
.hero .facts, .kn-say Started / ends / base / adjust / frozen, and the lock's note
.kn-card, .kn-days i The stamp card and its days: .d-done (served), .d-today, .d-todo, .d-add (added past the sentence), .d-end (release), .d-fog (hidden lock), .d-pre/.d-post

Original lays the clock out with grid areas (ring, facts, say, cal). Pixel Kennel shows how to re-lay the same markup instead. Start from Pixel Kennel: Settings โ†’ Look โ†’ download gives you its file, and it is the worked example of everything on this page.

Check it

Add it on Settings โ†’ Look. The check runs before anything is saved, and a refusal lists every problem at once. Adding a file with the same name again replaces it, which is how you iterate: edit, add, preview. A box keeps up to 24 added themes; remove one to add another.

From a clone of the repository, the same check runs from the command line:

python -m handlr.themes check my-theme.css

Then look at it properly: the Dashboard with a lock running, frozen, and with no lock; Settings; a phone width (the menus move to a tab bar under 820 px). Pixel Kennel lays out differently under 480 px. Yours probably should too.

Share it

A theme is one file, so sharing it means sending the file:

Look at a screenshot before you post it

A Dashboard screenshot shows your clock, your note, your log. Take theme screenshots on a fresh box, or crop to the parts that show the theme.

Pick a licence so others may remix it (CC0-1.0 asks nothing; CC-BY-4.0 asks for credit), and put it in the header.

Installing someone else's

Settings โ†’ Look โ†’ Add a theme, pick the .css. What the check guarantees: it loads nothing from the internet, contains no script, keeps every meaningful colour, and its text is readable. What it cannot guarantee is that it puts things where you expect, because CSS can move and hide things. That is what preview and ?look=original are for. A theme you added has a remove link. If it was the one in use, the box goes back to Original.


This page also ships inside the app, at /guide โ€” so your own instance always serves the guide for the version you are running, with the internet unplugged. Get Handlr ยท Something wrong here? Tell me.