TL;DR
- Shopify themes can now build whole pages in plain Liquid, with the new
{% block %}and{% partial %}tags. - Write a block in
blocks/with a{% doc %}contract, a schema and{{ content }}, then compose it from a template. - Pass settings as bare arguments like
tone: 'dark', neverblock.settings.tone. - Use partials to refresh part of a page, and an
AGENTS.mdfile to tell AI agents your theme's rules. - Existing JSON themes keep working, so there's no rush to migrate.
For the last few years, building a Shopify page meant juggling two languages. Page structure lived in JSON templates, the markup lived in Liquid sections, and you cross-referenced both to understand one page. Coding agents struggled with it for the same reason humans did.
That changed in 2026. Shopify added a way to compose a whole page in plain Liquid, out of reusable blocks, and its newest base theme is built entirely that way. I built a small block from scratch on a fresh store to see how it really works. Here is the walkthrough, with code I tested before writing this.
What actually changed
Shopify introduced the new model as a developer preview on July 21, 2026, and it now sits in the main theme architecture docs. It adds two Liquid tags.
-
{% block %}renders a reusable block file fromblocks/directly inside a template, much like{% render %}renders a snippet. -
{% partial %}marks a region of server-rendered HTML that JavaScript can refresh without reloading the page.
Two more pieces come with it. The {% doc %} tag acts as a typed contract that documents what a block accepts, and new Theme Check rules catch mismatches between your calls, your schema and your docs.
Nothing is forced on you. Existing themes keep working with sections, theme settings and JSON templates. This is a new composition model that sits alongside the old one.
The mental model in one line
A template is the page. Blocks are the reusable parts. The template decides which blocks appear, in what order and with which settings.
Shopify's new base theme, the one Canvas starts new themes from, goes even further. Its own rules say block files never call other blocks. Only templates and layouts compose blocks, so changing one card on one page never changes every card on the site. I follow that rule below.
Step 1. Write the block file
I'll build a promo card. It draws a frame in a light or dark tone, and the template fills it with a heading, text and a button. Create blocks/promo-card.liquid.
{% doc %}
Promo card shell. Draws the frame and the tone. The caller composes the
heading, text and button inside the body, so every usage stays editable.
`tone` is a schema setting. Call sites set it with a bare `tone:` argument.
@param {string} [tone] - 'light' or 'dark'. Default: 'light'.
@param {string} [class] - Extra Tailwind utilities for the card.
@param {string} content - The card body, composed by the caller.
@example
{% block 'promo-card', tone: 'dark' %}
{% block 'heading', tag: 'h2', variant: 'xl' %}Free shipping this week{% endblock %}
{% block 'button', url: routes.all_products_collection_url %}Shop now{% endblock %}
{% endblock %}
{% enddoc %}
{%- liquid
assign tone = tone | default: 'light'
if tone == 'dark'
assign tone_class = 'bg-interactive text-interactive-text'
else
assign tone_class = 'bg-surface border border-border'
endif
-%}
<div class="flex flex-col items-start gap-4 p-6 rounded-card {{ tone_class }} {{ class }}">
{{ content }}
</div>
{% schema %}
{
"name": "Promo card",
"settings": [
{
"type": "select",
"id": "tone",
"label": "Tone",
"default": "light",
"options": [
{ "value": "light", "label": "Light" },
{ "value": "dark", "label": "Dark" }
]
}
]
}
{% endschema %}
Three parts do the work.
-
The
{% doc %}contract tells people and agents what the block accepts and shows a working example. Note thatcontentis marked as required, because this card is meant to wrap a body. -
{{ content }}prints whatever the template places between the opening and closing tags. -
The
{% schema %}gives merchants a Tone setting in the editor.
The styling uses Tailwind utilities and the theme's own color tokens, like bg-interactive and border-border, so the card follows the store's palette automatically.
Step 2. Compose it in a template
Now create templates/page.promo.liquid. This template places two promo cards side by side and composes the base theme's heading, text and button blocks inside each one.
{% block 'container', class: 'w-full max-w-page mx-auto px-margin' %}
<div class="py-12 grid gap-6 md:grid-cols-2">
{% block 'promo-card', tone: 'dark' %}
{% block 'heading', tag: 'h2', variant: 'xl' %}Free shipping this week{% endblock %}
{% block 'text' %}On every order, no code needed.{% endblock %}
{% block 'button', url: routes.all_products_collection_url, variant: 'button-secondary' %}Shop now{% endblock %}
{% endblock %}
{% block 'promo-card' %}
{% block 'heading', tag: 'h2', variant: 'xl' %}New arrivals{% endblock %}
{% block 'text' %}Fresh drops every Friday.{% endblock %}
{% block 'button', url: routes.all_products_collection_url %}See what's new{% endblock %}
{% endblock %}
</div>
{% endblock %}
Assign the template to any page in the admin, and you get a dark card and a light card from the same block file.

