Skip to content
GroundworkGroundwork
Esc
↑↓navigate↵open⌘Jpreview
On this page

Themes

Base and five themes, each a small data document solved into light, dark and Darker.

A theme is a small data document: a background, an accent and a style. The style covers shape, density, type, borders and surface accents. Every role is solved to the same contrast targets, so every theme reads the same however it looks.

Apps offer light, dark and follow system, with separate light and dark picks. Each app sets its default theme and opts in to the others.

Darker

The OLED version of every theme’s dark mode, offered for all of them. Every surface drops by 0.045 OKLCH lightness with hues kept, and text and accents stay as they are, so contrast only goes up. Field outlines use the stronger border so they stay visible. The normal dark stays the default.

Names

One word in Title Case, naming the building itself, its materials or its parts, never people or times of day. They follow Groundwork’s name, so if it’s renamed, the themes are renamed with it.

Using a theme

On the web, load themes.css and set the theme and mode on any element:

<body data-gw-theme="glazing" data-gw-mode="dark">

Leave data-gw-mode off to follow the system’s light or dark setting. Darker is opt-in with data-gw-mode="darker".

More

Last updated on