Building a theme
A theme changes how a hub looks and how its member pages are laid out. It is a small package of data and assets, uploaded by a hub admin and checked by the server before anything renders. This page is everything you need to build one that passes. The block and surface reference is its companion, generated from the theme engine.
Theme engine: 1.7.0. Manifest version: "1.0".
Who can upload, and who can use a theme
Section titled “Who can upload, and who can use a theme”- Uploading a theme is part of the Enterprise plan. The upload screen and the upload endpoint both refuse a package from a hub on any other plan.
- Fanzava’s own themes are not available to choose yet. Until they are, a hub that is not on Enterprise keeps the default look and changes it through its brand kit.
- A hub’s own theme stays private to that hub. Nobody else can see it, preview it or apply it.
- If a hub leaves the Enterprise plan, its own theme keeps rendering for 30 days, with a banner in the theme settings and an email naming the date. On that date the hub goes back to Default. The uploaded versions stay stored, so moving back to Enterprise lets the hub apply the theme again.
- Having us build the theme for you is separate professional-services work, quoted per project. Talk to our team.
1. What a theme is
Section titled “1. What a theme is”Three things are yours to control:
| What it does | |
|---|---|
| Tokens | Colours, fonts, corner radii, shadows and spacing |
| Layout | The navigation frame, and how content is composed within a page |
| Assets | Your fonts and images |
Your hub’s brand inputs, the colours and fonts set in Branding, still apply on top of
a theme, value by value. A theme decides how those are arranged and styled; it does not
throw them away, unless you explicitly opt out with respectsBrandInput: false. The exact
rule, token by token, is section 5.5.
A theme contains no JavaScript and no raw CSS. Every value is either an enumerated choice or a token value matched against a grammar. That is what lets an uploaded package be applied to a live hub under a strict Content Security Policy, and it is enforced: a value that could fetch, execute, or escape its own declaration never validates.
Where a theme applies. The web app takes all of it: tokens, fonts, layout and blocks. The Fanzava mobile app takes the theme’s colours only, on the hub’s chrome and screen palette. Radii, fonts and layout on mobile stay on the app’s own scale, so design your palette to read well on both.
2. What you can and cannot change
Section titled “2. What you can and cannot change”Worth reading before you design, so you do not design something the engine cannot express.
You can change:
- All 101 tokens on the public contract (section 5.4), in light and dark mode
- Corner radii (individually, or the whole scale by one factor), shadow depth, the spacing scale, and the page reading measure
- The page canvas: its fill, its gradient stops, and two blurred decorations tinted by the hub’s own brand
- Heading, body, UI, display and mono font families, allowlisted or bundled
- The navigation frame: sidebar, wide header, or a frame you compose from regions
- Content composition along four axes (density, grid, surface and rail), hub-wide or per member surface, on all 17 member surfaces
- Which blocks appear, in what order and at what width, on three surfaces: the dashboard, the leaderboards and the groups page
- The default track count, block rhythm, card padding, rail width and reading measure for every page that does not choose its own (section 6.5)
You cannot change:
- Which pages exist, or what is on the 14 surfaces that do not take a block list
- The order or grouping of navigation items
- Component internals, such as how a leaderboard row is built
- The categorical palettes: chart series colours, medal colours, status chip tones
- Derived values: the focus ring, brand ramps, the gray ramp, readable foregrounds
- The type scale, weight scale, line-height scale and tracking (families only)
- Motion: durations and easings are fixed
- The account and privacy controls on the profile page, which a theme can never remove
- Anything requiring JavaScript, raw CSS, or an external network request
The last group is not an oversight. Every hub runs under a strict CSP and strict tenant isolation, and those hold because themes cannot reach into them.
3. Package structure
Section titled “3. Package structure”A theme is a ZIP archive named *.fztheme:
mytheme.fztheme├── manifest.json required, describes your theme├── tokens/│ ├── light.tokens.json light-mode token values│ └── dark.tokens.json dark-mode overlay, optional but strongly recommended├── fonts/│ └── *.woff2 optional, self-hosted fonts, woff2 only├── assets/│ └── *.svg | *.png | *.webp optional, SVGs are scanned└── preview.png required (or preview.webp), the picker thumbnailEvery file in the package must be declared in manifest.json’s assets[] with its
SHA-256: every file, not only the ones under assets/. That means the token files,
the fonts and the preview too. manifest.json itself is the only exception, because it
is the thing doing the declaring. A file you declare but do not ship is rejected, a file
you ship but do not declare is rejected, and a file whose bytes do not match its digest
is rejected. The packaging tool computes all of this for you (section 8 also shows how to
do it by hand); the rule matters because it is what makes “nothing can be smuggled in”
true rather than aspirational.
The preview may be preview.png or preview.webp. WebP is usually a fraction of the
size at the same quality, and it is what the first-party themes ship.
tokens/light.tokens.json and tokens/dark.tokens.json are an authoring
convenience. Leave them in the archive: the upload endpoint reads them and splices
their contents into visual.tokens and visual.darkTokens before any validation runs,
so the manifest the validator sees carries the token maps inline. (The packaging tool
splices a copy locally too, but only so its local validation run matches the server’s -
what you upload still carries the files.)
If you would rather write the tokens inline in the manifest, that is equally valid. What
you may not do is both. A mode whose tokens arrive from a file and from the
manifest is rejected with token_file_conflict rather than merged, because either merge
would silently discard values you wrote. One mode may come from a file and the other
from the manifest; a single mode must pick one.
Size limits
Section titled “Size limits”Every one of these is enforced by the upload endpoint.
| Limit | Maximum |
|---|---|
| Whole package | 5 MB |
manifest.json |
256 KB |
| Any token file | 256 KB |
| Any single asset | 2 MB |
| All fonts combined | 1.5 MB |
| Files in the archive | 50 |
| Declared assets | 50 |
| Longest image edge | 4096 px |
The package budget is checked against the archive’s own directory before anything is
unpacked, so a small archive that claims to expand to gigabytes is refused at no cost.
That also means a lying header is a rejection: a file that does not unpack to exactly the
size the archive declares for it fails with package_unreadable.
Optimise images to WebP and subset your fonts regardless: themes load on first paint, so weight matters to every tipper on the hub.
4. manifest.json
Section titled “4. manifest.json”{ "manifestVersion": "1.0", // required, must be exactly "1.0" "id": "acmecorp.aurora", // required, "yourns.themename", lowercase "name": "Aurora", // required, up to 64 characters, shown in the picker "version": "1.0.0", // required, strict semver "description": "Cool, calm, high contrast.", // optional, up to 280 characters
"author": { "name": "Acme Corp Design", // required, up to 120 characters "url": "https://acme.example", // optional, HTTPS only, up to 512 characters "hubId": "..." // optional, filled in by the upload screen },
"compatibility": { "engine": "^1.0.0" // required, semver range (see section 4.2) },
"visual": { // required (may be an empty object) "tokens": { // optional, public token name to value "--color-bg": "oklch(0.99 0.005 250)", "--radius-md": "0.75rem" }, "darkTokens": { // optional, overlays `tokens` in dark mode "--color-bg": "oklch(0.18 0.02 256)" }, "fonts": { // optional "heading": "Space Grotesk", "body": "Inter" }, "respectsBrandInput": true // optional, defaults to true },
"structural": { // required "chassis": "header", // required: "sidebar" | "header" | "custom" "layout": { // optional, every member independently optional "density": "comfortable", // "compact" | "comfortable" | "spacious" "grid": "asymmetric", // "even" | "asymmetric" | "single" "surface": "raised", // "flat" | "raised" | "glass" | "sheet" "rail": "end", // "none" | "start" | "end" "fullBleed": "route", // "route" | "chassis", see section 6.3 "defaults": { // optional, see section 6.5 "columns": "auto", // "auto" | 1 to 8 "gap": "md", // "none" | "xs" | "sm" | "md" | "lg" "pad": "lg", // "none" | "sm" | "md" | "lg" "railWidth": "third", // see section 6.5 for the full ladder "measure": "wide" // "narrow" | "default" | "wide" | "full" } } },
"assets": [ // optional, defaults to [], max 50 entries { "path": "tokens/light.tokens.json", "sha256": "…64 lowercase hex characters…" }, { "path": "fonts/space-grotesk-700.woff2", "sha256": "…", "licence": "OFL-1.1" }, { "path": "preview.webp", "sha256": "…" } ]}4.1 id and the reserved namespace
Section titled “4.1 id and the reserved namespace”id must match ^[a-z0-9]+\.[a-z0-9-]+$, be 3 to 64 characters, and use your own
namespace. The fanzava.* namespace is reserved for Fanzava’s own themes and is rejected
with reserved_namespace on any upload. Once a hub has uploaded a theme id, that id stays
reserved to that hub, even after every version of it is deleted.
4.2 version and compatibility.engine
Section titled “4.2 version and compatibility.engine”They are different things, and keeping both accurate is what stops an engine upgrade breaking your theme.
versionis your theme’s own semver:MAJOR.MINOR.PATCH, with an optional prerelease or build suffix. Bump it on every change.compatibility.engineis the range of engine versions your theme targets. The running engine is 1.7.0, and every 1.x release so far has been additive, so^1.0.0admits it.
Supported range forms:
| Form | Example | Means |
|---|---|---|
| Caret | ^1.0.0, ^1.2 |
Up to the next left-most non-zero |
| Tilde | ~1.2.0 |
Patch-level changes only |
| Comparators | >=1.0.0 <2.0.0 |
Explicit bounds, AND-ed |
| Exact / partial / wild | 1.0.0, 1.2, 1.x |
Pinned or wildcarded |
| Alternation | ^1.0.0 || ^2.0.0 |
Either range |
| Any | *, x |
Any engine |
Not supported: hyphen ranges (1.0.0 - 2.0.0) and prerelease tags. Write
>=1.0.0 <=2.0.0 instead. An unrecognised range is a failure, never a pass: a parser
that guessed would let a theme built for a later engine render almost right on this one,
which is exactly what this field exists to prevent.
4.3 structural.chassis
Section titled “4.3 structural.chassis”"sidebar", "header" or "custom". The first two are ready-made frames. "custom"
means you compose the frame yourself in structural.template (section 6.2), and the two
are required together.
4.4 assets
Section titled “4.4 assets”Each entry needs a package-relative path and a lowercase hex sha256. Paths must not
be absolute, must not begin with a drive letter, must use forward slashes, and must not
contain ... Duplicate paths are rejected.
An entry may also carry a licence: an SPDX identifier (OFL-1.1, Apache-2.0) or
proprietary, with no spaces. It is required on every fonts/*.woff2 (section 7.2).
fztheme pack recomputes path and sha256 but keeps the licence you wrote for a
path, because only you know it.
5. Tokens
Section titled “5. Tokens”Tokens are the styling surface. Their keys are the real CSS custom property names,
-- prefix included. You may only set tokens on the public contract, and each has
a required value grammar. Anything else is rejected at validation with the exact token
named.
5.1 Value grammars
Section titled “5.1 Value grammars”| Grammar | Accepts | Examples |
|---|---|---|
color |
hex, rgb(), rgba(), hsl()/hsla(), oklch() |
#0A1628, oklch(0.21 0.04 256), rgba(10,22,40,0.6) |
length |
a number with a unit, 0, none, or a calc() over the same |
0.75rem, 12px, calc(100% - 2rem), none |
shadow |
one or more comma-separated box-shadow layers, or none |
0 1px 2px oklch(0 0 0 / 0.12) |
font-name |
a single family name, up to 64 characters, not a stack | Inter, Space Grotesk |
number |
a unitless number | 1.5 |
tint |
one of brand, accent, none |
accent |
Length units: px, rem, em, %, vh, vw, vmin, vmax, ch, pt.
Fanzava authors its own sheets in OKLCH for perceptual uniformity, so OKLCH is preferred. Every other opaque form is accepted and measured identically.
Alpha is accepted on eight tokens and refused on every other colour. The eight are
the ones whose whole job is to composite over what is behind them: the status washes
--color-success-bg, --color-warning-bg, --color-error-bg, --color-info-bg and
--color-live-bg, and the three hairlines --color-border, --color-border-strong and
--color-border-subtle. Fanzava authors all eight as rgba() itself, so a theme that
could not express alpha there could not restate the engine’s own values.
Everywhere else a colour must be opaque, and the reason is not taste. Contrast against a
translucent colour depends on whatever is composited behind it, which a token cannot
name, so the engine reports it as unmeasurable, and every readability guard returns
your value unchanged rather than correcting it. A translucent --color-accent therefore
does not render faintly: it switches off the guard that keeps the keyboard-focus ring
visible, and the focus ring disappears with nothing reporting why. The status fills are
the same: --ps-success-ink is mixed 42% from --color-success toward black, so a
translucent fill turns that ink into 58%-opaque black and switches off every contrast
guard that reads it. The field outline --color-border-control is opaque for the same
reason: it is the one line read as a control boundary, so it must reach 3:1 against the
surface behind it (WCAG 1.4.11). Upload rejects those
with opaque_token_required (section 8.2), naming the token and the -bg sibling to set
instead if a tint is what you wanted.
A theme already in the registry is never re-judged by this rule; it applies when a package is uploaded, not when a hub selects a theme. The engine flattens the alpha at render time regardless, so an older theme keeps working; the accessibility stage then measures the flattened value and will tell you if the result is unreadable.
number has three tokens: --brand-radius-multiplier and the two canvas decoration
opacities (section 5.4).
tint is the one grammar whose value is not CSS. It names a brand token for the
engine to resolve, and it exists because both of the things you would otherwise reach
for are wrong. A literal colour hard-locks a decoration to your palette, so it stops
following the hub’s brand, the thing a white-label theme exists to preserve. And
var(--brand-accent) is refused by every grammar (section 5.2). Naming the source instead
lets the engine write the reference for you: brand is the hub’s brand primary,
accent is its accent, and none turns the slot off.
5.2 What no token value may contain
Section titled “5.2 What no token value may contain”These constructs are rejected in every grammar, whatever the token:
url() · image-set() · expression() · javascript: · @import · var() ·
env() · attr() · ; · { · } · HTML tags · /* comments
Values are also capped at 200 characters.
The first five are the CSP boundary: they would fetch, execute, or pull in a remote
sheet. ;, { and } would let a value escape its own declaration and inject
arbitrary rules.
var(), env() and attr() are banned for a different reason, and it is the
contract rather than the CSP: a token contract that says only these names are
settable means nothing if a settable token can point at an unsettable one.
--shadow-sm: 0 1px 2px var(--color-ring) passes the shadow grammar on shape alone and
reintroduces exactly the indirection the colour grammar already rejects by name.
Write literal values.
5.3 Light and dark
Section titled “5.3 Light and dark”darkTokens overlays tokens; it does not replace it. A theme that only needs a
different background in dark mode says so once:
"tokens": { "--color-bg": "#FFFFFF", "--color-fg": "#0A1628", "--radius-md": "0.75rem" },"darkTokens": { "--color-bg": "#0A1628", "--color-fg": "#F5F7FA" }In dark mode that resolves to the dark background and foreground, and the same
--radius-md.
Users toggle dark mode independently of your theme. A theme with no darkTokens keeps
its base tokens active in dark mode, so your light colours carry over unchanged. On the
member shell that can leave light ink on the engine’s dark canvas (section 8.3), which is
unreadable and can fail the contrast check. Add explicit darkTokens for every colour
that needs to change.
5.4 The public contract: all 101 tokens
Section titled “5.4 The public contract: all 101 tokens”Unset tokens inherit from the engine default and from the hub’s brand input. You do not need to set them all.
The Brand input column names the hub setting that outranks the token when
respectsBrandInput is true (section 5.5).
Surfaces: color (7)
Section titled “Surfaces: color (7)”| Token | Brand input |
|---|---|
--color-bg |
background |
--color-bg-muted |
- |
--color-bg-subtle |
- |
--color-surface |
surface |
--color-surface-raised |
- |
--color-surface-sunken |
- |
--color-muted |
- |
--color-surface-raised is also the popover and menu background. --color-popover is
a pure alias of it and is therefore not settable. Set the raised surface instead.
Foregrounds: color (5)
Section titled “Foregrounds: color (5)”| Token | Brand input |
|---|---|
--color-fg |
text |
--color-fg-muted |
secondary text |
--color-fg-subtle |
- |
--color-surface-fg |
- |
--color-muted-fg |
- |
--color-surface-fg is also the popover foreground.
Brand: color (9)
Section titled “Brand: color (9)”| Token | Brand input |
|---|---|
--color-primary |
primary |
--color-primary-fg |
primary |
--color-primary-hover |
primary |
--color-primary-active |
primary |
--color-secondary |
secondary |
--color-secondary-fg |
secondary |
--color-secondary-hover |
secondary |
--color-accent |
accent |
--color-accent-fg |
accent |
Status: color (21)
Section titled “Status: color (21)”| Token | Brand input |
|---|---|
--color-success |
success |
--color-success-bg |
- |
--color-success-fg |
- |
--color-success-text |
- |
--color-warning |
warning |
--color-warning-bg |
- |
--color-warning-fg |
- |
--color-warning-text |
- |
--color-error |
error |
--color-error-bg |
- |
--color-error-fg |
- |
--color-error-text |
- |
--color-info |
info |
--color-info-bg |
- |
--color-info-fg |
- |
--color-info-text |
- |
--color-destructive |
- |
--color-destructive-fg |
- |
--color-destructive-hover |
- |
--color-live |
- |
--color-live-bg |
- |
Lines: color (4)
Section titled “Lines: color (4)”--color-border (brand input: border) · --color-border-strong · --color-border-subtle ·
--color-border-control
--color-border-control is the outline every text field, select and date field draws. It
is the one line that must be opaque: it tells someone a box is a field, so it has to reach
3:1 against the surface (WCAG 1.4.11), which a translucent value cannot promise.
Radii: 15 × length, 1 × number (16)
Section titled “Radii: 15 × length, 1 × number (16)”Start here: --brand-radius-multiplier (number, default 1). One factor that
moves the scale at once: the engine writes each step as
calc(<px> * var(--brand-radius-multiplier, 1)), so 1.5 gives you uniformly rounder
corners without restating a single length. Reach for this before setting individual
steps.
It moves twelve steps: --radius-xs · --radius-sm · --radius-input ·
--radius-md · --radius-lg · --radius-xl · --radius-2xl · --radius-card-lg ·
--radius-row · --radius-btn · --radius-card · --radius-modal.
It does not move the three that are pinned to shapes rather than sizes:
--radius-none (0), and --radius-full and --radius-pill (both 9999px). A pill
scaled by 1.5 is still a pill.
The individual steps, all length:
--radius-none · --radius-xs · --radius-sm · --radius-input · --radius-md ·
--radius-lg · --radius-xl · --radius-2xl · --radius-full · --radius-card ·
--radius-card-lg · --radius-modal · --radius-pill · --radius-btn ·
--radius-row
The three that carry a relationship. --radius-card, --radius-row and
--radius-pill are the card, the row nested inside it, and the pill inside that. Real
brands do not hold one ratio between them (12/9/6 and 28/18/999 are both plausible
houses), so the multiplier alone provably cannot express an arbitrary set of three.
Setting the three lengths can.
Setting a step pins it. A length is an absolute value, so it stops responding to
the multiplier. That is the design: the multiplier composes, an absolute step opts that
one token out of it, and the two together are how a theme says “rounder overall, except
these three, which have to sit exactly here”. Set only what the relationship needs and
leave the rest composing. None of the radii are contested by brand input, so whichever
you set always applies.
Spacing: length (13)
Section titled “Spacing: length (13)”--sp-0 · --sp-1 · --sp-2 · --sp-3 · --sp-4 · --sp-5 · --sp-6 · --sp-8 ·
--sp-10 · --sp-12 · --sp-16 · --sp-20 · --sp-24
There is a second internal --space-* scale in the style sheets. It is not public -
two names for one step would drift.
Shadows: shadow (5)
Section titled “Shadows: shadow (5)”| Token | Brand input |
|---|---|
--shadow-xs |
- |
--shadow-sm |
shadow sm |
--shadow-md |
shadow md |
--shadow-lg |
shadow lg |
--shadow-xl |
shadow xl |
Type families: font-name (5)
Section titled “Type families: font-name (5)”| Token | Drives | Brand input |
|---|---|---|
--font-body |
body copy | body font |
--font-ui |
UI chrome | body font |
--font-heading |
headings | heading font |
--font-display |
display / hero type | heading font |
--font-mono |
numerals, codes, tabular | - |
Every family named here goes through the same allowlist-or-bundled check as
visual.fonts (section 7). visual.fonts is the dedicated declaration and outranks the
equivalent token.
--font-wordmark and --font-a11y are deliberately not public: the wordmark face
is letters-only and renders digits as tofu, and the accessibility face is reserved for
the reader preference.
Page-shell layout: length (1)
Section titled “Page-shell layout: length (1)”| Token | What it does |
|---|---|
--ps-measure |
Max reading width of a text column. none opts out of a measure. |
The remaining --ps-* tokens (gaps, padding, rail widths, the chrome ramp) are the
resolved output of the density and rail axes. You move them by choosing an axis
(section 6.2), not by setting them.
To change the page shell’s card radius, set --radius-card (in the radius group
above), not --ps-radius-card. The --ps-* one is declared on the page-shell classes
themselves, so a value you set on the root is shadowed by the element’s own declaration
and does nothing, so it is not public. --radius-row and --ps-radius-row are
the same pair for the inner-row step.
Background: 3 × color, 8 × length, 2 × number, 2 × tint (15)
Section titled “Background: 3 × color, 8 × length, 2 × number, 2 × tint (15)”The page canvas itself: the ground your cards sit on, and two optional decorations painted between that ground and the content.
| Token | Grammar | What it does |
|---|---|---|
--ps-canvas |
color |
The member page’s canvas fill |
--ps-canvas-gradient-from |
color |
Start stop of the page hero’s vertical gradient |
--ps-canvas-gradient-to |
color |
End stop of the same gradient |
Set these per mode. They are separate from --color-bg on purpose: --color-bg is
the app-wide background token, and the member page shell keeps its own canvas so light
and dark can carry different ramps. Setting --color-bg alone moves the light canvas
and leaves the dark one on the engine’s. Put a canvas value in darkTokens too (section 5.3).
The two decoration slots
Section titled “The two decoration slots”Two, and two is the whole set: there is no third and no way to add one. Each is a
blurred circle centred on (x, y), tinted by a brand token:
| Slot 1 | Slot 2 | Grammar | Default | What it does |
|---|---|---|---|---|
--ps-bg-decor-1-x |
--ps-bg-decor-2-x |
length |
0 |
Centre, from the inline start of the page |
--ps-bg-decor-1-y |
--ps-bg-decor-2-y |
length |
0 |
Centre, from the top of the page |
--ps-bg-decor-1-size |
--ps-bg-decor-2-size |
length |
0 |
Diameter. 0 is how a slot stays off |
--ps-bg-decor-1-blur |
--ps-bg-decor-2-blur |
length |
0 |
Blur radius |
--ps-bg-decor-1-opacity |
--ps-bg-decor-2-opacity |
number |
0 |
0–1 |
--ps-bg-decor-1-tint |
--ps-bg-decor-2-tint |
tint |
none |
brand, accent or none |
A slot with a size of 0 paints nothing, so a theme that sets none of these costs
nothing.
Positions are measured to the centre of the circle, which is why there is no
negative length: x: 0 already means “half off the inline-start edge”, which is how a
decoration bleeds off the canvas. The page clips horizontal overflow, so a slot placed
past the far edge cannot push the page sideways.
The tint is a source, not a colour. You name brand or accent and the engine
resolves it against the hub’s palette, so the decoration recolours per hub exactly
like every other brand surface. There is deliberately no way to give a decoration a
fixed colour: that would put your palette on a tipper’s screen instead of theirs.
--ps-bg-decor-1-color and --ps-bg-decor-2-color exist in the engine and are not
settable: they are what the engine writes from your tint.
5.5 How brand input and your tokens interact
Section titled “5.5 How brand input and your tokens interact”Precedence, lowest to highest:
engine defaults → fanzava.default → hub brand input → your tokens (if prescriptive)It is a cascade, resolved per value, not per layer. Read the table above one row at a time:
- A token with no brand input listed is uncontested: it always applies. That is
every radius, every spacing step, every surface and status background,
--font-mono, the reading measure and all twelve decoration fields. This is the “a theme styles the frame” half of the rule. - A token with a brand input applies unless the hub actually supplied its own value for that input. A hub that never set a secondary colour gets yours; a hub that did keeps its own.
- The canvas is contested.
--ps-canvasand--ps-canvas-gradient-toboth lose to a hub that set its own background, exactly as--color-bgdoes, because they are the same colour on the same surface, reached by a different name. The gradient’s start stop is not contested, because no hub setting reaches it. - Setting
respectsBrandInput: falsemakes your tokens win everywhere. Your theme becomes prescriptive about colour and type, which limits who will adopt it. Recommendtrueunless the theme genuinely is a fixed palette.
respectsBrandInput defaults to true.
5.6 Readability is guarded, and the guard is reported
Section titled “5.6 Readability is guarded, and the guard is reported”You do not have to hand-tune every text-on-colour pair. The engine computes a readable foreground for the primary, secondary and accent surfaces, and nudges colliding inks.
But design to the contrast bar yourself as well. The guard protects against
invisible text; it does not make a poor palette look good, and when it fires the
colour you asked for is not the colour that renders. That is invisible from the page
(the theme looks almost right), so validation reports it explicitly as a
token_overridden_for_contrast warning naming the token, the value you authored, and
the value that actually rendered.
The measured pairs and their thresholds are in section 8.3.
5.7 Example tokens/light.tokens.json
Section titled “5.7 Example tokens/light.tokens.json”{ "--color-bg": "oklch(0.99 0.005 250)", "--color-surface": "#FFFFFF", "--color-surface-raised": "#FFFFFF", "--color-fg": "#0A1628", "--color-fg-muted": "#4A5366", "--color-surface-fg": "#0A1628", "--color-primary": "#0A1628", "--color-primary-fg": "#FFFFFF", "--color-accent": "#4ECBFF", "--color-accent-fg": "#04202E", "--color-border": "oklch(0.92 0.01 250)", "--brand-radius-multiplier": "1.4", "--radius-card": "1.25rem", "--radius-btn": "0.75rem", "--shadow-sm": "0 1px 2px oklch(0 0 0 / 0.10)", "--font-heading": "Space Grotesk", "--font-body": "Inter", "--ps-measure": "72ch", "--radius-row": "0.85rem", "--ps-canvas": "#F2F5FA", "--ps-bg-decor-1-x": "12%", "--ps-bg-decor-1-y": "0", "--ps-bg-decor-1-size": "760px", "--ps-bg-decor-1-blur": "140px", "--ps-bg-decor-1-opacity": "0.55", "--ps-bg-decor-1-tint": "brand"}6. Layout
Section titled “6. Layout”Layout has two parts: the chassis, the navigation frame around every page, and the
four composition axes, which control how content is arranged inside a page.
structural.layout also carries two things that are not axes: fullBleed (section 6.3),
a chassis-scoped setting, and defaults (section 6.5), which supplies values individual pages
did not.
6.1 Chassis
Section titled “6.1 Chassis”| Value | What it is |
|---|---|
sidebar |
The engine default. A left navigation column |
header |
A wide top navigation bar, freeing the full viewport width |
6.2 Composition axes
Section titled “6.2 Composition axes”Four axes, each with fixed values, applied hub-wide. Each is independently optional and falls back to the engine default. From engine 1.2.0 the same four can be set per surface as well; see the extension note at the end of this section.
| Axis | Values | Default | Effect |
|---|---|---|---|
density |
compact, comfortable, spacious |
comfortable |
Spacing rhythm: resolves every gap and padding step to a length |
grid |
even, asymmetric, single |
even |
How tiled content is arranged. even is N equal tracks, asymmetric is variable-size tiles placed by span, single is a dense single column |
surface |
flat, raised, glass, sheet |
glass |
Card treatment: borders only, elevated with shadow, translucent, or a blurred sheet, see below |
rail |
none, start, end |
end |
Which side a secondary column sits on, for pages that have one |
rail: none stacks, it does not remove. Secondary content flows below the primary
column instead of beside it. No page loses content because a theme chose none.
start and end follow the reading direction, not left and right. Under
dir="rtl" the grid track order already follows the writing mode, so end renders on
the visual left with no second rule. left and right are accepted as aliases and
normalised to start and end at validation time, but they do not flip. Write
start / end.
Why a bounded vocabulary. Every value above is designed, built and tested across every page and every breakpoint, and the same is true of the regions and blocks the 1.2.0 extension adds. That is what makes your theme work on pages you have never seen - including pages that ship after your theme does, and what stops a layout choice breaking a hub’s app or its accessibility.
The trade is that you compose from a vocabulary rather than writing arbitrary structure: no CSS, no markup, no code. What you gain for it is that we can change how a page is built without breaking your theme, because your theme never named our internals.
If you need something the vocabulary cannot express, tell us. Extending it is a normal engine change. Working around it is not possible by design.
This vocabulary is extended from theme engine 1.2.0. The axes above remain the quick path and a theme written against them keeps working unchanged; the extension is purely additive. What 1.2.0 adds:
-
A chassis you compose.
chassis: "custom"plus astructural.template: a tree of regions with exactly onepageOutlet, so you assemble the frame rather than picking from two. The two are required together: acustomchassis with no template, or a template besidesidebar/header, is rejected rather than ignored. The region vocabulary is closed. Containers arestack(vertical) andcolumns(horizontal), each holding 1 to 12 children.navtakes avariantofsidebar,railorheader.banners,pageOutletandfooterhold nothing.nav,bannersandfootermay appear at most once, a template holds at most 40 regions, and containers nest at most 6 deep."structural": {"chassis": "custom","template": {"root": {"type": "columns","children": [{ "type": "nav", "variant": "rail" },{ "type": "stack", "children": [{ "type": "banners" }, { "type": "pageOutlet" }, { "type": "footer" }] }]}}} -
Per-surface layout.
structural.layout.surfaceskeys the axes above by member surface, so the dashboard and the leaderboard need not share a density or a grid. A surface you do not name inherits. -
Blocks. Under a surface’s
blocks, choose which blocks appear, in what order, at what width.
The surfaces, the blocks and their settings are listed in the block and surface reference, which is generated from the engine rather than written, so it describes the build it came from.
The fastest way to use any of it, if you have the packaging tool (section 8):
fztheme schema --out manifest.schema.json, then add "$schema": "./manifest.schema.json" to the top of your manifest. Your editor
will autocomplete every token, axis, surface and block, and fztheme pack ignores the
schema file so it stays out of your package.
6.3 fullBleed: who owns the page gutters
Section titled “6.3 fullBleed: who owns the page gutters”fullBleed sits inside structural.layout but it is not a fifth composition
axis. The four axes describe how content is arranged inside a page; this one
answers a different question: whether the chassis or the route decides which
surfaces run edge to edge.
| Value | Meaning |
|---|---|
route |
The default. The engine decides per page: hero-led surfaces run edge to edge, card-based index pages keep their gutters |
chassis |
Your chassis lays out full-bleed surfaces itself, so it receives a gutter-less main column on every member page and supplies its own spacing |
Leave this unset unless you are shipping a chassis that supplies its own
gutters. Neither sidebar nor header does; both defer to the route, which is
what the default describes. Setting chassis against one of them removes the
gutters from every card-based page (the competitions index, the groups index, the
achievements board) and puts nothing back, so content runs into the frame edge.
There is no per-page form of this setting today: a theme currently has no vocabulary for routes. That is a property of the present vocabulary rather than a permanent rule: section 6.2’s extension note is where per-surface addressing arrives.
6.4 Pairing advice
Section titled “6.4 Pairing advice”grid: asymmetricworks best withchassis: header. An asymmetric grid inside a sidebar layout is cramped, because the sidebar takes the width the variable tiles need.density: compactwithgrid: singlesuits large hubs with heavy leaderboards, where information density beats whitespace.surface: glassneeds real contrast between--color-bgand--color-surface, or cards disappear. Check it in both modes.surface: sheetis the heaviest tier and it is a panel, not a tile: it blurs what is behind it, carries a lift-weight shadow, sits at a wider radius than a card and takes a deeper inset. It reads as one sheet floating over the canvas, so it works when the page is a few large regions and turns to mush when it is a dozen small ones. It needs something behind it worth blurring (a tinted canvas or a decoration from section 5.4 Background), or it renders as an ordinary translucent card at extra cost.railonly affects pages that have secondary content. Elsewhere it is ignored rather than leaving an empty column.
6.5 defaults: the values a page did not choose
Section titled “6.5 defaults: the values a page did not choose”The four axes select the layout algorithm. Underneath them the shell has a second, finer vocabulary: how many tracks a grid has, how much air is between blocks, how much padding a card carries, how wide the rail is, how long a line of text runs. Those are normally a page’s decision, because they describe that page’s content.
Most pages do not make one. structural.layout.defaults is what your theme says for
those pages. It changes the information density of the whole app without any page being
edited.
Precedence is: the page’s own choice → your default → the engine’s. A page that explicitly asks for a two-column grid still gets a two-column grid. That is deliberate and it will not change: a theme sets a rhythm, it does not overrule content.
| Field | Values | Engine default | What it does |
|---|---|---|---|
columns |
auto, or 1–8 |
one column, per page | Track count for grid: even; a size hint under asymmetric |
gap |
none, xs, sm, md, lg |
sm on a content grid |
The rhythm between blocks, see the note below |
pad |
none, sm, md, lg |
md |
Padding inside a card |
railWidth |
sm, md, lg, xl, 2xl, 3xl, third, half, span1–span11 |
md (320 px) |
How much of the page the secondary column takes |
measure |
narrow, default, wide, full |
default (960 px) |
The reading width of the main column |
Every field is independently optional. Omit one and the engine’s own value stands.
gap shifts the whole set; it does not flatten it. The shell uses three different
steps of one scale for three different jobs: a stat grid is tighter than the gap
between a page’s stacked blocks, which is tighter than the gap between a main column and
its rail. That relationship is designed, so your gap moves all of them by the same
number of steps rather than setting them all to one value. gap: "md" is one step above
the content-grid default, so the grid goes to md, the stacked blocks go up one, and so
does the rail gap.
It clamps at the ends. There is no step above lg, so gap: "lg" does put every
rhythm on lg. If what you want is “the whole page breathes more”, reach for
density: spacious instead, which reinterprets every step to a longer length and keeps
the relationships intact.
railWidth’s fixed-pixel steps. sm 300, md 320, lg 360, xl 400, 2xl 560,
3xl 720. The top two are rails broad enough to hold a form rather than a column of
cards: 3xl is the signup page’s form column beside its marketing hero, and 2xl is a
narrower version of the same idea that no shipped surface currently sets from its own
call site. A theme selecting either is choosing it for every split that has not pinned a
width, so prefer third or a spanN where you want the rail to scale with the page
instead of holding a fixed measure.
railWidth in page columns. span1 through span11 express the rail as N twelfths
of the page (span4 is a third, span3 a quarter), which is how a 12-column design
grid describes one. They are fractions of the page, not of a grid: asymmetric
tile grid, so they mean the same thing whatever grid is set to. third and half are
proportions of the container and are kept alongside them; today third and span4
compute identically, but they would not if the twelve ever moved. There is no span12 -
it would leave the main column no width at all.
columns takes a single count, not a per-breakpoint ladder. A theme sets a rhythm;
which grid should reflow at which breakpoint is a fact about that grid’s content, and
your theme has not seen the page. Pages that need a ladder declare one, and it wins.
A member name this block does not recognise is an error, not a no-op. Write
railwidth instead of railWidth and you get invalid_layout_default, rather than a
package that validates and then quietly ignores the setting. This is the one place in
the manifest where an unrecognised key is rejected rather than dropped, and it is
deliberate: these five are a closed vocabulary, so a typo has no plausible reading other
than a mistake.
7. Fonts
Section titled “7. Fonts”You may name a family in two places: visual.fonts.heading / visual.fonts.body, and
the five font-name tokens (section 5.4). Both go through the same rule.
Every family must be either allowlisted or bundled in your package. There are no
external font CDNs and no @import: url() and @import are rejected by the value
grammar, and a family that is neither allowlisted nor bundled fails with
unknown_font.
7.1 The allowlist
Section titled “7.1 The allowlist”The theme allowlist is the same list the hub Branding font picker offers, so a theme and a hub brand can never disagree about which families exist.
Google-served: Inter · Roboto · Open Sans · Lato · Montserrat · Poppins · Raleway · Nunito · Playfair Display · Merriweather · Source Sans Pro · Ubuntu · Work Sans · DM Sans · Fira Sans · Quicksand · Mulish · Lexend · Outfit · Space Grotesk
Self-hosted design-system faces: Geist · Integral CF · Atkinson Hyperlegible
An allowlisted family needs no bundling.
7.2 Bundling your own
Section titled “7.2 Bundling your own”Put woff2 files directly in fonts/ (not a subfolder, which is never served), declare them in assets[], and name the family normally.
The validator matches on the slugified family name against the file stem: "Space Grotesk" is satisfied by fonts/space-grotesk.woff2 and by a weight-suffixed
fonts/space-grotesk-700.woff2.
The match is anchored to the start of the stem, so fonts/not-space-grotesk.woff2 will
not vouch for "Space Grotesk".
woff2only.- Declare a
licencefor every font inassets[]("licence": "OFL-1.1"). Fanzava serves your bundled fonts to your hub’s visitors, which is distributing them, so you state what they are licensed under. A font with no licence is refused withfont_licence_missing. The declaration is yours; Fanzava does not check it. - Name each file for its weight and style after the family:
space-grotesk-700.woff2(or-bold),space-grotesk-italic.woff2,space-grotesk-600italic.woff2. A file with no marker is the regular weight, and a name containingvariableorwghtis served as a variable face covering weights 100 to 900. - Keep total font weight under 1.5 MB and subset to the characters you need.
- Give a single family name, never a stack. The engine builds the fallback stack itself, and a stack you supplied would bypass the self-hosted fallbacks. A value containing a comma is rejected.
8. Build, validate, upload
Section titled “8. Build, validate, upload”Getting the packaging tool. fztheme is not on a public package registry yet. Our
team supplies it to theme authors: ask through support and name the hub the theme is for.
Everything it does can also be done by hand, as the end of this section shows, and the
server runs the same checks whichever way the package was built.
-
Author your
manifest.json, token files and assets.fztheme initwrites a working starting point if you would rather edit one than start from an empty folder:Terminal window fztheme init ./midnight --id acme.midnight --name "Midnight" --author "Acme Design" -
Package with
fztheme pack. It computes a SHA-256 for every file, writes them intoassets[](you never maintain that list by hand), zips the archive, and then runs the archive it just built through all seven stages below, locally:Terminal window fztheme pack ./midnight # writes ./midnight.fztheme, or nothing on failurefztheme validate ./midnight # the same checks, producing no filefztheme validate ./midnight.fzthemeExit code 0 means valid, 1 means the package is invalid, 2 means the tool could not run. Add
--jsonfor the same report as machine-readable output. -
Upload it, in the Upload a theme panel under Admin → Branding → Theme (section 8.5). (The endpoint underneath is
POST /api/v1/hubs/:hubId/themes/upload, multipart, with the archive in apackagepart, if you would rather script it.) -
Read the validation report. On a pass your theme appears in the picker as a private option. On a failure you get a field-level checklist of exactly what to fix.
-
Preview it on your own hub. Only you see the preview.
-
Apply to roll it out to your tippers.
Building a package by hand. List every file except manifest.json in assets[]
with its digest (sha256sum tokens/light.tokens.json prints it; use the lowercase hex),
add a licence to each font entry, then zip the folder’s contents so manifest.json
sits at the root of the archive, not inside a folder:
cd midnight && zip -r -X ../midnight.fztheme . -x '.*'Upload that file. The validation report the upload screen shows is the same one
fztheme validate prints.
The server always revalidates. Local validation is a convenience, never the authority -
though it is not a lighter one: fztheme imports the platform’s own validator rather
than approximating it, so the two agree except on two things it prints rather than
hides. compatibility.engine is resolved against the engine version that build of the
tool ships (--engine <version> overrides it), and author.hubId is only checked when
you name a hub with --hub-id, because the tool does not know which hub you will upload
to.
8.1 The seven validation stages
Section titled “8.1 The seven validation stages”| # | Stage | What it checks |
|---|---|---|
| 1 | envelope | Size budget, file count, archive integrity, no path traversal, every file declared |
| 1b | tokens | Placing tokens/*.tokens.json into the manifest, see section 3 |
| 2 | manifest | Shape, id, versions, token contract, value grammars, layout axes, fonts, asset paths |
| 3 | engine | Does compatibility.engine actually admit the running engine? |
| 4 | assets | Declared SHA-256 digests, file type versus content, image dimensions |
| 5 | accessibility | Contrast over the merged, rendered values, in both modes |
| 6 | security | No script, no external reference, no markup in copy the picker renders |
Stages 1 and 1b run first and together: they are the only stages that touch the archive, and nothing downstream runs while either has an error, because a package with a file nobody declared is not one we will store at all.
The token splice is stage 1b and not stage 4, and that matters to you. The manifest,
token and layout checks are one pass, so tokens that arrived after it would be checked by
nothing. Splicing first is what makes a bad value in tokens/light.tokens.json fail
exactly as it would inline.
The manifest stage is a gate: without a typed manifest the others have nothing to read, so a shape failure returns on its own. The rest run and accumulate, so you get every remaining problem in one report rather than one per upload attempt.
Errors block registration. Warnings are things to look at and decide about; a valid theme can carry warnings.
8.2 Error codes
Section titled “8.2 Error codes”Every failure carries a stable code and a dotted path into your manifest, for example
visual.tokens.--color-primary.
| Code | Stage | Means |
|---|---|---|
package_unreadable |
envelope | Not a ZIP, or a member does not unpack to the size the archive declares for it |
package_too_large |
envelope | The package’s files total more than 5 MB once unpacked |
package_entry_limit |
envelope | More than 50 files in the archive |
entry_too_large |
envelope | One file is over its budget: 256 KB for JSON, 2 MB for an asset |
fonts_too_large |
envelope | The fonts/*.woff2 files total more than 1.5 MB |
font_licence_missing |
manifest | A fonts/*.woff2 entry in assets[] declares no licence |
invalid_entry_path |
envelope | A member path is absolute, traverses, uses a backslash, or repeats |
manifest_missing |
envelope | No manifest.json in the archive |
manifest_unparseable |
envelope | manifest.json is not valid UTF-8 JSON |
unreferenced_file |
envelope | A file the manifest does not declare in assets[], see section 3 |
preview_missing |
envelope | No preview.png or preview.webp |
author_hub_mismatch |
envelope | author.hubId names a hub other than the one you are uploading to |
token_file_conflict |
tokens | A mode’s tokens are supplied both inline and by file. Pick one: they are not merged |
token_file_unreferenced |
tokens | A tokens/ file the manifest does not declare, or one the format has no place for |
token_file_missing |
tokens | The manifest declares a token file the package does not contain |
token_file_unparseable |
tokens | A token file is not a JSON object of token names to values |
invalid_shape |
manifest | A required field is missing or the wrong type |
unsupported_manifest_version |
manifest | manifestVersion is not "1.0" |
invalid_id |
manifest | id does not match namespace.name, lowercase |
reserved_namespace |
manifest | You used fanzava.* |
invalid_version |
manifest | version is not a semver |
invalid_engine_range |
manifest | compatibility.engine has illegal characters |
unknown_token |
manifest | The token is not part of the contract at all, usually a typo |
non_public_token |
manifest | The token exists but is internal, derived or brand input. The message says what to set instead |
invalid_token_value |
manifest | The value does not match the token’s grammar |
opaque_token_required |
manifest | A colour that must be opaque carries an alpha channel, see section 5.1 for the eight that may not |
unknown_font |
manifest | The family is neither allowlisted nor bundled |
invalid_font_name |
manifest | A family name uses a character other than letters, digits, spaces, hyphens or apostrophes |
invalid_chassis |
manifest | Not sidebar or header |
invalid_layout_axis |
manifest | A structural.layout member’s value is not one of its enumerated values |
invalid_layout_default |
manifest | A structural.layout.defaults member’s value is not one of its enumerated steps (section 6.5) |
invalid_asset_path |
manifest | Absolute, traversing, backslashed, or duplicated |
invalid_asset_digest |
manifest | sha256 is not 64 lowercase hex characters |
engine_range_unsupported |
engine | A range form we do not implement: a hyphen range or a prerelease |
engine_incompatible |
engine | Your range excludes the running engine |
asset_missing |
assets | The manifest declares a file the package does not contain |
asset_digest_mismatch |
assets | The file does not hash to its declared digest |
asset_content_mismatch |
assets | The file’s leading bytes are not the format its name claims |
asset_dimensions_exceeded |
assets | An image’s longest edge is over 4096 px |
contrast_below_minimum |
accessibility | A pair fails its WCAG minimum |
contrast_below_target |
accessibility | Warning. Clears AA but not the AAA target |
contrast_unverifiable |
accessibility | Warning. A translucent colour cannot be measured |
token_overridden_for_contrast |
accessibility | Warning. A readability guard replaced your value |
unsafe_asset_content |
security | An SVG carries script, an event handler, a data: URI or an external reference |
markup_in_text_field |
security | name, description or author.name contains < or > |
Separately from the report, the upload itself can be refused before any stage runs. These come back as a single message rather than a checklist:
| Code | Means |
|---|---|
PLAN_UPGRADE_REQUIRED |
The hub is not on the Enterprise plan |
THEME_VERSION_EXISTS |
That id and version are already stored. Bump version |
THEME_QUOTA_EXCEEDED |
The hub is at one of the storage limits in section 9. The message names which |
THEME_VERSION_CLEANUP_PENDING |
A deleted version with the same number is still being cleaned up. Try again in a minute |
8.3 What the accessibility stage measures
Section titled “8.3 What the accessibility stage measures”Your manifest is run through the real engine in both light and dark mode, against a
hub with no brand of its own, and the pairs below are read off the result. Measuring
visual.tokens directly would measure something no visitor ever sees: several tokens
are contested, guarded or derived, so the authored value and the rendered value
routinely differ.
That is a floor for your palette, not a claim about every hub that installs your theme: a respectful theme yields its brand colours to whatever the hub set, and that combination is unknowable at upload time. The engine’s runtime guards hold the floor for the installed case.
The bar is WCAG AA, enforced. A pair below its AA minimum is an error and the upload is refused. AAA is the target, and falling short of it is reported as a warning: it never blocks an upload.
Text pairs: 4.5:1 minimum (error), 7:1 target (warning):
body text on the page background · secondary text on the page background · body text on a card surface · secondary text on a card surface · the label on a primary button · the label on a secondary button · the label on an accent call to action · text inside a popover or menu
Non-text pairs: 3:1 minimum:
- the keyboard focus ring against the page background: error. An invisible focus indicator is a hard WCAG 2.4.7 failure.
- a border against the page background: warning
- the success / warning / error / info colours against the page background: warnings
Non-text pairs other than the focus ring are warnings because WCAG 1.4.11 exempts purely decorative elements, and the engine’s own hairline borders sit below 3:1 for exactly that reason. You still get the number; you decide.
Every pair on the page background is also measured against the member page canvas,
under <mode>.<pair>-on-member-canvas, whenever that is a different colour. The member
shell has its own ground: the engine resolves --ps-canvas from --color-bg in light
mode only, and in dark mode it is the Fanzava deep navy whatever you set
--color-bg to, unless you set --ps-canvas yourself. So an ink that is legible on
your page background can be unreadable where a member actually is, and that is the
usual shape of the mistake, because a theme that ships no darkTokens (section 5.3) inherits
its light ink onto a near-black canvas.
If you declare a canvas decoration, every pair on that ground is measured again. An orb is opaque colour behind your content, so the background your ink is
really read against is the canvas composited with it. Measuring the canvas token alone
would let a low-opacity orb under body text pass while rendering something far less
legible. The second measurement is taken at the orb’s centre, its full strength and
the worst case on a blurred circle, and reports under
<mode>.<pair>-under-decoration-<slot> with the same threshold and severity as the pair
it derives from. Slot geometry decides whether it runs at all: a slot with a size of
0, an opacity of 0, or tint: none paints nothing and is not measured.
If both slots paint, the overlap is measured too, under
<mode>.<pair>-under-decorations-stacked. Nothing stops you giving the two the same
coordinates, and the browser paints the second over the first, so the intersection
carries both opacities, and two orbs that are individually fine can combine into a
backdrop that is not. Whether they actually intersect is not computed: x, y and
size are lengths that can resolve against a viewport the validator does not have, so
the stack is measured whenever both slots paint. If yours are far apart, treat that
finding as the ceiling rather than the reading.
A translucent colour depends on whatever is composited behind it, so it cannot be
measured here. It is always reported as contrast_unverifiable rather than silently
skipped. Verify those by eye.
8.4 What the security stage refuses
Section titled “8.4 What the security stage refuses”A theme is data and assets, never code, and the only file in a package that can carry code is an SVG. Yours is refused, not stripped, if it contains any of:
- a
<script>element, or anon…=event-handler attribute; - a
<foreignObject>, which embeds arbitrary HTML inside the image; - an
<iframe>,<embed>,<object>,<audio>or<video>; <set>or any<animate…>element: SMIL can rewrite an attribute after the document is parsed, including one this scan already checked;- a
<!DOCTYPE>or<!ENTITY>declaration, which are attacks on the XML parser itself; - an external reference: an
href,xlink:href,srcorurl()pointing athttp:,https:or//. A theme may not reach the network; - a
javascript:URL; - any
data:URI. A nesteddata:image/svg+xmlis a second document this scan cannot see through, which would make every rule above optional.
The file must also be a plain SVG document: it has to start with <svg>, optionally
after an XML declaration.
Refused rather than sanitised, deliberately. Every file carries a SHA-256 you declared, so stripping bytes would break the digest you signed, and a silent strip would ship artwork you did not draw with nothing saying so. You get a field-level error naming the construct instead.
name, description and author.name are displayed as plain text and may not contain
< or >.
8.5 The upload screen
Section titled “8.5 The upload screen”Admin → Branding → Theme. The picker is at the top; Upload a theme is the panel under it. Both need a hub-admin account, and the upload panel needs the Enterprise plan. On any other plan it says so and links to the plans page rather than letting you send a package the endpoint would refuse.
Drop your .fztheme on the panel, or click it to choose one, then press Upload
theme. Two things are checked before anything is sent (that the file is a .fztheme
and that it is inside the 5 MB budget), and both say “Nothing was uploaded” so you can
tell them apart from a verdict. Everything else is decided by the server.
There is no percentage while it uploads, only a spinner. That is deliberate: the browser API the upload goes through reports nothing about a request body’s progress, and a bar timed off a guess would be worse than none. A 5 MB ceiling keeps the wait short.
Then one of three things:
- It passed. A green tick against each of the seven stages, the name and version of what was registered, and any warnings it carried anyway; an AAA shortfall never blocks. The theme is now a card in the picker above, private to your hub.
- It was rejected. The same field-level checklist
fzthemeprints, grouped by the same stages in the same order, with the samepath, code and sentence for each finding. The codes in section 8.2 are exactly what you will read. Nothing was stored. Fix the items, runfztheme packagain, and upload the new package; the panel is ready for it. - It could not be completed. A single sentence rather than a checklist, because
nothing was validated. The usual cause is re-uploading a
versionthat already exists (section 9: versions are immutable, so bump it), anidwhose namespace is taken, or a hub that has reached its storage quota (section 9).
On a pass, select the new card to preview it, then apply it. From there it behaves exactly like a first-party theme: same card, same preview, same apply.
9. Versions, storage and deleting
Section titled “9. Versions, storage and deleting”- Bump
versionon every change and re-upload. Every version is stored immutably, so the sameidandversioncan never be uploaded twice with different contents. - A hub picks a version. In Admin → Branding → Theme, select your theme’s card and the versions panel under the picker lists every stored version with its changelog. Use this version applies it. An upgrade and a rollback are the same action.
- If a new engine version changes the contract,
compatibility.enginedecides whether your theme still applies. Update and revalidate when you adopt a new engine.
Storage limits, per hub:
| Limit | Maximum |
|---|---|
| Themes | 10 |
| Versions of one theme | 20 |
| Stored packages, all themes combined | 100 MB |
The stored figure counts each uploaded .fztheme archive at its uploaded size. An upload
that would cross any limit is refused with THEME_QUOTA_EXCEEDED, and the message names
the limit.
Deleting a version. Your own themes are listed under Your themes in the theme settings, and a version that can be removed shows Delete. Deleting frees its place in all three limits and removes its files. A version cannot be deleted while:
- your hub is using it (apply another version or theme first), or
- it has been disabled by Fanzava’s review team (section 10).
Deleting every version of a theme frees the theme’s place in the limit, and the id
stays reserved to your hub. A hub admin can delete what the hub uploaded even after the
hub has left the Enterprise plan.
10. Licensing and takedown
Section titled “10. Licensing and takedown”You must hold the rights to everything in your package: the artwork, the preview and
every font. Fanzava serves a bundled font to your hub’s visitors, which is distributing
it, so each fonts/*.woff2 declares its licence in assets[] (section 7.2). The
declaration is yours; Fanzava records it and does not verify it.
Fanzava can disable a theme that is the subject of an intellectual-property claim,
that breaches our policies, or that poses a security concern. A disabled theme stops
rendering on every hub, which goes back to Default, and the theme’s card in Your
themes shows which of the three reasons applied. A disabled version cannot be deleted
by its author, because it is the record of what was reviewed. If you think a theme was
disabled in error, contact support with the theme’s id and version.
author.url (section 4) is shown beside your name wherever the theme is reviewed, so
point it at a page where a rights holder can reach you.
11. Checklist before you upload
Section titled “11. Checklist before you upload”- The hub you are uploading to is on the Enterprise plan
-
manifestVersionis"1.0";idis namespaced and notfanzava.* -
versionis a semver you have not uploaded before, andcompatibility.engineadmits engine 1.7.0 - Light and dark token sets provided
- Every token name is on the contract (section 5.4),
--prefix included - Every value matches its grammar, with no
var(),url(),@importor; - Corner style set with
--brand-radius-multiplierwhere you wanted the whole scale to move, not by restating every step as absolute px - Contrast clears AA in both modes (enforced), ideally AAA (reported); the focus ring clears 3:1
- No
token_overridden_for_contrastwarnings you have not deliberately accepted - Every font family allowlisted or bundled as
fonts/*.woff2, with alicence; single names, no stacks -
chassisset; with"custom", astructural.templatewith exactly onepageOutlet -
blocksnamed only on the three surfaces that accept them -
fullBleedleft unset, unless your chassis supplies its own gutters (section 6.3) - Checked at desktop, tablet and mobile widths, and in right-to-left if your hubs need it
-
preview.pngorpreview.webpincluded; every file (tokens, fonts, assets, preview) declared inassets[]with its checksum; nothing undeclared - Package under 5 MB and within every limit in section 3
- No code anywhere
-
fztheme packexits 0 (or the upload report passes), and you have read every warning
What is not available yet
Section titled “What is not available yet”- Publishing a theme for other hubs. The marketplace, where another hub could find and install your theme, is not open to authors. A theme you upload is for your own hub.
- The packaging tool on a public registry.
fzthemeis supplied on request, as section 8 describes.
Was this page helpful?