# Shopyzer theme spec

- Spec version: 1 (theme files carry `"shopyzer_theme": 1`)
- Canonical URL of this document: https://www.shopyzer.com/theme-spec.md
- JSON Schema of the same format: https://www.shopyzer.com/theme.schema.json
- Audience: an AI assistant that has been asked to design an online store. Follow this document literally. It is complete; do not rely on knowledge of other platforms.

## Prompt to give your assistant

A person can copy the block below into ChatGPT, Claude or another assistant, then add a description of the store.

```text
Read https://www.shopyzer.com/theme-spec.md and follow it exactly.
Design a Shopyzer theme for my store and answer with one JSON code block that contains the complete theme file and nothing else.

My store: <what you sell, who buys it, the mood you want, colours you like, the languages of your store>
```

If the store owner later pastes validation errors, fix every listed problem and answer again with the complete corrected file in one JSON code block.

## What Shopyzer is

Shopyzer is a hosted e-commerce platform: it provides the store, product catalogue, cart, checkout, payments and marketplace connections. A theme file changes only how the storefront looks and what the home page contains; the store owner uploads the file in the Shopyzer panel (Themes, "Import a theme") and the store opens with that design.

## What you must output

1. Exactly one fenced code block, opened with ```` ```json ````, that contains one JSON object: the theme file. The owner saves its content as `theme.json`.
2. Nothing else inside the file: no comments, no trailing commas, no second object, no Markdown. Keys and strings use double quotes. Encoding is UTF-8.
3. The whole file is at most 90000 bytes when written as compact JSON.
4. Every key must be one this document defines. Unknown keys are rejected, at every level.
5. Do not use `null`. Leave an optional key out instead.
6. You may write a short explanation before or after the code block, but the code block must hold the entire file. Never split the file over several blocks and never abbreviate it with "...".

A theme file is data. It cannot contain HTML, JavaScript, SVG markup, data URIs or anything executable.

## What a theme controls, and what it does not

A theme controls:

- the colour palette, the two fonts, corner rounding, button shape, heading style and two layout options (`tokens`);
- the home page: an ordered list of sections chosen from the `hero`, `marquee`, `tiles`, `products`, `editorial`, `banner`, `values`, `steps`, `faq`, `prose` types (`home`);
- optional custom CSS that restyles the storefront's components (`css`).

A theme does not control, and must not try to describe:

- the header and footer content. Shopyzer builds them from the store's own name, logo, menus and categories. You can restyle them with CSS, not change their content;
- products, prices, categories, pages, menus, checkout, payment or shipping. Product sections show the store's real catalogue, selected by rule;
- the store's logo and favicon. The owner uploads those in the panel;
- any page other than the home page. Product and category pages take the theme's tokens and CSS but keep their own structure; cart, checkout and account pages take the tokens and fonts only.

Applying a theme replaces the store's colours, fonts and home page. It never deletes products, categories, menus or other pages, and the owner can restore the previous theme.

## File structure

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `shopyzer_theme` | `1` | yes | Format version. Always the number 1. |
| `name` | string, max 60 | yes | Theme name, shown to the store owner. |
| `description` | string, max 300 | yes | One or two sentences about the design. |
| `author` | string, max 80 | no | Who made it. |
| `tokens` | object, see "Tokens" | yes | Colours, fonts and shape. |
| `home` | array of 1–20 sections, see "Sections" | yes | Home page sections, top to bottom. |
| `css` | CSS string | no | Custom CSS, at most 20000 characters. |

"string, max N" is a plain single-line string of 1 to N characters that is never translated. The other types are defined in the sections below.

## Tokens

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `tokens.colors` | object | yes | The palette. All seven are required. |
| `tokens.colors.primary` | colour | yes | Brand colour: links, underlines, hover states, small labels. |
| `tokens.colors.secondary` | colour | yes | Dark surface colour: footer, dark editorial sections. |
| `tokens.colors.accent` | colour | yes | Highlight colour for small details. |
| `tokens.colors.background` | colour | yes | Page background. |
| `tokens.colors.foreground` | colour | yes | Text colour; also the fill of solid buttons. Must contrast with background. |
| `tokens.colors.muted` | colour | yes | Soft background of tinted sections and image placeholders. |
| `tokens.colors.border` | colour | yes | Hairlines and input borders. |
| `tokens.fonts` | object | yes | Google Fonts families, loaded by the storefront in weights 400 to 700. |
| `tokens.fonts.heading` | font | yes | Headings. |
| `tokens.fonts.body` | font | yes | Body text, navigation, buttons. |
| `tokens.radius` | `"none"` \| `"sm"` \| `"md"` \| `"lg"` \| `"xl"` | no (`"none"`) | Corner rounding of product images, category tiles, step cards, inputs and boxes. |
| `tokens.buttons` | `"square"` \| `"rounded"` \| `"pill"` | no (`"square"`) | Button shape. |
| `tokens.headings` | object | no | Heading style. |
| `tokens.headings.case` | `"normal"` \| `"uppercase"` | no (`"normal"`) | "uppercase" sets section and hero headings in capitals. |
| `tokens.headings.weight` | `400` \| `500` \| `600` \| `700` | no (`500`) | Font weight of section and hero headings. |
| `tokens.layout` | object | no | Layout options. |
| `tokens.layout.productColumns` | `2` \| `3` \| `4` | no (`4`) | Columns of product grids on wide screens (phones always show 2). |
| `tokens.layout.contentWidth` | `"narrow"` \| `"standard"` \| `"wide"` | no (`"standard"`) | Maximum content width: narrow 1200 px, standard 1480 px, wide 1680 px. |

Colour values are hex only: `#RRGGBB` or `#RGB`. Named colours, `rgb()`, `hsl()` and alpha values are rejected.

