Dirtbag uses WordPress global style variations instead of theme-authored CSS files.
| File | Name | Notes |
|---|---|---|
theme.json |
Brutalist / default | Plain default with black truck icon. |
styles/minimalist.json |
Minimalist | Sparse readable defaults. |
styles/newspaper.json |
Newspaper | Black-and-white print feel. |
styles/hi-vis.json |
Hi-vis | Safety yellow and high-contrast accents. |
styles/amber-crt.json |
Amber CRT | Dark background with amber icon treatment. |
styles/terminal.json |
Terminal | Dark background with green icon treatment. |
styles/blueprint.json |
Blueprint | Blueprint palette with intentional amber truck icon. |
The pickup truck icon is a transparent image. Colour changes are controlled by a single global-style custom variable:
{
"settings": {
"custom": {
"dirtbag": {
"truckIconFilter": "none"
}
}
}
}The base theme.json uses that variable in one shared rule. Individual style variations only set the variable value.
This avoids the earlier problem where style-specific CSS could stick in the Site Editor style picker and make icon colours appear random.
When changing a style variation:
- Keep changes in that style’s JSON file.
- Avoid adding style-specific selectors unless
theme.jsoncannot express the change. - Do not add CSS files.
- Run
bin/package-check. - Test switching between all styles in the Site Editor.
Brutalist keeps the editor lean. Style variations unlock more WordPress-native design controls for people who want to tinker without adding a build step or custom CSS files.
Practically, theme.json keeps settings.appearanceTools set to false, while each file in styles/ sets settings.appearanceTools to true.
Switching back to Brutalist hides the extra controls again; it does not necessarily erase saved design changes. If a user adds padding, margins, borders, or other supported block/global style values while a variation is active, WordPress may keep those saved block attributes or user global styles when the user switches back to Brutalist. The controls are hidden, but the saved content/style data can remain until the user resets or removes it.