Theming
Tokens, fonts and how a client's theme overrides the framework.
-
Accent
A second, decorative colour: eyebrow marker, ticker dots, .btn--accent. Defaults to the brand. Use it when the signature colour fails contrast as text.
-
Beam
The look of the beam effect ([data-beam]), only if the page uses it. Numbers are unitless. Defaults: brand colour, 0.5, 0.2, 0.7, 0.6, 1, 1400ms. Keep intensity low behind text; made for dark themes. Tune them live on beam.html.
-
Brand gradient
CTA band, team monograms. Defaults to the flat brand colour.
-
Buttons
Button label style and shape (var(--radius-full) for pills).
-
Chart colours (data visualisation)
Charts (.chart, .hero-stat, .waffle, .strip, Sankey, Gantt and treemap) read these tokens from tokens.css:
-
Colour
The palette. Check muted text and brand-as-text against AA (4.5:1).
-
Emphasis
How <em> inside a headline reads: brand-coloured, italic, or both.
-
Eyebrow
The small label above headlines and its leading marker (square, rule, or none).
-
Fonts
Body, code, headings, and numbers/prices/times.
-
Fonts
Fonts are self-hosted woff2 files in the shared library site/assets/fonts/. A theme declares @font-face with url("../assets/fonts/<file>.woff2"); the build copies the file into the client's output. Prefer one variable font over several
-
Headings
Weight, case, letter-spacing and width of every heading-styled element.
-
Hover Craft
The look of the stacking step cards (.cardstack), only if the page uses it. --cardstack-peek: 0 = no pile (the cards cover each other completely). Defaults: 12px, var(--space-6), var(--space-6), 0.92, 1, 14rem.
-
On-brand
Text on brand fills (buttons, badges, CTA band). Must clear 4.5:1 against --color-brand.
-
Photos
Treatment for .media photos, e.g. grayscale(1) contrast(1.1). Opt out per image with .media--natural.
-
Re: Animator
The look of the swapping phrase (.reanimator), only if the page uses it. Defaults: 560ms, cubic-bezier(.2,.8,.2,1), brand colour, page background. Keep the contrast between the last two. Try it on reanimator.html.
-
Rhythm
Vertical breathing room and page width.
-
Searchlight
The look of the searchlight effect ([data-searchlight]), only if the page uses it. Numbers are unitless. Defaults: brand colour, 0.8, 0.8, 0.6, 0.5, 1, 0.62, 0.9, 0.35, 1400ms.
-
Shape
Sharp and industrial, or soft and friendly.
-
Texture
Hero background image/gradient; sticky header and action bar fill.
-
Type sizes
Hero headline and section headline. Use clamp().
-
When a token isn't enough
1. Is it a look every client could want? Add a knob to tokens.css with a neutral default, read it in the component, document it in the table above. 2. Is it a new kind of section? Add a component or a --modifier to components.css under its
-
Worked example
Two sites built from the same components, with empty site.css files: