Overview

What the WP Design System is, how it is structured and which decisions every design built with it rests on.

Table of Contents

What the system is

The WP Design System is a set of WordPress block patterns, templates and design tokens, shipped as two WordPress themes and mirrored one to one in a Figma library. It is the starting point for projects with different designs and different clients.

The prepared structure is meant to be adapted, not worked around. Change the look through tokens and styles, and keep the structure: a project that stays close to it keeps receiving updates without conflicts.


Purpose first

Every pattern belongs to exactly one of seven categories, named after what the pattern is for, not after what it looks like: Orientation, Information, Navigation, Marketing, Trust, Action and Media. Choose a pattern by the job the section has to do on the page, then pick the variant that presents it best. The categories and how to decide between them are on the Patterns page.


Two themes: Core and Custom

CoreCustom
Built onWordPress core features onlyEverything in Core, plus custom code
Adds—Sliders, complex headers, linkable tabs, filters, table of contents, timelines, WooCommerce

Custom contains all of Core and extends it. Which theme to install and why: Setup.

A design for a Core project may only use Core patterns. A Custom pattern on a Core site does not exist. The Feature Overview lists which theme ships which pattern. When a Core and a Custom variant fit equally well, prefer the Core one.


Families and variants

The system has two levels.

  • A family is a purpose: Accordions, Page Intro, Testimonials. Each family is one component set in Figma and, for most families, one page in the documentation.
  • A variant answers one situation within that purpose: a factual or a promotional tone, few items or many, an image that leads or one that supports. Each variant is one pattern in WordPress and one variant of the component set in Figma.

The slug is a variant’s name and the key shared by WordPress, Figma and the documentation. facts-grid-static is the name of the pattern file, the value of the layout property in Figma and the name listed on the Facts & Numbers page.

Every Figma component carries the variant’s description in four parts: Use, Not, Source and Content. It says when to use the variant, not what it looks like. Read Use and Not before choosing a variant. A variant whose Not describes your situation is the wrong one, however good it looks.


Static and dynamic

Most variants come in two modes, named by the last part of the slug.

  • Static (-static): the editor writes the content by hand.
  • Dynamic (-dynamic): WordPress fills the content from the database — posts, pages, products, the current page’s title and featured image.

In Figma both modes look the same. Choose the dynamic variant when the content already exists as posts, pages or products and should stay current by itself. Choose the static one for content written for exactly this spot.


Patterns and elements

  • A pattern is a complete section you place on a page. Pattern slugs are plural: facts-grid-static, testimonials-static.
  • An element is a building block repeated inside a pattern: one fact, one testimonial, one teaser. Element slugs are singular: fact-static, testimonial-static.

Never place an element on its own. In Figma, patterns live on the Patterns page and elements on the Elements page.


The Figma library

PageHolds
PatternsOne section per category, named after it, holding the component sets of its families
ElementsThe building blocks the patterns repeat
TemplatesWhole page types: page, single post, archive, search, 404 and the shop pages
Identity & StylesColors, typography, spacing, radius, shadows and icons as variables and documentation frames

Figma variables are named by their slug, grouped by family: Grey/grey-100, Fluid/fluid-2, Font Size/font-size-4, radius-5. Their code syntax is the WordPress custom property, for example var(--wp--preset--color--grey-100). A value in a design that is not bound to a variable does not exist in WordPress.


Changing the look

Reach for the lightest tool that does the job:

  1. A token or a style. Section styles such as is-style-section-2 or is-style-box-1 change appearance when the function stays the same: a different background, padding or radius. In Figma they are not separate assets: a section or box takes the fill, spacing and radius variables of its style. See Foundations.
  2. Another variant of the same family, when the arrangement should change.
  3. A block variation, when a WordPress block has to behave differently. This is developer work in the Custom theme, with nothing to design in Figma.
  4. A new pattern, only when no family serves the purpose. It needs a family, a category, a Figma component and a documentation entry.

Further reading

  • Foundations: the principles behind color, typography, spacing, radius, shadow and section styles
  • Patterns: categories, page structure and choosing between families
  • Anti-patterns: common mistakes and what to do instead
  • All patterns with live previews