You can build a complete, publishable WordPress theme using nothing but the block editor and core blocks, thanks to full site editing (FSE). The practical path is a block theme: a small set of HTML template files, a theme.json for design tokens, and everything else assembled visually in the Site Editor from core blocks. This article covers what that actually takes, where the ceiling sits, and how to work within it.
What "only blocks" really means for a theme
A block theme still needs a few files on disk, but no PHP templates are required for layout. The modern approach uses templates/ (full page layouts), parts/ (reusable sections like headers and footers), patterns/ (pre-built block arrangements), and theme.json (global styles and settings). Every visible element—headers, footers, sidebars, post layouts, archive pages—is composed from core blocks inside the Site Editor.
Two things sit outside the pure-visual layer: the style.css header that identifies the theme to WordPress, and usually a minimal functions.php. With a recent WordPress version, PHP can be almost entirely absent because block themes register templates and patterns automatically from folders. The block editor handles layout; the filesystem handles packaging.
That means "a full theme builder using just WordPress blocks" is realistic for content, structure and styling. It stops being purely blocks when you need behavior that no core block exposes—custom post types, complex query filtering, or bespoke interactive components. Those are covered later, along with how far you can bend the native tools first.
The minimum files a block theme needs
A working block theme needs surprisingly little to appear in Appearance → Themes and open in the Site Editor. The essentials:
style.csswith the theme header comment:Theme Name,Version,Requires at least,Requires PHP,Text Domain, andLicense. Without this file, WordPress won't recognize the folder as a theme.templates/index.html, the fallback template every page and post can render through. In practice you'll wantindex.htmlplus more specific templates.theme.json, which carries palette, typography, spacing and per-block settings.
Optional but expected files:
templates/:single.html,page.html,archive.html,search.html,404.html,home.htmlorfront-page.html.parts/:header.html,footer.html, and any reusable sections such assidebar.html.patterns/:.phpfiles containingregister_block_pattern()calls, or.htmlfiles with aPattern Nameheader.functions.php: only if you need enqueueing, theme supports customization, or pattern registration logic.
A screenshot.png (recommended at 1200 × 900 pixels) shows in the theme browser. Without it the theme still installs, but it looks unfinished.
Block templates are saved as block markup. A bare templates/index.html containing a wp:template-part for the header, a wp:post-content block and a footer part is already a valid starting loadout. Everything else—spacing, color, columns—comes from the blocks you drop in.
Setting up theme.json as your design system
theme.json is where the block-only approach finds its discipline. Instead of scattering inline colors and spacing through templates, you define a palette, typography scale, spacing sizes and layout widths once; blocks then offer only those choices. This is the difference between a theme that looks intentional and one that looks like a collection of colored boxes.
The file's top-level structure has a version key (currently version: 3 in recent WordPress releases; older toolchains used 2), a settings object that changes what the editor exposes, and a styles object that applies actual CSS to blocks and global elements. Key settings to spend time on:
color.palette: name your core colors and lock custom colors off with"custom": falseunder the relevant features if you want consistency.typography.fontSizesandfontFamilies: define named size steps (small,medium,large,x-large,xx-large) rather than raw pixels in templates. Font files can be registered withfontFaceentries so they load without manual enqueueing.spacing.spacingSizes: a small set of rem-based steps makes vertical rhythm consistent andblockGappredictable.layout.contentSizeandlayout.wideSize: these control the default content column and the full-width boundary, and they propagate to every group and post-content block.settings.custom: store design decisions in custom CSS variables so patterns can reference them later.
styles mirrors the same tree and accepts per-block entries—styles.blocks["core/paragraph"], for example. Applied carefully, theme.json means the Site Editor's Global Styles panel becomes a legitimate design control panel rather than a risky button that can undo your visual decisions. When a client changes the palette there, patterns and templates update consistently.
Templates, template parts and the Site Editor
The Site Editor is the actual canvas for theme layout. Each file in templates/ becomes a template you can edit visually, with a defined list of blocks suited to that template's context: wp:post-title, wp:post-featured-image, wp:post-content, wp:post-comments, wp:query for lists, and so on.
You edit the file's blocks in the browser, and WordPress saves the updated markup back into the file if it's writable—or stores the change in the database when the theme folder is read-only (common for block themes remote or frozen).
Template parts are the structured answer to headers and footers. A parts/header.html opened in the editor becomes the Site Identity area: site logo, navigation block, maybe a wp:group holding social links. You embed the part into each template with wp:template-part. Swap logic by adding alternative part files—header-large.html, header-small.html—and set which template uses which.
The practical piece beginners miss: template parts are shared. Editing the header edits it everywhere it's embedded. That's the point—consistency by default—but it also means you must intentionally create variants when a specific template needs a different header.
The template hierarchy resolves sensibly: single.html wins for posts, archive.html for category and tag lists, 404.html for missing pages, search.html for results. index.html is the safety net, so build it first and add specificity as you need it.
Query Loop, navigation and other blocks that do heavy lifting
A block theme is only as capable as the core blocks that populate its dynamic pages. The most important are:
The Query Loop (wp:query) is the engine behind blog listings, archive grids and "related posts" sections. Inside it, wp:post-template defines what each item looks like, and inner blocks like wp:post-title, wp:post-tertiary (dates/categories), wp:post-excerpt and wp:post-featured-image fill the card. Query Loop supports filtering by post type, taxonomy terms, author, order and number of items—the essential controls for a blog or portfolio.
The Navigation block builds menus visually, including submenus, buttons and mobile drawer behavior; it replaces the old PHP wp_nav_menu pattern entirely. The Site Logo, Site Title and Site Tagline blocks wire theme parts to the site's actual branding. Post Featured Image, Post Content, Post Comments, and Post Terms cover single-post pages. Group, Columns, Row, Cover and Pattern blocks are layout glue.
Pattern blocks let you insert a saved pattern inside any template, which is how you reuse a call-to-action or author box across many pages without retyping.
Used together, these handle the needs of an editorial site, a journal, a portfolio and a small business site with little to no custom PHP.
Patterns: turning block layouts into reusable theme parts
Patterns are saved block arrangements that appear in the pattern library. In a block theme, you register them from patterns/*.php with metadata like Title, Slug, Categories, Block Types, and content. They're ideal for hero sections, pricing tables, testimonial rows, FAQ accordions and newsletter signups—anything that repeats across pages with minor edits.
Patterns can also be page patterns embedded in templates. Combining a pattern with the template's standard post-content block gives a layout that lands already styled, with the pattern as a section rather than a mandatory block. This is the native way to ship a "starter layout" experience without shipping a page-builder plugin.
Pattern scope matters: register patterns tied to an inserter category and the appropriate block types so they appear in the right places. Because patterns reference theme.json variables, changing the palette later updates every instance—provided users don't override color settings individually.
What core blocks can't do, and how to work around it
Purely-block themes have real limits, and knowing them prevents disappointment later.
Custom post types and taxonomies aren't exposed by the editor alone. You still need register_post_type() and register_taxonomy() in a companion plugin or functions.php. Once registered, they appear in the editor and Query Loop dropdowns, so the visible work stays in blocks.
Complex query filtering (dynamic AJAX, search-as-you-type, faceted filters) exceeds core Query Loop controls. The realistic options use a lightweight plugin that extends the block, or a small functions.php addition via render_block filters. Neither is purely blocks, but both keep the visible layout block-based.
Forms need a form plugin or custom shortcode. Interactive components beyond the built-in Accordion, Tabs (via the Tabs block where available in recent versions) or Details block require CSS or JavaScript. Websites with strict design systems often find the Site Editor's live-preview behavior insufficiently precise for pixel-tight work, needing supplementary CSS in stylesheets referenced from theme.json.
The honest planning rule: map every requirement to a core block first. If two or more requirements can only be met with added code, a block theme is still appropriate, but the "only blocks" promise inverts to "blocks as the visible layer, light PHP behind it."
Testing, accessibility and shipping
Before packaging, test each template in the editor and on the front end with real content, not dummy blocks. Verify that fallback templates render unassigned URLs without an error, that the Query Loop shows the right posts on archives and search, that the template hierarchy resolves to the correct file, and that theme.json rules apply consistently to nested blocks.
Accessibility checks worth doing before you ship: run each block template through keyboard navigation, ensure interactive blocks (navigation, accordion, details) have labels and touch targets that work, and verify color contrast against your theme.json palette rather than trusting visual taste. Screen readers depend on the block markup becoming accessible HTML; when you add custom wrappers or styles, test the result rather than assuming.
Packaging for distribution is standard: README.txt describing the theme, the style.css header, a screenshot, and versioning. If you plan to submit to the WordPress.org theme directory, an automated review checks for required files, theme tags, internationalization (the Text Domain header), and coding standards—block themes still need to pass because the theme checker validates the PHP that remains.
A practical build order
Starting with the end destination avoids the most common rework. A sensible sequence for a block-only theme:
- Scaffold the folder:
style.css,theme.json,templates/index.htmlwith a header/footer part and post-content block. - Lock the design system in
theme.json: palette, typography scale, spacing, layout widths. - Build
parts/header.htmlandparts/footer.htmlin the Site Editor. - Add
templates/home.html—the front door—using a pattern for the hero and a Query Loop for latest posts. - Add
single.html,page.html,archive.html,search.html,404.htmlin order of importance for the site. - Register reusable patterns as the layouts stabilize, not before.
- Audit templates against real content, checking mobile width at
wideSize, menu drawer behavior and fallback rendering.
If nothing renders, check that the template blocks are properly wrapped and that wp:template-part slugs match parts/ filenames—the most common silent failures come from a typo between a slug and a file. If styling ignores theme.json, confirm template files aren't overriding colors with inline block attributes that don't respect presets.
The last step is judgment: decide which template-specific variation you genuinely need versus which consolidated template will do. Every additional template is more to maintain and more places for consistency to break.