How the storefront uses the palette, so that you can choose values that work together:

- `background` is the page; `foreground` is the text. They must contrast strongly (aim for a contrast ratio of at least 7:1).
- Solid buttons are filled with `foreground` and labelled in `background`; on hover they turn a darker shade of `primary`.
- `primary` colours small labels (eyebrows), link underlines, sale badges and hover states. Choose a colour that is readable as small text on `background`.
- `secondary` is the dark surface: the footer and `editorial` sections with `tone: "dark"`. Text on it is a fixed off-white, so `secondary` must be dark.
- `muted` is the background of tinted sections and of product image placeholders. Keep it close to `background`.
- `border` draws hairlines. `accent` is used for small details only.

The storefront derives hover and soft shades from these seven values itself. A light page with dark text is the tested configuration. A dark `background` with a light `foreground` is accepted, but then set `secondary` to a dark colour too and check every section in your head: text on images is controlled by each section's `tone`, not by the palette.

## Text values and locale maps

A field of type "text, max N" accepts either form:

- a plain string: `"New arrivals"`. It is shown unchanged in every language of the store;
- a locale map: `{ "en": "New arrivals", "tr": "Yeni ürünler" }`.

Rules:

- Allowed locale codes: `en`, `tr`, `de`, `fr`, `es`, `pt`, `it`, `nl`, `pl`, `hu`, `el`, `ar`, `zh`, `ja`.
- Every locale map must contain `en`. A store language that is missing from a map shows the `en` text.
- N is the maximum length in characters and applies to the string and to each value of a map. Empty strings are rejected; omit the key instead.
- Plain text only. HTML tags and Markdown are not interpreted; a value that contains an HTML tag is rejected. Line breaks are not rendered.
- Use one form consistently. If the owner named the store's languages, use locale maps with all of those languages (plus `en`) for every text. If they named one language only, plain strings in that language are fine.
- Write real copy for the store that was described. Do not leave placeholder text such as "Lorem ipsum" or "Your title here".

## Images

Fields of type "image URL":

- must be an absolute `https://` URL of at most 500 characters, pointing to a public host name, with no spaces, quotes or angle brackets;
- must point directly to a JPG, PNG, WebP or AVIF file that can be hot-linked. SVG files, `http://`, relative paths, `data:` URIs and IP addresses are rejected;
- should be large enough: about 1920 px wide for `hero` and `banner`, 1200 px for `editorial`, 900 px for `tiles`.

You cannot upload files. Use stable, publicly hot-linkable stock photo URLs that you are confident exist (for example `https://images.unsplash.com/photo-<id>?w=1920&q=80`), and never invent a URL that merely looks plausible. Tell the owner, outside the code block, that the images are placeholders: after applying the theme they should replace them with their own uploads in the Shopyzer panel.

## Links

Fields of type "link" accept only:

