Table of Contents
Values
A value that is not a token
- Scenario: a spacing, color, 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 color outside the color system
- Scenario: a project needs a brand color or another color the palette does not have.
- Do: place it into the system of the full palette: the color 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 color comes from a style — a global style such as the button color, or a section or block style. - Don’t: name the palette color itself
primary,brandoraccent, 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 color outside the system breaks both, while the styles already provide the semantic layer.
White text on a light step
- Scenario: text on a colored surface.
- Do: black text on steps 100–500, white text on steps 600–900.
- Don’t: choose the text color 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 color family. For a color 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.
Page content in a template part
- Scenario: a teaser, a CTA or a contact box should appear on many pages, so it goes into the footer or a new template part.
- Do: place it as a pattern on the pages that need it, or as a synced pattern if it must be identical everywhere.
- Don’t: put sections that belong to the page into a template part.
- Why: a template part is the site’s frame. Its content appears on every page of the template, cannot be edited with the page, and does not survive a change of theme.
A synced pattern for a layout
- Scenario: several pages use the same section layout with different texts.
- Do: insert the ordinary pattern on each page and fill it there. If the structure has to stay in step across the pages, use a partially synced pattern and allow overrides for the texts that differ.
- Don’t: make it a fully synced pattern and detach it on every page.
- Why: a fully synced pattern is for identical content. Used for a layout, every edit on one page changes all the others, or it has to be detached and loses its link anyway.
Surfaces
A box that disappears
- Scenario: a box on a section of the same color.
- 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 color 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-1in 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.
Dialogs
A dialog that opens by itself
- Scenario: a newsletter signup or an offer should reach every visitor, after a few seconds or when the pointer leaves the window.
- Do: open it from a button or a link the visitor chooses, for example a menu item that links to the dialog.
- Don’t: open a dialog on a timer, on scrolling or on exit intent.
- Why: it interrupts what the visitor came for, which makes it a dark pattern. The Dialog plugin offers no such trigger on purpose.
A modal for content that can wait
- Scenario: details, a long text or a gallery would make the page long.
- Do: keep it on the page, in an accordion or on a page of its own.
- Don’t: move it into a modal dialog to save space.
- Why: a modal blocks the whole page until it is closed. It is for something the visitor has to finish or cancel, such as a form.
An explanation on hover
- Scenario: a term, a price or a field needs a short explanation.
- Do: place a small button next to it that opens the explanation as a Disclosure on click.
- Don’t: show the explanation only while the pointer rests on it.
- Why: touch screens have no hover, and keyboard users never reach it. A button works for everyone and says that there is more.
A Disclosure for text that always expands
- Scenario: more text should show on request, on every screen size.
- Do: use an accordion, or a Details block for a single item.
- Don’t: use a Disclosure that expands in the flow at every width.
- Why: accordions and Details are built for exactly this and work without JavaScript. A Disclosure in the flow is only the small stage of something that stands in the page or over it on large screens, such as a menu.
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.