5.1.5
Looks
Pick Groundcrew's preset, heading font, body font and mode, and see how the corners, the glass on photos and the motion work.
You pick the look in one file, src/theme.config.ts. It applies to both content sources. It has four settings:
preset: the colors, the corners, the heading font and which parts are on by default. See Presets.display: the heading font. See Fonts.body: the text font.mode: light, dark or the reader’s own setting. See Mode.
For example:
export const preset: Preset = "landscaping";
export const display: Display | "preset" = "archivo";
export const body: Body = "atkinson";
export const mode: Mode = "system";
pnpm check, pnpm dev and every build stop on an unknown value.
Presets
Each preset fits one of the four sample trades, but any preset works with any content. pnpm sample <trade> sets the preset line to the same trade. See Pick a sample.
| Preset | Colors | Corners | Heading font |
|---|---|---|---|
"construction" |
Safety orange on a near-black band | Square-ish: buttons and chips are not pills | Barlow Condensed, in capitals |
"landscaping" |
Lime on a deep forest band | Soft and round, with pill buttons | Bricolage Grotesque |
"plumbing" (the default) |
Caution yellow on a deep teal band | Rounded, with pill buttons | Schibsted Grotesk |
"cleaning" |
Fresh aqua on a navy band | Soft and round, with pill buttons | Plus Jakarta Sans |
A preset also sets which parts are on when you leave their switches out. See What each preset turns on.
Each preset is a file in src/styles/presets/, with its light and dark colors. Run pnpm test:skins after you change one. It checks each preset’s colors, contrast and files.
Fonts
display sets the headings’ font. "preset", the default, uses the preset’s own. Or pick one of six:
"barlow": Barlow Condensed, in capitals."archivo": Archivo, drawn narrow on its width axis, in capitals. The font is Archivo itself, not a separate condensed family."bigshoulders": Big Shoulders Display, in capitals."schibsted": Schibsted Grotesk."bricolage": Bricolage Grotesque."jakarta": Plus Jakarta Sans.
The first three are narrow faces, and they set headings in capitals.
body sets the text font:
"inter": Inter, the default."atkinson": Atkinson Hyperlegible Next, built for easy reading.
A page loads only the two fonts you pick. The fonts come from pinned Fontsource packages, so no page calls a font service. Each is under the SIL Open Font License 1.1, with its license in its package in node_modules/.
Mode
mode sets what a reader sees before they press the light and dark switch in the header:
"light": the default."dark"."system": the reader’s own device setting.
A small script at the top of the page applies the mode before the page paints, so a dark page never flashes light.
Corners
The preset sets the corners. Panels, cards and the small icon tiles each have their own size, and an inner corner is always the outer corner less the gap between them, so the two edges run parallel. The corners are in each preset’s file and in src/styles/corners.css.
Glass on photos
A label on a photo, such as the hero’s label or a project’s town and year, sits on a glass chip: a dark backing with a blur. The backing alone is dark enough for the white text, on any photo. When a reader’s device asks for less transparency, or the browser has no blur, the chip is solid. The rules are in src/styles/glass.css.
Motion
Motion is light, and only these parts move:
- Sections rise gently into place once, as they scroll into view. The hero never does, because it is the first thing on the page.
- A button’s arrow slides out and back in on hover and focus.
- The before and after slider.
- An FAQ answer fades in when it opens.
When a reader’s device asks for reduced motion, and in print, nothing moves. With no script, nothing is hidden. The rules are in src/styles/motion.css.
Words, favicon and share images
The theme’s own words, such as button labels, empty states and page titles, are in the files in src/strings/. Change a word once, and every page follows.
Replace public/favicon.svg with your own mark.
Every public page gets a share image. Its look is in src/share-card.ts.