Skip to main content
Themes are plain maps of bare token names (no --wg- prefix) to CSS values. The base stylesheet defines every token at :root, so widget styles may reference var(--wg-<token>) without a fallback.

Tokens

Dark preset

The dark preset is ordinary theme data — a starting point for custom themes. The names light (the defaults) and dark are reserved for it.

Custom variables

Names match ^x-[a-z0-9][a-z0-9-]*$. A custom variable x-foo becomes —wg-x-foo on the themed scope; reference it from widget styles as var(—wg-x-foo).

Value safety

Token values are plain CSS values. Rejected: ’;’, ’{’, ’}’, ’<’, ’>’, ‘url(’ and ‘expression(’ (case-insensitive, whitespace-tolerant). Keep values to colors, lengths, and font stacks.