# Publish a theme

> List a theme for every shop on Storeware, release new versions with the CLI, set a price, and what the checks look for.

Source: https://storeware.ai/docs/themes/selling

## Who can publish

Any organisation with a developer profile. It is the same profile apps use: set it up in the admin under **Developer**, confirm your contact address, and accept the Developer Terms. Then the organisation can list themes, apps or both.

## Make a listing

A listing is the theme's card and page in the theme catalogue. Its address is lowercase letters, numbers and single hyphens, and it is yours for good.

```bash
npx @storeware/cli theme listing create --slug harbour --name Harbour --tagline "Calm pages for a home shop"
```

The author shown on the card is your organisation's name. You can change the name, tagline, description and homepage later, in the admin or with `theme listing edit`.

## Release a version

A version is a theme file (`theme.json`, the same file `theme pull` writes) and the pictures it names. Put preview pictures for the card in a `previews` folder beside it, eight at most.

```bash
npx @storeware/cli theme release ./harbour --listing harbour --note "Wider product pictures"
```

The CLI checks the file the way the server will, sends it as the next draft version, uploads its pictures and publishes it. Add `--draft` to stop before publishing.

Versions are numbered by Storeware, one after another. A published version never changes: to change a design, release a new version. Shops that installed an older version keep it.

## What the checks look for

Nothing about a theme is reviewed by a person before it is listed, so the checks are strict and refuse the whole version with every problem listed at once:

- every band and setting must be one the theme schema knows;
- bands that make claims a theme author cannot know about a shop (reviews, partner logos, countdowns) are refused;
- every picture a band names must travel with the version;
- band words in each language must fit the shapes a shop accepts.

Add `--check` to `theme release` to run them on your folder and send nothing. A few checks (the languages and band ids in your words) only run on the server, and come back in the same list when you release.

## Your own stylesheet

A theme can carry a stylesheet of your own. Put it in a `theme.css` beside `theme.json`, and it styles the design your file names in `art.theme` (one of Storeware's twelve, or `base`). It is sent with the version and checked like everything else.

Nothing in a stylesheet runs, and it never outranks the platform. Storeware rebuilds it from what it parsed, minified and wholly inside `@layer theme`, so it can change how the design looks and nothing else. It is refused if it:

- loads anything: `url()`, `@import`, `@font-face`, `image-set()` and `src()` are not allowed. Pictures belong in a band's picture setting, and typefaces are Storeware's own, through `var(--sw-face-display)` and the other `--sw-face-*` properties;
- uses `!important`, `@property`, `@namespace`, `@charset` or `@page`;
- names one of the parts Storeware draws on every shop: the consent banner, the trade bands, the report link, or the currency and language choices;
- could hide them, by setting `display: none`, a low `opacity`, `visibility`, a transform, a filter, a clip or an animation on the page itself or on anything that holds one of those parts;
- is over 40 KB once cleaned. Every shopper downloads it on every page.

A shop links your stylesheet only while it wears the design you wrote it over, and never on the basket, the checkout or an account page.

### The classes you can style

Each design's class names are published as its markup contract, generated from the designs themselves and shipped in `@storeware/theme-schema`. A selector naming a class outside the contract is a warning rather than a refusal: it may match nothing, or stop matching without notice. A class a design stops using moves to a retired list with the day it left, so the warning says why.

### While you write it

```bash
npx @storeware/cli theme dev ./harbour
```

`theme dev` runs every check `theme release` runs, `theme.css` included, each time you save a file in the folder. It sends nothing and needs no sign in. Add `--once` to check once and stop.

To see it on a shop, release and publish it, install it on a development store, and open its preview from that store's theme library. Installing changes nothing a shopper sees until the theme is switched to and published.

## Set a price

A theme is free until you give it a price. A price is what one shop pays, once, and every later version you release is included for that shop. Set it in four currencies by hand, the way you price an app; Storeware never converts one into another.

```bash
npx @storeware/cli theme listing edit harbour --price usd=49,gbp=39,eur=45,inr=3999
```

`--price free` makes it free again. You can also set the price on the theme's page in the developer area. A new price is what the next shop pays. Shops that bought it keep it, and so do shops that installed it while it was free.

### How a merchant buys it

A merchant installs any theme for nothing, switches to it and previews it on their own shop. Publishing it is what needs buying it first: the theme's page in their admin shows the price in the currency their organisation is billed in, and a Buy button charges the card they keep for app charges. Their shop owns it from then on.

### What you are paid

Storeware takes no share. You pay only Stripe's own costs for taking the payment, the same as for an app, and each sale joins your earnings and pays out on the same schedule. Your Sales section on the theme's page lists each shop that bought it.

Storeware may refund a merchant within fourteen days of a sale when the theme does not work as its listing says. A refund takes the whole price back out of your earnings, Stripe's fee for the sale included, since Stripe keeps that fee when a payment is refunded. That shop then stops wearing your stylesheet.

### Test sales

Until Storeware turns on real payments for your theme, and while your payouts are not set up, every sale is a test: it is bought, licensed and shows in your Sales with nothing charged. Sales to your own shops and to development stores are always tests.

## Where merchants find it

Every listed theme has a page on [storeware.ai/themes](https://storeware.ai/themes), open to anyone, with its previews, its price, the design it is written over and its ratings. Its Try it on your shop button takes a merchant to the theme in their own admin. Merchants also find themes in Themes in their admin, and their assistant can suggest yours when they describe a look they want. The order is by ratings and by how many shops wear a theme. Nothing in it is paid for.

The same directory is open to read with no key: `GET https://api.storeware.ai/api/v1/public/themes` searches it, and `/api/v1/public/themes/{slug}` reads one theme.

## Ratings

A shop may rate your theme once it installed it at least three days before, from a shop that sells. A development or demo shop cannot rate, and neither can your own shops. Stars alone show at once; words are read by moderation first.

You see every rating in the Ratings section of the theme's page in the developer area. You can reply once to each, in public, and change or take down your reply. If a rating breaks the rules (it is not from a real customer, it was paid for, it is about something else), ask Storeware to look at it. It keeps counting until a person decides.

## Taking a theme down

`theme withdraw harbour 3` takes version 3 out of the catalogue. A withdrawn version never comes back under its number. Shops that installed it keep it.

Storeware can suspend a listing that breaks the Developer Terms. A suspended listing leaves the catalogue, cannot be changed or published, and shows you the reason in the developer area. Write to hi@storeware.ai to talk about it.
