xoong
Menu · Theme builder
DocsDesignTheme builder

Theme builder

Start from a design language, change the colours, shape, shadow and type, check the contrast, and download theme.css. It is one file of custom properties: load it after xoong and every component follows.

1. Pick a preset

2. Customise

Colour

Borders, muted text, tints and the inverse colours are derived from these, so they always stay in tune.

Shape and size
Small and large controls scale from this.
Shadow
Type

Font names fall back to system fonts. To use a web font, self-host it and add the @font-face yourself: the theme only names the family.

Calm
NameE-mailRoleActions
Ada Lovelaceada@example.orgadmin
Grace Hoppergrace@example.orgeditor
Edsger Dijkstraedsger@example.orgviewer
As shown in the list.
Use a company address.

adminsuccesswarningerror

Heads up. This is how a notice looks.

Saved

3. Check the contrast

SchemePairRatioNeedsResult

4. Download

Load it after xoong's own styles:

<link rel="stylesheet" href="/@xoong/ui/src/xoong.css">
<link rel="stylesheet" href="/@xoong/controls/controls.css">
<link rel="stylesheet" href="theme.css">

To theme one region only, copy the declarations onto a selector such as .sidebar instead of :root. Derived tokens (focus rings, shadows) are defined in the theme itself, so they follow.