Brands
A brand is a structured token kit — logos, colors, typography, icons — that templates bind to. Bind a layer's fill to colors.primary once, and every render follows the brand; swap the brand (or override tokens per render) and the same design re-skins itself.
Which brand a render uses
{{ brand.* }} resolves the same way on the editor canvas, the template's public page, the gallery thumbnail, and the Rendering API: the brand named under Template settings → Brand, else the space default.
To change it for one render, pass brand on that API (another brand of your space), brandVariant (a campaign look of the brand, see Rendering under a variant) or brandTokens (token values that replace the resolved brand for that call; omitted tokens do not inherit). The template is not changed. To change it for every render, switch the template's brand, or Set as default in the brand switcher (bottom of the sidebar, or under Branding). Picking a brand there without setting it as default only changes your own previews: the gallery, the templates list, and a template's page. Renders keep the template's brand, else the space default.
Token model
Brand tokens are a nested object addressed by dot paths:
| Group | Example tokens |
|---|---|
logos | logos.logo (full lockup), logos.icon (mark), logos.wordmark; logos.rules (usage rules, see below). Brand extraction never fills a slot with a .ico favicon: it cannot be drawn or packaged into an HTML5 ad, so a site that only has one leaves the slot for you to upload. |
colors | colors.primary, colors.secondary (optional), colors.accent; colors.neutral100 … colors.neutral900 (surface → text: light to dark on a light kit, dark to light on a dark one); colors.success, colors.error, colors.warning, colors.info. Renders also derive tint steps, text-on-fill, status and chart colours from these (see Derived colors below). |
typography | typography.heading, body, stylish, mono (families); typography.scale; typography.styles.* (see below). A variable-face name such as Inter Variable or Inter VF renders and embeds as the Google family it names (Inter). typography.substitutes is set by brand extraction when a licensed font was swapped for its closest open one: { heading: { original: "Söhne", family: "Inter" } }. It is a note only; renders use the family in heading. |
look | look.margin, look.spacing, look.alignment, look.radius, look.shadow, look.gradients.*, look.border, look.overlay, look.texture, look.glass, look.filters.* (see below) |
images | A list per content category: images.lifestyle, product, people, screenshots, backgrounds, cutouts, places (see below) |
shaders | A list per use: shaders.backgrounds, overlays, imageEffects, transitions — each item { shaderId, name, tags } pointing at a vetted shader in your space |
icons | Contact, event, trust, promotion and content icons; social-platform icons; optional arrows and feedback icons (see below) |
| Other | illustrations, sound, motion |
logoLuminance | Set by brand extraction: how light each logo is, logoLuminance.logo = { url, value } (0 dark … 1 white), measured on the logo at url. The brands page uses it to put a backing behind a white logo on a light kit. Read-only in practice: it no longer applies once the logo changes. |
Labels generally follow the token key: "Radius" is look.radius, "Icon" is logos.icon. Location is icons.venue.
Each brand holds draft tokens (being edited) and live tokens (what published renders use). Templates reference tokens through brand bindings in the editor; a template can also declare a defaultBrandId.
On a wide screen the token drawer shows a live preview beside the form: sample creatives and a foundations sheet (colour ramps, type styles, corners, spacing, shadows) that follow every edit, including the variant you are editing. The preview also draws the brand's images, logos, gradients, effects (border, overlay, texture, glass, image filters), stylish and mono fonts, icons, illustrations and shader thumbnails; motion and sound values are listed, not played. Anything the brand does not set falls back to a plain sample. Click a label in the foundations sheet to jump to that field. Hide or show the preview with the toggle in the drawer's header.
Icons
The icon slots hold reusable assets for your graphics. Fill only the roles your brand uses; templates can also use an ordinary library icon tinted with brand colors.
- Contact and events:
date,venue(labelled Location),map,time,email,phone,website. - Benefits and trust:
check,star,heart,shield,thumbsUp. - Promotions:
tag,gift,shoppingBag. - Content:
quote,play,people, plus directional arrows. - Social icons:
instagram,facebook,linkedin,x,youtube,tiktok,whatsapp, shown as a separate group. These hold icons, not account URLs; links belong incopy.links. - More icons (optional):
arrowUpLeft,arrowDownLeft,thumbsDown, collapsed in the brand book. Their existing token paths remain valid.
All paths stay flat, for example icons.email and icons.instagram. The brand's
own symbol remains logos.icon. Icon values may be an Iconify reference such as
"icon:ph:envelope", inline SVG, or an uploaded image { "url": "…" }.
In a template, select an SVG layer and set Source to
{{ use(brand.icons.email, "ph:envelope") }}. The icon follows the active brand;
with no email icon it uses the envelope fallback. SVG sources accept Iconify
references, inline SVG, SVG data URLs, and SVG URLs (including brand media
objects with a url). They resolve before tinting in preview and PNG, SVG,
and PDF exports. Raster image assets should use an image layer.
The existing schema upgrade adds the new slots to older brand schemas while preserving existing icon values and custom fields.
Type styles
typography.styles holds six named text styles (display, h1, h2, body, caption and label), set on top of the font families:
{ "h1": { "font": "heading", "weight": 700, "size": 62, "lineHeight": 1.1, "letterSpacing": -0.02, "case": "sentence" },
"display": { "font": "heading", "weight": 600, "italic": true } }
font: which family the style uses:heading,body,stylishormono.size: px for a canvas whose short side is 1080 px. Leave it out and the size comes fromtypography.scale, the ratio between steps (e.g. 1.25). Body is 32 px; label is two steps down, caption one; h2 is two steps up, h1 three, display five.lineHeight: a multiplier.letterSpacing: in em, so it scales with the size.case:none,sentence,title,upperorlower. Sentence case only raises the first letter of each sentence, so names and acronyms stay as written.italic: optional,truefor a brand whose style is set in an italic face (for example an italic serif display). Only a realtruecounts; it defaults tofalse. Bind it on a text layer withitalic: brandText(brand.typography, 'display').italic.
Binding brand values
Every brand value can be bound straight onto a layer, because renders resolve it first:
- Type styles: each style arrives complete, with its derived size,
italic, the family it resolves to (fontFamily) and facet'stextCase. - Look: a
"full"radius becomes a number, andlook.marginand everylook.spacingstep arrive as numbers. - Logo rules: every logo slot, including ones you add, has a full rule.
- Colors: palette roles inside
lookarrive as hex, derived names included (look.border.color: "primary200").
For example: fontWeight: brand.typography.styles.h1.weight, radius: brand.look.radius.button, constrainH: brand.logos.rules.logo.horizontal. Raw values are px at the 1080 reference. Use the brand* helpers when you want them scaled to the canvas.
Derived colors
Renders work out extra colours from the stored roles, so a template can bind them without the brand storing them. Change colors.primary and every derived value follows.
| Tokens | What it is | Example |
|---|---|---|
colors.primary50 … colors.primary950 (also secondary*, accent*) | 11 tint-to-shade steps (50, 100, 200 … 900, 950). The step closest to the role's own lightness is the role colour itself. | fill: brand.colors.primary100 for a soft panel |
colors.onPrimary, colors.onSecondary, colors.onAccent | Text colour for copy on that fill: the kit's own neutral900 or neutral100, whichever reads better, or black / white when neither reaches 4.5:1. | {{ brand.colors.onPrimary }} on a button label |
colors.successBg, successBorder, successText (also error*, warning*, info*) | A soft background, a border and a text colour from the status hue. Text on Bg reaches 4.5:1; a dark kit gets deep backgrounds and light text. | an error banner: brand.colors.errorBg + brand.colors.errorText |
colors.chart1 … colors.chart6 | Six distinct series colours: the brand roles first (primary, accent, secondary; a role too close to one already picked is skipped), then hues worked out from the primary. A brand with no brand colour gets no chart keys. | the third bar: brand.colors.chart3 |
colors.secondaryfalls back toaccent, thenprimary, when the brand has none, so{{ brand.colors.secondary }}is never blank.- Derived values are read-only. To change them, change the role they come from. A brand that stores a key with one of these names (for example its own
onPrimary) keeps its value. - A brand without a
primarygets noprimary*/onPrimarykeys; status colours fall back to fixed defaults when the brand has none. - The API code sample's
brandTokensnever copies a derived value: it sends the roles the value comes from.
Logo usage rules
logos.rules holds one rule per logo version (logo, icon, wordmark). It sits next to the logo URLs, so {{ brand.logos.logo }} bindings keep working:
{ "logo": { "clearSpace": 1, "minSize": 13, "horizontal": "left", "vertical": "top" } }
clearSpace: the exclusion zone on every side, as a multiple of the logo's own height (X).0.5means half the logo's height. Nothing may come inside it, the canvas edge included.minSize: the smallest height the logo may be drawn at, in px for a canvas whose short side is 1080 px.horizontal/vertical: the preferred placement, using the same words as the editor's resize pins:left | center | rightandtop | center | bottom. Bind them straight onto a layer'sconstrainH/constrainV.
Sizing a logo layer. Every brand's logo has a different shape, so a template fixes one side of the logo layer and lets the other follow the artwork, like CSS height: auto: give the image layer a height and set its width to Hug (sizeW: "hug", optionally maxW). For a slot the logo must fit inside, set both sides to Hug with maxW and maxH; the logo scales down evenly until it fits. The layer's box then matches the real logo, so a plate or header around it has no empty space. SVG icon layers work the same way.
Templates place a logo with brandLogoPlace. The clear space can also be spacing: brandLogoSpace(rule, logoHeight) returns it in px, for a logo container's padding or the gap between the logo and partner logos. See Brand shape and effects.
Images
Images are sorted by what they show, and each category is a list, so a template can use one at any position or pick one at random:
{ "people": [{ "url": "…/ada.jpg", "alt": "Ada speaking at the summit", "name": "Ada Obi", "role": "Head of Design", "company": "Northwind", "logo": "…/northwind.svg", "tags": ["speaker"], "focus": { "x": 0.5, "y": 0.3 } }] }
| Category | What it holds |
|---|---|
lifestyle | People using the product or brand in real settings |
product | Packshots, the product in a scene, close-ups |
people | Portraits, team, customers, speakers. Each person can carry a name, role, company and — for guests from another organisation — their company's logo |
screenshots | App screens, UI, device mockups |
backgrounds | Abstract shapes, textures, gradients, patterns |
cutouts | Subjects on a transparent background |
places | Offices, locations, venues |
Every item has a url and can carry alt (screen readers and exports), name, description (context the assistant matches a headline against), tags and focus (where the subject is, 0–1, so a crop keeps it in frame). Only add people who agreed to appear in your creatives.
In a template: {{ at(brand.images.people, 0).url }} and .name / .role for one image, randomChoice(brand.images.lifestyle, seed) for a stable random pick, first(withTag(brand.images.people, 'speaker')) to filter by tag, or a repeater over brand.images.people for a speaker grid. Templates written for the old single images (brand.images.photo, picture, avatar, background, cutout) keep working: each reads the first image of its category.
Look
look is how the brand's creatives are laid out and finished. Colours in it may be a palette role ("primary", "neutral900") or a hex; with a role, a palette edit restyles everything that uses it. Px values are authored for a canvas whose short side is 1080 px, and templates scale them to the canvas they render on.
| Token | Shape |
|---|---|
look.margin | Safe margin on every side, px. |
look.spacing | { unit }: the spacing step (default 12 px). Renders add the named steps xs, sm, md, lg, xl, xxl (unit × 1, 2, 3, 4, 6, 8), so a gap binds brand.look.spacing.md. |
look.alignment | left, center or right: the brand's default text alignment. |
look.radius | { preset, button, card, image, badge, avatar }, each px or "full" (a pill or circle whatever the size). Presets sharp, soft, rounded and pill fill every role; changing one role marks it custom. |
look.shadow | { style: "none" | "soft" | "hard" | "custom", sm, md, lg }. Each level is a list of { type: "dropShadow" | "innerShadow", x, y, blur, spread, color, opacity }. none means a flat brand. |
look.gradients.primary / accent / background | { type: "linear" | "radial" | "conic", angle, stops: [{ pos, color }], cx, cy, r }. angle is not CSS: 0° runs left to right and 90° top to bottom (CSS angle − 90). Radial r 0.5 puts the last stop on the corners (CSS farthest-corner); 0.3536 puts it on the edge midpoints (closest-side). |
look.border | { width, color, style: "solid" | "dashed" }. Width 0 means no border. |
look.overlay | { color, opacity, fade: "none" | "bottom" | "top" | "left" | "right" }. A scrim that keeps text on photos readable. |
look.texture | { amount, size, mono }. Film grain; amount 0 means none. |
look.glass | { radius, brightness, saturation }. Frosted glass (background blur). |
look.filters.lifestyle / product / people / screenshots / backgrounds / cutouts / places | A CSS filter string for the matching images.* category, e.g. "brightness(1.05) saturate(0.8) blur(2px)". Renders draw brightness, saturate, grayscale and blur; other CSS filter functions are kept but ignored. |
Templates bind these directly or through the brand* expression helpers. See Brand shape and effects.
When you extract a brand from a website, its corner radius, box shadows, gradients and button border are filled in too. Web px are doubled, because a 1080 px creative is seen at about half the size of a desktop page.
Brands made before look had separate layout and effects groups; they were moved into look automatically (the old grid, bleed and placement settings were retired, with bleed becoming margin).
Variants
A variant is a named override set layered over the brand's tokens — Christmas, Black Friday, a promo weekend. Apply one and every design, thumbnail, export and API render re-skins; stop applying it and the brand is exactly as it was. A brand can hold up to 15 variants.
A variant is just a name. Add them from the token drawer on the brand page: type a name, press Enter, drag to reorder. Optionally put variants in a group and mark the group one at a time, so only one Season can ever be on.
Light and dark
A kit's default theme is whatever its surface (colors.neutral100) is. The token drawer offers the
other theme as a ready-made variant — Add Dark variant on a light kit, Add Light variant on a
dark one — in a one-at-a-time Theme group. It runs the neutral ramp the other way, adjusts
colors.primary / colors.secondary / colors.accent that would not read on the new surface, and swaps in the logo
made for that background when the brand has one. It is not applied until you apply it; a render
picks it with brandVariant: ["Dark"] (or "Light"). A brand read from a website gets this
variant automatically, with its base kit in the site's own theme.
Editing a variant is separate from applying it
Clicking a variant pill selects what you are editing — nothing about live output changes, so you can open Christmas in July safely. Making it live is a deliberate second step: Apply everywhere in the pill's menu. Applied variants carry a green dot, and whatever is live is listed under the strip.
Overrides are keyed by combination
Edit a token while Christmas alone is selected and the override belongs to Christmas. Edit it with Christmas and Promo both selected and the override belongs to that pair, so the combination can have its own third value. A token the combination does not set falls back to each variant on its own, then to the base kit. Order breaks ties when two equally specific variants set the same token — the one earlier in the list wins.
{
"defs": ["xmas", "promo"],
"groups": [{ "id": "season", "type": "single", "variants": ["xmas", "bf"] }],
"personalization": {
"xmas": { "colors.primary": "#c8102e", "logos.logo": "xmas-logo.svg" },
"promo": { "colors.accent": "#ffd700" },
"promo+xmas": { "colors.primary": "#8b0000" }
},
"applied": ["xmas"]
}
Combination keys are the variant ids sorted and joined with +.
Rendering under a variant
Renders follow the brand's applied set by default. To pin a render to a specific look, pass
brandVariant — it replaces the applied set, so the result does not change when someone applies
a campaign on the brand page:
POST /api/v1/templates/:id/render
{ "format": "png", "brandVariant": ["xmas"] }
Pass "brandVariantMode": "add" to layer the named variants on top of the applied set instead of
replacing it. An id the brand does not have is a 400 that lists the ids it does have — a render never
falls back to the base kit while claiming a campaign look — and so is brandVariant on a template that
has no brand at all.
Start from your website
You do not have to build a brand kit by hand to see what your templates will look like.
- On the homepage, enter your website. We read its logo, colours and fonts, and every template in the gallery re-renders in your brand. Not quite right? Not your brand? Try another site puts the default look back and lets you enter another address.
- Sign up from the same browser and that brand is saved to your workspace (as its default brand when it has none yet), so the templates you open next already wear it.
- When you create a workspace, you can add your website. The brand is set up in the background while you look around, and becomes the workspace's default brand when it has none yet. Until it is ready, the brand switcher's place shows Reading yoursite.com…; if the site cannot be read, Try again opens the usual new-brand dialog.
What we read is a starting point, not a verdict: open the brand on the Brands page to fix a colour, swap the logo or change a font.
We only record your fonts' names, never their files. When your site uses a licensed font we cannot load (Söhne, Circular, SF Pro and the like), the kit uses the closest open font instead, and the website preview names it, for example Inter (closest match to Söhne). To use the original, upload your own font files under Settings → Space → Custom fonts, then pick that family for the font on the brand.
Managing brands
In the app: the Brands page lists every brand kit in your space, default first. New brand opens a dialog that reads a kit from your website, or starts a blank one. In the editor, Template settings → Brand picks the template's brand and its info button lists the tokens layers can bind to (click one to copy its brand.* expression).
Via MCP (API-key friendly): AI agents and scripts can manage brands through the MCP server with a Bearer API key — list_brands, get_brand, create_brand, update_brand, and resolve_brand (extract brand tokens from a website).
A brand with publicOn set can be read without a login: GET /api/v1/brands/:id. GET /api/v1/brands?public=true lists public brands.
Brand fields
| Field | Description |
|---|---|
_id, name | Identity. |
draftTokens | Tokens as currently edited in the app. Renders use these when set. |
liveTokens | API-authored token set. Renders use it when draftTokens is empty; a create/update that sends liveTokens without draftTokens also sets draftTokens to the same values. |
tokens | Legacy token set — the last fallback. |
variants | Campaign variants — see Variants. |
publicOn | When set, the brand is publicly readable. |
Renders, the template page preview and the MCP tools all pick the same set: draftTokens when it has any value, else liveTokens, else tokens.