Read the template top to bottom and you can see the entire page. No JSON file, no hunting through section settings. That is exactly why agents like Sidekick find these themes easier to edit.
Step 3. Arguments versus settings
This is the part that confuses people first.
Anything you pass in a {% block %} call becomes a variable inside the block, the same way {% render %} works. When an argument has the same name as a setting in the block's schema, it sets that setting too. So tone: 'dark' fills the Tone setting for that one card.
Two rules save a lot of debugging.
-
{% doc %}is documentation only. Declaring a parameter there doesn't bind it to anything. If it isn't in the schema, it's just a plain variable. -
Use bare names at the call site. Pass
tone:, notblock.settings.tone. The base theme's own button block notes that the dotted form fails its block settings validation.
Step 4. Refresh part of the page with a partial
Partials replace a lot of the custom JavaScript themes used to need. Wrap any server-rendered region in a named partial.
{% partial 'promo-cards' %}
{% comment %} Your promo card blocks go here. {% endcomment %}
{% endpartial %}
Then fetch and swap it from JavaScript with Shopify's @shopify/partial-rendering package. This is the same pattern the base theme's cart uses.
import { partials } from '@shopify/partial-rendering';
const html = await partials.fetch('promo-cards');
partials.apply(html);
The server renders the HTML, so your Liquid stays the single source of truth. Treat the partial name as a contract. If JavaScript fetches promo-cards, renaming that partial breaks the page.
Step 5. Tell agents your rules with AGENTS.md
Themes built this way can include an AGENTS.md file at the root. It's plain Markdown that tells coding agents and Sidekick how your theme works. Shopify's guidance is to write rules, not tutorials, and to explain why each rule exists.
A short one for a theme like this might say that templates own composition, block files never call other blocks, styling uses Tailwind utilities and theme tokens, and every customer-facing string goes through translations. Themes created with Canvas already ship with the base theme's version, which is worth reading even if you never use Canvas.
What I'd watch for
-
New Tailwind classes need a compile step. In the base theme, shared CSS is compiled from
config/styles.cssinto one generated stylesheet. Its own guide warns that editing code in the classic code editor alone doesn't run that compiler, so a brand new utility class can silently do nothing. Reuse existing utilities, or build through a workflow that compiles. -
Shared CSS can quietly disappear. Since April 2026, Shopify only delivers the
{% stylesheet %}CSS for files rendered on each page. A class defined in one file and used in an unrelated one may not load. -
Keep copy translatable. I used literal text above to keep the example short. In a production theme, put customer-facing strings in locale files and render them with the
tfilter. -
Run Theme Check. The new rules catch syntax errors, oversized files and mismatches between block arguments, schemas and
{% doc %}declarations before a merchant ever sees them. - Don't migrate for the sake of it. Your current JSON-based theme keeps working. Start new builds and new templates with blocks, and move old pages over when you touch them anyway.
The result is a theme that both developers and AI agents can read in one pass. If you want the bigger picture of why this matters, read my predictions for Shopify development in 2027.