5.3.5
Looks
Pick Apogee's type pairing, accent color, home page hero, details, motion and work layouts, or make your own accent.
You pick the look in one file, src/theme.config.ts. It applies to both content sources. It has these settings:
pairing: the type."apogee"(Apogee Grotesk, with Martian Mono for labels and index marks, the default),"schibsted"(Schibsted Grotesk with JetBrains Mono) or"funnel"(Funnel Display headings and Funnel Sans text, with Space Mono).accent: the color of small marks, the main button and the open service number."mono"(ink and paper, no color, the default),"signal"(signal red),"acid"(acid lime) or"ultra"(ultramarine).hero: the top of the home page."wordmark"(your studio’s name in huge type across the full width of a dark photo panel, the default) or"headline"(a large two-tone headline on a light panel, with a photo panel beside it).mode: what a visitor sees before they press the light and dark switch."light"(the default),"dark"or"system"(the visitor’s own device setting).details: four switches, each on by default. See below.motion:"lively"(the default) or"calm". See “Motion.”workLayout: how the work shows. See “Work layouts.”careers: the Careers link in the menu and the footer.true(the default) orfalse.glass: a frosted nav bar.false(the default) ortrue. See “The glass nav.”
For example:
export const pairing: Pairing = "funnel";
export const accent: Accent = "ultra";
export const hero: Hero = "headline";
pnpm check, pnpm dev and every build stop on an unknown value.
The Wordmark hero shows wordmark from content/site.json, or the site’s title when that is empty. The page’s real h1 is the hero block’s heading, as a sentence above it.
The details
details has four switches:
grid: thin rules on the label column and between sections. Off: no rules.index: index marks, such as002 /before section labels and01 /on work, service and process rows. Off: no index marks anywhere.grain: a light film grain over the dark photo panels. Off: clean photos.grayscale: black and white work and journal photos that turn to color on hover. Off: color all the time.
export const details: Record<Detail, boolean> = { grid: true, index: true, grain: false, grayscale: true };
Motion
With "lively", the page has:
- Marquees: the client logo strip, and the work section’s title, which runs across the panel.
- A word fill: the large statements fill in from light to full ink as they scroll through view.
- Fade-ups on large blocks as they come into view.
- Rolling labels on buttons and nav links on hover.
- A smooth change from a work card’s photo to the case study’s hero, where the browser supports it.
- The showreel and video covers playing by themselves, muted.
With "calm", the page keeps still: none of these run. Visitors whose device asks for reduced motion always get calm, whatever you set.
Each page with a marquee has a “Pause motion” button beside the first one. It stops every marquee and every video that plays by itself on the page. The choice lasts for the visit. Marquees also pause while a pointer or the keyboard focus is on them.
All content shows without JavaScript. Without it, nothing fades in, so nothing is hidden.
Work layouts
workLayout has two values: home for the home page’s work section, and index for /work.
home:"grid"(large cards in two columns, the default),"list"(ruled rows, with a photo when you hover a row) or"rail"(a row of cards that scrolls sideways).index:"grid"(the default) or"list".
export const workLayout: { home: WorkLayout; index: IndexWorkLayout } = { home: "rail", index: "list" };
Careers
With careers set to false, the Careers links leave the menu and the footer. /careers still builds. It is a public page, in the sitemap and in search, only while a role is open.
The glass nav
The nav floats over the page. Once the page scrolls, it becomes a pill, or a full-width bar on a phone. With glass set to true, that bar is frosted and see-through: the page’s color, partly clear, with the page under it blurred. --ap-glass-fill in src/styles/apogee.css sets how clear it is.
Visitors whose device asks for reduced transparency, and browsers with no backdrop blur, always get the solid bar.
Light and dark mode
The moon button in the nav switches between light and dark mode. The choice is saved in the visitor’s browser and applies on every page and on the next visit. A small script at the top of the page applies it before the page paints, so a visitor who chose dark never sees a light page first.
In dark mode, the page turns dark, and the contrast panels turn light, so the rhythm of the page holds. The photo panels, such as the hero and the showreel, stay dark in both modes.
Make your own accent
An accent has four values: the main button, the button’s text, marks on a light ground and marks on a dark ground. src/styles/accents/mono.css describes each one.
- Copy a file in
src/styles/accents/, for examplesignal.csstocopper.css. - In the new file, change the id in the selector (
data-accent="copper") and change the four colors. - Add the accent to
src/styles/accents/accents.json: itsid, alabeland the same four values (button,buttonFg,markLightandmarkDark). - Add the id to
ACCENTSinsrc/utils/config.ts, and import the file insrc/styles/global.css, after the other accents. - Run
pnpm test:skins. It checks that each accent inaccents.jsonhas a file and an import, that the values match, and that the colors have enough contrast (WCAG AA) in light and dark mode: the button’s text on the button, and the marks on the page, the panels and the photos.
Words, favicon and share images
The theme’s own words, such as button labels, empty states and page titles, are in src/theme.strings.ts and the files in src/strings/. Change a word once, and every page follows.
public/favicon.svg is a white “A” on a near-black square (#121212). It does not change with the accent. Replace it with your own mark.
Every public page gets a share image. Its bar takes your accent’s mark color. Its font and colors are in src/share-card.ts and src/utils/share-look.ts.