- one of the fixed targets: `/`, `/products`, `/categories`, `/about`, `/contact`, `/faq`, `/shipping`, `/returns`, `/blog`, `/cart` (`/` is the home page, `/products` the full catalogue, `/categories` the category list; the others are the store's standard pages);
- `/category/<slug>`: one category of the store;
- `/page/<slug>`: a custom page the owner created;
- an absolute `https://` URL for an external site. Use these sparingly; the owner is shown every external link before applying.

A slug is lower-case letters, digits and single hyphens (`^[a-z0-9]+(-[a-z0-9]+)*$`, at most 80 characters), for example `summer-dresses`.

You usually do not know the store's real category slugs. Use `/category/<slug>` and the `category` field of `products` only with slugs the owner gave you. Otherwise link to `/categories` or `/products`. Unknown slugs do not break the store: a link to a category that does not exist opens the category list, and a `products` section filtered by it shows products from the whole catalogue. The owner is warned about unknown slugs before applying.

## Sections

`home` is an array of section objects, rendered top to bottom. The section types are `hero`, `marquee`, `tiles`, `products`, `editorial`, `banner`, `values`, `steps`, `faq`, `prose`. Every section is an object with these two keys plus the keys of its type:

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `type` | one of the section types | yes | Selects the section. |
| `id` | section id | no | Name of this section for CSS, rendered as `data-section="<id>"`. Pattern `^[a-z][a-z0-9-]{0,39}$`. Must be unique in the file. When omitted it is `<type>-<n>`, where n counts sections of the same type from 1 (`products-1`, `products-2`). |

Rules for the list:

- 1 to 20 sections.
- At most one `hero`. Put it first: its first slide title is the page's `<h1>`.
- Include at least one `products` section; a store's home page should show products.
- A section with `tone` can be `plain` (page background) or `tint` (the `muted` colour); alternate them to give the page rhythm.
- In the tables below, `a[].b` means key `b` of each object in array `a`. A `button` is always an object `{ "label": text, "link": link }` with both keys required.

A typical order is: hero, marquee or values, tiles, products, editorial, products, banner, faq.

### `hero`

Full-width image slider at the top of the page. At most one hero per theme; the first slide title is the page <h1>. Root CSS class: `.lx-hero`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `slides` | array of 1–5 × object | yes | Slides, shown in order. One slide gives a static hero. |
| `slides[].image` | image URL | yes | Background image, landscape, about 1920 px wide. |
| `slides[].imageMobile` | image URL | no | Portrait image used below 768 px. |
| `slides[].alt` | text, max 160 | no | Image description. Defaults to the title. |
| `slides[].tone` | `"dark"` \| `"light"` | no (`"dark"`) | "dark" = dark image, light text. "light" = light image, dark text. |
| `slides[].eyebrow` | text, max 80 | no | Small label above the title. |
| `slides[].title` | text, max 160 | yes | Headline. |
| `slides[].text` | text, max 600 | no | One or two sentences under the headline. |
| `slides[].button` | object | no | Primary button. |
| `slides[].button.label` | text, max 60 | yes | Button text. |
| `slides[].button.link` | link | yes | Where the button goes. |
| `slides[].secondaryButton` | object | no | Second, outlined button. |
| `slides[].secondaryButton.label` | text, max 60 | yes | Button text. |
| `slides[].secondaryButton.link` | link | yes | Where the button goes. |

### `marquee`

A thin band of short phrases that scrolls sideways continuously. Root CSS class: `.lx-marquee`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `items` | array of 2–12 × text, max 60 | yes | Short phrases (a few words each). |

### `tiles`

Image tiles that link somewhere, normally to categories. Root CSS class: `.lx-tiles`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Section heading. |
| `text` | text, max 600 | no | Lead paragraph under the heading. |
| `tiles` | array of 2–5 × object | yes | Two to five tiles. |
| `tiles[].image` | image URL | yes | Tile image, portrait, about 900 px wide. |
| `tiles[].title` | text, max 80 | yes | Tile title. |
| `tiles[].subtitle` | text, max 80 | no | Small line under the title. |
| `tiles[].link` | link | yes | Tile target, usually "/category/<slug>" or "/categories". |

### `products`

Products from the store's real catalogue, chosen by rule. The section is hidden while the store has no matching products with an image. Root CSS class: `.lx-section`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Section heading. |
| `text` | text, max 600 | no | Lead paragraph under the heading. |
| `source` | `"newest"` \| `"featured"` \| `"price_low"` \| `"price_high"` | no (`"newest"`) | "newest" = most recently added. "featured" = products the owner marked as featured (falls back to newest when none are marked). "price_low" / "price_high" = sorted by price. |
| `category` | slug | no | Only products of the category with this slug (and its sub-categories). If the store has no such category the section shows products from the whole catalogue. Cannot be combined with source "featured". |
| `limit` | integer 2–24 | no (`8`) | How many products to show. |
| `layout` | `"rail"` \| `"grid"` | no (`"rail"`) | "rail" = one horizontally scrolling row. "grid" = wrapped grid. |
| `tone` | `"plain"` \| `"tint"` | no (`"plain"`) | "tint" paints the section with the muted colour. |
| `button` | object | no | Outlined button under the products. |
| `button.label` | text, max 60 | yes | Button text. |
| `button.link` | link | yes | Where the button goes. |

### `editorial`

A large image next to a block of text (story, about us). Root CSS class: `.lx-editorial`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `image` | image URL | yes | Image, about 1200 px wide. |
| `imageAlt` | text, max 160 | no | Image description. Defaults to the title. |
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Heading. |
| `paragraphs` | array of 1–4 × text, max 1200 | no | Body paragraphs. |
| `points` | array of 1–4 × object | no | Short highlighted points under the paragraphs. |
| `points[].title` | text, max 80 | yes | Point title. |
| `points[].text` | text, max 300 | no | Point detail. |
| `button` | object | no | Outlined button. |
| `button.label` | text, max 60 | yes | Button text. |
| `button.link` | link | yes | Where the button goes. |
| `reverse` | boolean | no (`false`) | true puts the image on the right. |
| `tone` | `"plain"` \| `"tint"` \| `"dark"` | no (`"plain"`) | Background: page colour, muted colour, or the secondary (dark) colour with light text. |

### `banner`

Full-width image with a centred message and one button. Root CSS class: `.lx-banner`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `image` | image URL | yes | Background image, landscape, about 1920 px wide. |
| `imageMobile` | image URL | no | Portrait image used below 768 px. |
| `tone` | `"dark"` \| `"light"` | no (`"dark"`) | "dark" = dark image, light text. "light" = light image, dark text. |
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Heading. |
| `text` | text, max 600 | no | Sentence under the heading. |
| `button` | object | no | Solid button. |
| `button.label` | text, max 60 | yes | Button text. |
| `button.link` | link | yes | Where the button goes. |

### `values`

A row of short service promises (shipping, returns, support). Root CSS class: `.lx-values`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `items` | array of 2–6 × object | yes | Two to six items. |
| `items[].icon` | `"none"` \| `"heart"` \| `"box"` \| `"shield"` \| `"chat"` \| `"repeat"` \| `"ruler"` \| `"bank"` \| `"lace"` \| `"paw"` \| `"pouch"` | no (`"none"`) | Line drawing above the title; "none" shows no drawing. |
| `items[].title` | text, max 80 | yes | Item title. |
| `items[].text` | text, max 200 | no | One sentence. |
| `items[].link` | link | no | Makes the whole item a link. |

### `steps`

Numbered steps ("how it works"). Numbers are added automatically. Root CSS class: `.lx-steps`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Section heading. |
| `text` | text, max 600 | no | Lead paragraph under the heading. |
| `steps` | array of 2–6 × object | yes | Two to six steps. |
| `steps[].title` | text, max 80 | yes | Step title. |
| `steps[].text` | text, max 300 | no | Step detail. |
| `note` | text, max 300 | no | Small print under the steps. |
| `button` | object | no | Solid button under the steps. |
| `button.label` | text, max 60 | yes | Button text. |
| `button.link` | link | yes | Where the button goes. |
| `tone` | `"plain"` \| `"tint"` | no (`"plain"`) | "tint" paints the section with the muted colour. |

### `faq`

Collapsible questions and answers (also published as FAQ structured data). Root CSS class: `.lx-faq`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Section heading. |
| `text` | text, max 600 | no | Lead paragraph under the heading. |
| `items` | array of 1–12 × object | yes | Questions. |
| `items[].question` | text, max 200 | yes | The question. |
| `items[].answer` | text, max 1200 | yes | The answer, plain text. |

### `prose`

Columns of longer text on the muted background (brand or category descriptions). Root CSS class: `.lx-prose`.

| Key | Type | Required (default) | Meaning |
|---|---|---|---|
| `eyebrow` | text, max 80 | no | Small label above the title. |
| `title` | text, max 160 | no | Section heading. |
| `columns` | array of 1–4 × object | yes | One to four columns. |
| `columns[].heading` | text, max 80 | yes | Column heading. |
| `columns[].text` | text, max 1200 | yes | Column text. |
| `columns[].link` | object | no | Text link under the column. |
| `columns[].link.label` | text, max 60 | yes | Button text. |
| `columns[].link.link` | link | yes | Where the button goes. |

Icons available for `values` items: `none`, `heart`, `box`, `shield`, `chat`, `repeat`, `ruler`, `bank`, `lace`, `paw`, `pouch`. They are plain line drawings. Leave `icon` out unless the owner asked for icons.

## Fonts

`tokens.fonts.heading` and `tokens.fonts.body` must each be one of these 102 Google Fonts families, spelled exactly as written here (case and spaces matter). The storefront loads them itself in weights 400, 500, 600 and 700; families with fewer weights load the ones they have. No other font can be loaded, and CSS cannot load fonts.

Inter, Roboto, Open Sans, Montserrat, Poppins, Lato, Nunito, Nunito Sans, Work Sans, DM Sans, Manrope, Plus Jakarta Sans, Outfit, Space Grotesk, Sora, Raleway, Rubik, Karla, Mulish, Figtree, Urbanist, Jost, Josefin Sans, Quicksand, Lexend, Barlow, IBM Plex Sans, Archivo, Bricolage Grotesque, Syne, Unbounded, Instrument Sans, Noto Sans, Libre Franklin, Albert Sans, Onest, Geist, Hanken Grotesk, Red Hat Display, Be Vietnam Pro, Public Sans, Schibsted Grotesk, Source Sans 3, PT Sans, Ubuntu, Heebo, Sen, Epilogue, Chivo, Gabarito, League Spartan, Titillium Web, Exo 2, Kanit, Fredoka, Baloo 2, Comfortaa, Oswald, Roboto Condensed, Bebas Neue, Anton, Teko, Archivo Black, Alfa Slab One, Righteous, Fraunces, Playfair Display, Cormorant Garamond, Cormorant, Lora, Merriweather, EB Garamond, Libre Baskerville, Crimson Pro, Source Serif 4, Spectral, Bitter, Marcellus, DM Serif Display, Bodoni Moda, Italiana, Tenor Sans, Abril Fatface, Instrument Serif, Noto Serif, Newsreader, Cinzel, Prata, Gloock, Young Serif, Zilla Slab, Roboto Slab, Literata, PT Serif, Alegreya, Cardo, Yeseva One, Caveat, Pacifico, Dancing Script, Space Mono, JetBrains Mono

Pick a body font that is comfortable at small sizes. Display and script families (for example Bebas Neue, Abril Fatface, Pacifico) are for `heading` only.

## Custom CSS

`css` is optional. Without it the theme is already complete: tokens style every component. Use CSS to give the design its own character (type scale, letter spacing, spacing, section backgrounds made of colours and gradients, borders, shadows, hover effects, simple animations).

### How it is applied

- The CSS is loaded on the home, category, product, search and content pages, after the storefront's own styles. It is never loaded on the cart, checkout and payment pages or on the customer account, login and registration pages; those pages take the theme's tokens and fonts only.
- Importing a theme file requires the store to be on the Growth plan or higher (Growth, Pro, Enterprise); on the Start plan the owner can check a file but not apply it.
- Every selector is automatically prefixed with the store body selector `body[data-store-theme='luxe'][data-store-custom]`, so `.lx-title { ... }` becomes `body[data-store-theme='luxe'][data-store-custom] .lx-title { ... }`. A selector that starts with `body`, `html` or `:root` is mapped onto that body selector itself (`:root { --x: 1px }` and `body { ... }` both work). Because of the prefix your rules override the storefront's rules of the same shape without `!important`; use `!important` only when a rule visibly does not apply.
- Keep selectors specific. Do not restyle bare elements such as `input`, `button`, `a`, `div` or `*` globally: they also exist in the header, search and product pages.

### Rules (a violation rejects the whole file)

- At most 20000 characters.
- Allowed at-rules: `@media`, `@supports`, `@keyframes` only. `@import`, `@font-face`, `@charset`, `@namespace`, `@layer`, `@container`, `@property` and every other at-rule are rejected.
- No `url(...)` at all, and no `image-set()`, `image()`, `src()`, `cross-fade()`, `element()` or `attr()`. CSS cannot load images or fonts; images belong in section fields. Gradients (`linear-gradient`, `radial-gradient`, `conic-gradient`) are allowed.
- No URLs (`://`), no `data:` URIs, no `javascript:`, no `expression()`, no `behavior`, no `-moz-binding`.
- No `<` character anywhere (so no HTML and no `</style>`), and no backslash: CSS escapes such as `\201C` are rejected. Type the character itself, e.g. `content: "—"`.
- No nesting. Every rule is `selector { declarations }` at the top level or directly inside `@media` / `@supports` (which may be nested up to 3 levels). `&` is not supported.
- Every declaration is `property: value`. The character `@` is not allowed inside values. Quotes and parentheses must be balanced.
- Selectors may use element names, classes, ids, attribute selectors, pseudo-classes and pseudo-elements and the combinators `>`, `+`, `~`. `html` and `:root` may only stand alone or in front of a descendant selector (`html.foo` is rejected).
- Comments `/* ... */` are allowed and removed.
- Inside the JSON file the CSS is one string: write line breaks as `\n` and do not use double quotes in the CSS unless you escape them as `\"` (prefer single quotes in CSS).

### What you may target

Only the names in this list are stable. Any other class name or element structure you may know from a rendered store can change without notice; do not target it.

CSS variables (read them with `var(...)`, or override them on `:root`):

| Variable | Value |
|---|---|
| `--color-primary`, `--color-secondary`, `--color-accent`, `--color-background`, `--color-foreground`, `--color-muted`, `--color-border` | the seven token colours |
| `--font-heading`, `--font-body` | the two font stacks |
| `--lx-max` | maximum content width |
| `--lx-pad` | horizontal page padding |

Attributes on the wrapper of every home page section:

| Selector | Matches |
|---|---|
| `[data-section="<id>"]` | the one section with that id (see `id` above) |
| `[data-section-type="<type>"]` | every section of that type, e.g. `[data-section-type="products"]` |

Classes:

| Class | Element |
|---|---|
| `.lx-header` | site header (sticky bar with logo, navigation, search and cart) |
| `.lx-topbar` | thin announcement strip above the header |
| `.lx-logo` | store name or logo in the header |
| `.lx-nav` | main navigation in the header |
| `.lx-footer` | site footer (on the `secondary` colour) |
| `.lx-eyebrow` | small upper-case label above headings |
| `.lx-title` | section heading |
| `.lx-lead` | lead paragraph under a section heading |
| `.lx-btn` | every button; with `.lx-btn--solid`, `.lx-btn--outline` or `.lx-btn--ghost` |
| `.lx-link` | underlined text link |
| `.lx-section` | padded section wrapper (tiles, products, steps, faq, prose); `.lx-section--tint` when tinted |
| `.lx-head` | block that holds eyebrow, title and lead of a section |
| `.lx-hero` | hero; slides are `.lx-hero__slide` with `.lx-hero__slide--dark` or `.lx-hero__slide--light` |
| `.lx-hero__content`, `.lx-hero__title`, `.lx-hero__text` | text column of a slide, its headline, its paragraph |
| `.lx-hero__veil` | gradient overlay between the image and the text |
| `.lx-marquee` | scrolling band |
| `.lx-tiles`, `.lx-tile`, `.lx-tile__text` | tile grid, one tile, its caption |
| `.lx-rail`, `.lx-grid` | product row / product grid |
| `.lx-card` | product card; `.lx-card__media` (image area), `.lx-card__name`, `.lx-card__price` |
| `.lx-badge` | badge on a product card (sale, sold out) |
| `.lx-editorial` | editorial section; `.lx-editorial__media`, `.lx-editorial__body`; modifiers `.lx-editorial--tint`, `.lx-editorial--dark`, `.lx-editorial--reverse` |
| `.lx-points` | list of points inside an editorial section |
| `.lx-banner`, `.lx-banner__content`, `.lx-banner__veil` | banner, its text block, its overlay |
| `.lx-values`, `.lx-value` | values row, one item |
| `.lx-steps`, `.lx-step`, `.lx-step__no` | steps list, one step, its number |
| `.lx-faq`, `.lx-faq__item` | FAQ list, one question (a `details` element) |
| `.lx-prose` | grid of text columns |

Examples of valid CSS:

```css
.lx-title { letter-spacing: -0.02em; }
.lx-btn--solid { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
[data-section="story"] .lx-title { max-width: 14em; }
[data-section-type="products"] .lx-card__name { font-weight: 600; }
.lx-footer { background: linear-gradient(180deg, var(--color-secondary), #000); }
@media (min-width: 1100px) { .lx-hero__title { font-size: 4.4rem; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
```

Do not hide or disguise prices, legal texts or the add-to-cart controls, and do not cover the page with fixed overlays.

## Complete example

This file is valid: it passes the validator and conforms to the JSON Schema. Use it as the model for structure, not as content to copy.

```json
{
  "shopyzer_theme": 1,
  "name": "Northlight",
  "description": "Calm, light storefront with rounded shapes, a deep green accent and generous white space.",
  "author": "Shopyzer",
  "tokens": {
    "colors": {
      "primary": "#2F5D50",
      "secondary": "#1E2A26",
      "accent": "#C9A46B",
      "background": "#FBFAF7",
      "foreground": "#1C1B19",
      "muted": "#F1EEE7",
      "border": "#E4DFD5"
    },
    "fonts": {
      "heading": "Manrope",
      "body": "Inter"
    },
    "radius": "lg",
    "buttons": "pill",
    "headings": {
      "case": "normal",
      "weight": 600
    },
    "layout": {
      "productColumns": 4,
      "contentWidth": "standard"
    }
  },
  "home": [
    {
      "type": "hero",
      "slides": [
        {
          "image": "https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1920&q=80",
          "tone": "dark",
          "eyebrow": {
            "en": "New season",
            "tr": "Yeni sezon"
          },
          "title": {
            "en": "Everyday pieces, made to last",
            "tr": "Uzun ömürlü günlük parçalar"
          },
          "text": {
            "en": "A small collection chosen with care and shipped from our own studio.",
            "tr": "Özenle seçilmiş, kendi atölyemizden gönderilen küçük bir koleksiyon."
          },
          "button": {
            "label": {
              "en": "Shop the collection",
              "tr": "Koleksiyonu keşfet"
            },
            "link": "/products"
          },
          "secondaryButton": {
            "label": {
              "en": "Our story",
              "tr": "Hikayemiz"
            },
            "link": "/about"
          }
        },
        {
          "image": "https://images.unsplash.com/photo-1558171813-4c088753af8f?w=1920&q=80",
          "tone": "dark",
          "eyebrow": {
            "en": "The edit",
            "tr": "Seçki"
          },
          "title": {
            "en": "Quiet details, honest materials",
            "tr": "Sade detaylar, dürüst malzemeler"
          },
          "button": {
            "label": {
              "en": "Browse categories",
              "tr": "Kategorilere göz at"
            },
            "link": "/categories"
          }
        }
      ]
    },
    {
      "type": "marquee",
      "items": [
        {
          "en": "Carefully packed",
          "tr": "Özenli paketleme"
        },
        {
          "en": "Secure payment",
          "tr": "Güvenli ödeme"
        },
        {
          "en": "Easy returns",
          "tr": "Kolay iade"
        },
        {
          "en": "Personal support",
          "tr": "Kişisel destek"
        }
      ]
    },
    {
      "type": "tiles",
      "id": "collections",
      "eyebrow": {
        "en": "Collections",
        "tr": "Koleksiyonlar"
      },
      "title": {
        "en": "Shop by category",
        "tr": "Kategoriye göre keşfet"
      },
      "tiles": [
        {
          "image": "https://images.unsplash.com/photo-1595777457583-95e059d581b8?w=900&q=80",
          "title": {
            "en": "Clothing",
            "tr": "Giyim"
          },
          "link": "/category/clothing"
        },
        {
          "image": "https://images.unsplash.com/photo-1548036328-c9fa89d128fa?w=900&q=80",
          "title": {
            "en": "Bags",
            "tr": "Çanta"
          },
          "link": "/category/bags"
        },
        {
          "image": "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=900&q=80",
          "title": {
            "en": "Jewellery",
            "tr": "Takı"
          },
          "link": "/categories"
        }
      ]
    },
    {
      "type": "products",
      "id": "new-arrivals",
      "eyebrow": {
        "en": "Just in",
        "tr": "Yeni gelenler"
      },
      "title": {
        "en": "New arrivals",
        "tr": "Yeni ürünler"
      },
      "source": "newest",
      "limit": 8,
      "layout": "rail",
      "button": {
        "label": {
          "en": "View all products",
          "tr": "Tüm ürünleri gör"
        },
        "link": "/products"
      }
    },
    {
      "type": "editorial",
      "id": "story",
      "image": "https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1200&q=80",
      "tone": "tint",
      "eyebrow": {
        "en": "About us",
        "tr": "Hakkımızda"
      },
      "title": {
        "en": "A small shop that knows its products",
        "tr": "Ürünlerini tanıyan küçük bir mağaza"
      },
      "paragraphs": [
        {
          "en": "Every piece is selected by hand. We keep the range small so that we can stand behind each item.",
          "tr": "Her parça elle seçilir. Her ürünün arkasında durabilmek için ürün yelpazesini dar tutuyoruz."
        }
      ],
      "points": [
        {
          "title": {
            "en": "Selected by hand",
            "tr": "Elle seçilir"
          },
          "text": {
            "en": "No endless catalogue.",
            "tr": "Uçsuz bucaksız katalog yok."
          }
        },
        {
          "title": {
            "en": "Honest descriptions",
            "tr": "Dürüst açıklamalar"
          },
          "text": {
            "en": "Materials and sizes stated clearly.",
            "tr": "Malzeme ve ölçüler açıkça belirtilir."
          }
        }
      ],
      "button": {
        "label": {
          "en": "Read our story",
          "tr": "Hikayemizi okuyun"
        },
        "link": "/about"
      }
    },
    {
      "type": "products",
      "id": "favourites",
      "eyebrow": {
        "en": "Favourites",
        "tr": "Favoriler"
      },
      "title": {
        "en": "Most loved",
        "tr": "En sevilenler"
      },
      "source": "featured",
      "limit": 8,
      "layout": "grid"
    },
    {
      "type": "values",
      "items": [
        {
          "title": {
            "en": "Free shipping",
            "tr": "Ücretsiz kargo"
          },
          "text": {
            "en": "On orders above the limit shown at checkout.",
            "tr": "Ödeme adımında belirtilen tutarın üzerindeki siparişlerde."
          },
          "link": "/shipping"
        },
        {
          "title": {
            "en": "Easy returns",
            "tr": "Kolay iade"
          },
          "text": {
            "en": "Return unused items in their packaging.",
            "tr": "Kullanılmamış ürünleri ambalajıyla iade edin."
          },
          "link": "/returns"
        },
        {
          "title": {
            "en": "Real support",
            "tr": "Gerçek destek"
          },
          "text": {
            "en": "A person answers every message.",
            "tr": "Her mesajı bir insan yanıtlar."
          },
          "link": "/contact"
        }
      ]
    },
    {
      "type": "banner",
      "image": "https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?w=1920&q=80",
      "tone": "dark",
      "eyebrow": {
        "en": "Gift ideas",
        "tr": "Hediye fikirleri"
      },
      "title": {
        "en": "Something special for someone special",
        "tr": "Özel biri için özel bir şey"
      },
      "button": {
        "label": {
          "en": "Find a gift",
          "tr": "Hediye bul"
        },
        "link": "/products"
      }
    },
    {
      "type": "faq",
      "eyebrow": {
        "en": "Good to know",
        "tr": "Bilmekte fayda var"
      },
      "title": {
        "en": "Frequently asked questions",
        "tr": "Sık sorulan sorular"
      },
      "items": [
        {
          "question": {
            "en": "How long does delivery take?",
            "tr": "Teslimat ne kadar sürer?"
          },
          "answer": {
            "en": "Orders are prepared within one working day and handed to the carrier with a tracking number.",
            "tr": "Siparişler bir iş günü içinde hazırlanır ve takip numarasıyla kargoya verilir."
          }
        },
        {
          "question": {
            "en": "Can I return an item?",
            "tr": "Ürünü iade edebilir miyim?"
          },
          "answer": {
            "en": "Yes. Unused items can be returned in their original packaging within the period stated on the returns page.",
            "tr": "Evet. Kullanılmamış ürünler, iade sayfasında belirtilen süre içinde orijinal ambalajıyla iade edilebilir."
          }
        }
      ]
    }
  ],
  "css": "/* Buttons: sentence case instead of wide capitals */\n.lx-btn { letter-spacing: 0.02em; text-transform: none; font-size: 0.92rem; font-weight: 600; }\n.lx-btn--solid { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }\n.lx-btn--solid:hover { background: var(--color-foreground); border-color: var(--color-foreground); }\n/* Headings: tighter tracking */\n.lx-title, .lx-hero__title { letter-spacing: -0.025em; }\n.lx-eyebrow { letter-spacing: 0.16em; color: var(--color-primary); }\n/* The scrolling band on the muted colour */\n.lx-marquee { background: var(--color-muted); border-color: transparent; }\n.lx-card__name { font-weight: 500; }\n[data-section=\"story\"] .lx-title { max-width: 14em; }\n@media (min-width: 1100px) {\n  .lx-hero__title { font-size: 4.4rem; line-height: 1.04; }\n}"
}
```

## Checklist before you answer

Verify each point against your file. If one fails, fix the file first.

1. The answer has exactly one ```` ```json ```` block and it contains the whole file, with no "..." and no comments.
2. The first key is `"shopyzer_theme": 1` (a number, not a string). `name`, `description`, `tokens` and `home` are present.
3. `tokens.colors` has all seven keys, each a hex colour. `foreground` contrasts strongly with `background`; `secondary` is dark.
4. Both fonts are spelled exactly as in the font list.
5. Every key in the file appears in this document at that exact place. No `null`, no empty strings, no empty arrays.
6. `home` has 1 to 20 sections, at most one `hero`, at least one `products` section, and every explicit `id` is unique.
7. Every array respects its minimum and maximum length (for example `marquee.items` 2 to 12, `tiles.tiles` 2 to 5, `values.items` 2 to 6).
8. Every text is within its length limit and contains no HTML. Every locale map has `en` and uses only allowed locale codes.
9. Every image is an absolute `https://` URL to a JPG, PNG, WebP or AVIF file that you are confident exists.
10. Every link is a fixed target, `/category/<slug>`, `/page/<slug>` or an `https://` URL. Category slugs are ones the owner gave you.
11. No `products` section combines `source: "featured"` with `category`.
12. If there is `css`: at most 20000 characters; only `@media`, `@supports`, `@keyframes`; no `url(`, no `://`, no `<`, no backslash except JSON's own `\n` and `\"`; no nesting; only the class names and variables listed above.
13. The JSON parses: balanced braces, no trailing commas, double-quoted keys and strings.

## Common errors

The validator reports each problem as `<JSON path>: <message>`, for example `$.home[2].tiles[0].image: must be an absolute https:// URL`. `$` is the file, `$.home[2]` is the third section.

| Error | Cause and fix |
|---|---|
| `unknown key "..."` | A key this spec does not define at that place (typical: `subtitle` on a section that has `text`, `buttonText`, `href`, `url`, `items` instead of `tiles`). Use the exact key from the table of that section. |
| `is required but missing` | Add the key. Required keys are marked "yes" in the tables. |
| `must be one of ...` | The value is not in the allowed list (typical: `radius: "8px"`, `source: "best_selling"`, `tone: "muted"`). |
| `is not in the font whitelist` | Use a family from the font list with its exact spelling, e.g. `"DM Sans"`, not `"DM-Sans"` or `"dm sans"`. |
| `must be a hex colour` | Write `#RRGGBB`. No colour names, `rgb()` or `hsl()`. |
| `is a locale map without an "en" entry` | Add `"en"` to that map. |
| `must be plain text. HTML tags are not allowed.` | Remove tags such as `<br>` or `<strong>`. |
| `must be an absolute https:// URL` | Image is relative, `http://`, or a `data:` URI. |
| `is not a valid link` | Use a fixed target such as `/products`, or `/category/<slug>`. Paths like `/shop`, `/collections/all` or `#section` do not exist. |
| `has N items; at least M required` / `at most M allowed` | Change the array length. |
| `a theme may contain only one "hero" section` | Turn further heroes into `banner` sections. |
| `"..." is already the id of $.home[N]` | Give each section a different `id`, or remove the ids. |
| `CSS line N: url() is not allowed` | Remove the image or font reference from the CSS. |
| `CSS line N: "@..." is not allowed` | Only `@media`, `@supports` and `@keyframes` exist in theme CSS. |
| `CSS line N: Nested rules are not supported` | Flatten the rule: repeat the full selector instead of nesting. |
| `CSS line N: Backslashes (CSS escapes) are not allowed` | Type the character itself instead of `\XXXX`. |
| `The file is not valid JSON` | Usually a trailing comma, a comment, a single-quoted string or an unescaped double quote or line break inside the `css` string. |
| `The theme file is N bytes ...; the limit is 90000` | Shorten texts, remove languages or sections. |
