Anti-patterns

The mistakes that come up most often when designing with the system, each with what to do instead and why.

Table of Contents

Values

A value that is not a token

  • Scenario: a spacing, colour, size or radius looks slightly off, and a custom value would fit better.
  • Do: pick the nearest token. If no token fits repeatedly, raise it as a change to the system.
  • Don’t: type a hex code, a pixel value or an unbound style.
  • Why: WordPress only knows the tokens. A custom value either renders unstyled or becomes a one-off that no global style change reaches.

A colour outside the colour system

  • Scenario: a project needs a brand colour or another colour the palette does not have.
  • Do: place it into the system of the full palette: the colour family and the step from 100 to 900 it matches, for example blue-600. This applies even when the project otherwise uses only the base palette. Its role as the brand colour comes from a style — a global style such as the button colour, or a section or block style.
  • Don’t: name the palette colour itself primary, brand or accent, or use the hex value directly.
  • Why: the step carries the contrast rule — black text up to 500, white text from 600 — and the names are what the patterns, styles and Figma variables refer to. A colour outside the system breaks both, while the styles already provide the semantic layer.

White text on a light step

  • Scenario: text on a coloured surface.
  • Do: black text on steps 100–500, white text on steps 600–900.
  • Don’t: choose the text colour by eye.
  • Why: the palette is defined in OKLCH with the same lightness per step, so the step boundary guarantees WCAG AA contrast in every colour family. For a colour added with its own value, the guarantee only holds once it has the lightness of its step.

Structure

A second h1

  • Scenario: a section further down the page feels important enough for the largest heading.
  • Do: keep the h1 in the intro and give the section an h2.
  • Don’t: use an h1 outside an intro pattern, or place a second intro.
  • Why: the h1 names the page. Two of them break the outline that screen readers and search engines read.

A heading level chosen for its size

  • Scenario: an h2 looks too big in a compact box, so an h4 is used instead.
  • Do: keep the level the outline needs and reduce the font size.
  • Don’t: pick a level for its look or skip levels.
  • Why: the level is structure, the size is presentation. Mixing them breaks navigation by headings.

Large text after an h2

  • Scenario: the text below a section heading should feel like an introduction.
  • Do: set it in Body.
  • Don’t: use the text style Large (size 4).
  • Why: Large is the lead text after the h1. After an h2 it competes with the intro and flattens the hierarchy.

A column hugging the screen edge

  • Scenario: a left-aligned text column in a full-width section.
  • Do: align it to the left edge of the wide frame (1280px).
  • Don’t: align it to the edge of the section or the screen.
  • Why: every other section aligns to the wide frame. A column at the screen edge falls out of the grid on large screens.

An element on its own

  • Scenario: one fact, one teaser or one testimonial is needed.
  • Do: place the pattern (facts-grid-static, testimonials-static) and reduce it to one item.
  • Don’t: place an element (fact-static, testimonial-static) directly on a page.
  • Why: elements have no section shell: no background, no padding, no heading. They are building blocks for patterns.

Surfaces

A box that disappears

  • Scenario: a box on a section of the same colour.
  • Do: a grey box (grey-100, is-style-box-2) on a white section, a white box (is-style-box-1) on a grey one.
  • Don’t: put a white box on a white section or a grey box on a grey one.
  • Why: the box is defined only by its background. On the same colour it is invisible.

A shadow chosen by its look

  • Scenario: teaser cards should look raised.
  • Do: choose the level by its meaning. A clickable card can carry Shadow/Level 1 (shadow-1 in WordPress); level 2 is for fixed elements, level 3 for modal ones.
  • Don’t: draw a custom shadow, or pick a higher level because it looks stronger.
  • Why: the level tells the reader which layer an element belongs to: clickable, fixed or modal. A shadow outside that scale says nothing.

Choice

A variant whose Not applies

  • Scenario: a variant looks right, but its description says “Not when …” and that is the case.
  • Do: choose another variant or family.
  • Don’t: use it anyway because it looks good.
  • Why: the Not part names the situation in which the variant fails, for example a grid with two pricing plans and nothing to sit between them.

More content than the variant is built for

  • Scenario: a heading of fifteen words in a variant built for seven, or nine teasers in a three-item layout.
  • Do: shorten the content or pick a variant that fits: the Content part names how many items a variant holds, its placeholders how long each text may be.
  • Don’t: stretch the layout.
  • Why: item counts and text lengths state the capacity the layout was designed for. Beyond it lines wrap, columns collapse and rhythm breaks.

A Custom pattern in a Core project

  • Scenario: a slider or a timeline would suit a Core site.
  • Do: use a Core pattern: a grid instead of a slider, a static process instead of a timeline.
  • Don’t: design with a Custom pattern for a Core project.
  • Why: Core has no JavaScript and no custom CSS. The pattern does not exist there.

Hand-built teasers for the page tree

  • Scenario: a section page should link to its subpages.
  • Do: use page-teasers-child-pages-dynamic.
  • Don’t: build the list by hand with page-teasers-static.
  • Why: the dynamic list follows the page tree. A hand-built one goes stale the moment a page is added or moved.

Tabs as navigation

  • Scenario: tabs that lead to different pages.
  • Do: use tabs only to switch between parts of one page. Use teasers or the navigation for other pages.
  • Don’t: link tabs to other URLs.
  • Why: every target page repeats everything above the tabs, including the h1.

Icons

An icon from outside the set

  • Scenario: a design needs an icon the set does not have.
  • Do: add it to the icon set: 24×24, filled shapes only, no strokes, no groups.
  • Don’t: use an icon from another library, the WordPress icons or a stroked outline.
  • Why: only icons from the set reach the theme. Strokes are removed when an icon is registered in WordPress, so an outline icon renders as a solid shape.