Foundations

The principles behind colour, typography, spacing, radius, shadow and section styles. The values and which token belongs where are on the style pages linked from each section.

Table of Contents

The one rule

Every colour, font size, spacing, radius and shadow is a token. In Figma that means a bound variable or text style, in WordPress a preset. A raw hex code, pixel value or unbound style has no counterpart in WordPress: it either renders unstyled or turns into a one-off that no style change will ever reach.

The WordPress default sizes and gradients are switched off. Only the tokens of the design system exist.


Colour

  • Every colour follows the system of the full palette: a colour family and a step from 100 to 900, for example blue-600. This holds even when a project uses only the base palette: a brand colour that is added is placed into the family and step it matches. The palette colour itself is never named primary or brand.
  • No semantic colour tokens, by design. The palette holds only primitives. The role of a colour is assigned by styles instead: the global styles say which colour the text, the buttons, the links and the form fields use, and section and block styles override that for a context, such as a tinted section or a box. A second layer of variables such as primary or brand is therefore deliberately not prepared — the styles already are that layer.
  • Adding a brand colour: add it to the palette under its family and step, then give it its role through a style — in the global styles, for example as the button colour, or in a section or block style.
  • In Figma likewise: the library’s colour variables are the same primitives, and there is no prepared collection of semantic colour variables. A project that needs them — for example to switch a brand colour in one place across its designs — creates a new variable collection whose variables alias the palette variables. They stay a design-side convenience: WordPress does not know them, so every role they express has to exist there as a style too.
  • The step decides the text colour. Steps 100–500 carry black text, steps 600–900 carry white text. Every palette colour is defined in OKLCH with the same lightness per step, which keeps every pairing in the palette at WCAG AA contrast (4.5:1) without checking each one. That guarantee holds only for colours defined the same way: a colour added with its own value, such as a brand colour taken from a style guide as a hex code, is converted to OKLCH with the lightness of its step, or its contrast is checked. Around steps 500 and 600 the margin is small.
  • Focus indicators are never removed or recoloured.

Palettes, colour families, the values and how to add a colour in code: Colors.


Typography

  • The heading level follows the document structure, not the size. Choose the level the outline needs, then adapt the size to the context, never the other way round.
  • One h1 per page, in the intro.
  • In Figma the sizes are text styles: Heading 1–6, Large, Body, Small, Caption, and Topic for the eyebrow.

Sizes and their roles: Fonts & Typography.


Spacing and layout

  • Fixed steps inside components, fluid steps for the layout. Fixed steps keep their size on every screen; fluid steps grow with the viewport.
  • Every section is full width. Its content sits in the centred wide frame or, for running text, in the content column. A left- or right-aligned column aligns to the edge of the wide frame, never to the edge of the screen.
  • The design at 1280px is the base; smaller screens adapt it.

Spacing steps and where each one is used: Spacing. Container widths, columns and breakpoints: Grid & Containers.


Radius

  • Nested radii shrink inwards. A rounded surface inside another rounded surface uses a smaller radius than its container, so the gap between the two curves stays even.

The radius steps and where each one is used: Radius.


Shadow

  • The level follows the meaning, not the look: level 1 for clickable elements, level 2 for fixed elements, level 3 for modal elements. In Figma these are the effect styles Shadow/Level 1 to Shadow/Level 3.

The shadow levels and the z-index layers: Shadows & Elevation.


Section styles

  • The style follows the function. Section and box styles change the appearance while the function stays the same: background, padding and radius come with the style, never set by hand. In Figma, where these styles do not exist as assets, bind fill, padding and radius to the variables of the style instead — never to raw values.
  • A box stands out from its section. It needs a background that differs from the section it sits on.
  • Sections of the same style may follow each other. There is no need to alternate backgrounds down the page.

All section and box styles: Section Styles.