Validation
Every rule, its code, and what to do about it. A package fails as a whole; nothing is partially installed.
Every problem is reported at once, each with the file it is in, the line where there is one, and a stable code you can look up here. A validator that stopped at the first problem would turn fixing a package into a conversation, and each round trip costs an upload.
Structure
PKG_TOO_LARGE- The archive is over 20 MB. Remove anything outside the documented layout — node_modules and .git are the usual culprits.
PKG_EXPANDS_TOO_FAR- It decompresses to over 60 MB. Checked from the archive’s index before anything is decompressed, because a zip bomb is small on disk and a check that runs afterwards has already paid for the attack.
PKG_PATH_TRAVERSAL- A path points outside the package. Use plain relative paths; nothing in a theme needs to reach above its own folder.
PKG_UNREADABLE- Not a zip. Zip the CONTENTS of the folder, and make sure it is a .zip rather than a .tar or .rar.
PKG_NO_MANIFEST- No theme.json at the top. Zip the contents of the folder so it sits at the root of the archive.
PKG_NO_COVER- No preview/cover.png. It is the card a customer chooses from.
The manifest
MAN_MISSING_FIELD- A required field is absent.
MAN_BAD_SLUG- Lower-case letters, digits and hyphens only. It is permanent once installed.
MAN_BAD_VERSION- Use semver: MAJOR.MINOR.PATCH.
MAN_VERSION_TAKEN- That version of this slug has already been uploaded. Raise it — two uploads of the same number cannot be told apart later.
Templates
TPL_HELPER- A partial, a custom helper, or one of
with,lookup,log. There is no helper registry. Compute the value before the template sees it. TPL_STYLE_ATTR- The sanitizer strips
style, so this attribute never reaches the page. Put the value on adata-attribute and select it in CSS. TPL_UNESCAPED- Only
{{{slots.name}}}may be unescaped. Everything else is{{value}}.
Styles
CSS_PHYSICAL- A physical direction property. Use the logical one: margin-inline-start, inset-inline-end, text-align: start.
CSS_UPPERCASE- Arabic has no letter case, so this does nothing there. Mark the element
cmp-labeland let the theme’s labelStyle decide. CSS_TRACKING- Tracking that is not routed through the flag. Multiply by
var(--theme-tracking-ok, 1). CSS_IMPORT- A component may not fetch a stylesheet of its own.
Comments are stripped before these rules run, so a comment that explains a rule does not fail for it. You can write "never use margin-left" in your CSS without being refused for it.
Arabic and fonts
AR_MISSING- A visitor-facing string with no Arabic. Add
nameAr,titleAr,labelAr,defaultArorconfigAras appropriate. AR_COPY- The Arabic is identical to the English. Half this platform’s customers read Arabic; an untranslated field is English on their page.
FONT_NO_ARABIC- An Arabic face that cannot draw Arabic. Pick one of the six bundled families.
Composition
CMP_UNKNOWN_KEY- A key that is neither in your package nor in the shared library.
CMP_UNKNOWN_PAGE- A section placed on a page the manifest does not declare. Its blocks would be materialised onto a URL that 404s.
CFG_SHADOWED- A config key your dataMapping fills. Live data wins, so the value is computed and then discarded.
CMP_NO_HEADER / CMP_NO_FOOTER / CMP_TOO_FEW- A site needs a way in, a way out and about six sections. Below that it is a placeholder rather than a portfolio.
Licence
LIC_MISSING / LIC_NO_REDIST- The platform serves your theme to its customers, so it has to know it may. A licence that forbids redistribution cannot be installed, however the package is otherwise.