Table of Contents
The one rule
Every color, 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.
Color
- Every color follows the system of the full palette: a color family and a step from 100 to 900, for example
blue-600. This holds even when a project uses only the base palette. The palette color itself is never namedprimaryorbrand. - No semantic color tokens, by design. The palette holds only primitives. The role of a color is assigned by styles instead: the global styles say which color 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
primaryorbrandis therefore deliberately not prepared — the styles already are that layer. - Adapting to a brand: every color family is prepared. For each brand color, set the hue of the family closest to it across all its steps and keep lightness and chroma; then give the color its role through a style. The other families stay and fill the gaps.
- In Figma likewise: the library’s color variables are the same primitives, and there is no prepared collection of semantic color variables. A project that needs them — for example to switch a brand color 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 color. Steps 100–500 carry black text, steps 600–900 carry white text. Every palette color 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 while lightness and chroma stay as they are: a step replaced by an exact brand value has its contrast checked. Around steps 500 and 600 the margin is small.
- Focus indicators are never removed or recolored.
Palettes, color families, the values and how to adapt them to a brand: 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.
Motion
- Motion follows where something comes from. A panel below a header comes from above, a drawer from its edge of the window, a dialog in the center grows from the center, and items appear in reading order.
- Closing is quicker than opening. What comes in slows down, what leaves speeds up.
- Reduced motion keeps every change visible. When a visitor asks their system to reduce motion, nothing moves and the fades remain.
- The focus outline appears at once. It is never animated, and icons swap without turning.
- Motion exists in the code only. The Figma library has no motion variables; the code applies these rules to every pattern.
The custom motion variables and where each one is used: Motion.
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.