snizu theme check
The platform's own theme checks, run on this machine with no network. Its verdict is the one an upload gets, and it exits 1 when the theme wouldn't be accepted, for CI.
Node 22+2 min read
Usage
snizu theme check [dir] [--json] [--server [--theme <handle>]]Flags
[dir]pathThe theme's folder, with itstheme.json. The current one by default.--jsonflagOne line of JSON:ok, and the errors, warnings and findings.--serverflagSend the package to be checked as a push would, and keep nothing. It needs a sign-in.--themehandleWith--server, which of your themes to check it as. The folder's linked theme by default.
On this machine
The checks the server runs are compiled to WebAssembly inside the CLI, so the default check needs no sign-in and no network. It reads the theme as a package holds it, without dotfiles, node_modules, snizu.theme.json or the notes (AGENTS.md, README.md, DESIGN.md, CHANGELOG.md, LICENSE), and prints:
- Errors (✗): what stops the theme being accepted, each with its file.
- Findings (✗ or !): the audit of sample pages, each with its rule and the pages it found it on. Speed and page budgets are among them.
- Warnings (!): what would be accepted but should change.
- Script notes: the lines of your scripts reviewers will read, such as each address a script talks to.
Examples
$ snizu theme check
✗ image-alt (index): <img src="https://cdn.example.com/hero.png">
✗ image-dimensions (index): <img src="https://cdn.example.com/hero.png">
✗ The theme wouldn't be accepted: 2 problem(s).
$ echo $?
1A schema mistake names its file and line:
$ snizu theme check
✗ sections/hero.json: is not valid: unknown variant `colour`, expected one of `text`, `textarea`, … at line 109 column 3
✗ The theme wouldn't be accepted: 1 problem(s).So does a template that fails on a sample page, with the section's ID from the page's template, then the file and line. Each broken section is its own finding:
$ snizu theme check
✗ render-failed (index): section hero: unknown filter: filter money_egp is unknown (sections/hero.html:18)
✗ The theme wouldn't be accepted: 1 problem(s).In CI, check every change without a token:
name: Theme
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npx -y snizu@2.0.0 theme checkWas this page helpful?
Updated 25 Nov 2026