A boilerplate with a point of view.

Nextpress is a starting point for headless WordPress sites: a block library, a token-driven design system and the plumbing between them.
A narrow window onto a white staircase in a plain white wall
NP–07 · About

Why it exists

Most headless builds start the same way: connect WordPress to a front end, wire up previews, build a header, a footer, a form and a dozen blocks. Nextpress does that work once.

What is left is the part that should differ from site to site: the design, the content model and the blocks a team needs.

Editors should be able to build a good page without being able to build a bad one.

Design principle
A black typewriter with a blank sheet on a white surface
NP–13 · Approach

Design in the system, not the page.

Type, colour and spacing are tokens. Blocks use the tokens and pages use the blocks, so changing a token changes every page that uses it.

  • 5

    Pages on this site, made by one seed script

  • 15

    Content blocks in the default theme

  • 5

    Colour themes any block can take

  • 2

    Typefaces: Archivo and Geist Mono

From brief to launch

The usual shape of a Nextpress build.

  1. Brief

    Agree what the site is for

    Audiences, pages and the content each one needs.

  2. System

    Set the tokens

    Palette, type scale, spacing and motion, defined once in the theme.

    A slender white column tapering into a grey sky
  3. Blocks

    Build the blocks

    A fields file and a component for each section the content model needs.

  4. Content

    Fill the pages

    Editors compose pages in WordPress and preview them on the front end.

    A dense cluster of small green succulents
  5. Launch

    Ship it

    Build, check and deploy the front end; WordPress stays where it is.

A line of walkers on the ridge of an orange sand dune under blue sky

See it in use.

The studies page puts the same blocks through different layouts.