@shop-on/create-theme 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.md +2 -2
- package/package.json +1 -1
- package/template/.claude/skills/theme-dev/SKILL.md +3 -1
- package/template/.claude/skills/theme-dev/recipes/custom-sections.md +246 -0
- package/template/.claude/skills/theme-dev/recipes/input-settings.md +5 -3
- package/template/LICENSE.md +2 -2
- package/template/README.md +3 -3
- package/template/package.json +10 -10
package/dist/LICENSE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Shopon Theme Development License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 Cody LLC. All rights reserved except as granted below.
|
|
4
4
|
|
|
5
5
|
"The Software" is this package, its source, and its documentation. "The
|
|
6
|
-
Platform" is
|
|
6
|
+
Platform" is Shopon, the commerce platform operated by Cody LLC.
|
|
7
7
|
|
|
8
8
|
## 1. Grant
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -98,6 +98,7 @@ Pick the matching recipe and follow it end-to-end:
|
|
|
98
98
|
- [Wire a picker (image/video/menu/collection/product_list/metaobject)](recipes/picker-data.md)
|
|
99
99
|
- [Dynamic sources (editor "dynamic values")](recipes/dynamic-sources.md) — the loader-side resolution pass; raw `product_attribute:title` on the storefront means it's missing
|
|
100
100
|
- [Design or optimize data fetching](recipes/data-fetching.md) — SSR, payload sizing, lazy interaction data, route loaders
|
|
101
|
+
- [Let AI build sections and blocks](recipes/custom-sections.md) — opt in with `custom-section` / `custom-block` so a connected AI assistant can write a section when none you ship fits
|
|
101
102
|
- [Add buyer auth to a theme](recipes/customer-auth.md) — consume the `@shop-on/theme-server` auth surface: bouncers, handoff consume, customer-aware cart, logout, header account control
|
|
102
103
|
- [Add a translation key](recipes/locales.md)
|
|
103
104
|
- [Input setting types reference](recipes/input-settings.md) — every supported `type`, value shape, gotchas
|
|
@@ -267,13 +268,14 @@ Write the notes **for the merchant, not the diff**: what changes in their store,
|
|
|
267
268
|
|
|
268
269
|
## AI guide + recipes (`src/ai/`)
|
|
269
270
|
|
|
270
|
-
AI assistants connected to a store (Claude, ChatGPT)
|
|
271
|
+
AI assistants connected to a store (Claude, ChatGPT) and `shop-on theme mcp` edit a theme through one set of editor tools. What they know about _this_ theme comes from `src/ai/`: `get_theme_guide` serves `guide.md`, `list_recipes` / `apply_recipe` serve `recipes/<handle>.json`.
|
|
271
272
|
|
|
272
273
|
- **`guide.md`** — a designer's brief for the model, plain Markdown, ≤ 16 KB: what the theme is for, which section does which job, the settings that matter, what to avoid. Section, block and setting handles in backticks.
|
|
273
274
|
- **`recipes/<handle>.json`** — named page builds, ≤ 20, each ≤ 32 KB, handle `[a-z0-9-]`. Shape: `{ "name", "description", "params": { "<id>": { "type": "text" | "collection" | "image" | …, "label", "required" } }, "position": "append" | "prepend" | "replace", "sections": [{ "type", "settings", "blocks" }] }`; a param is used as `"{{id}}"` inside a setting value.
|
|
274
275
|
- **The rule is strict:** `ai/` holds exactly `guide.md` and `recipes/*.json`. No other file, subdir or dotfile — the build and the upload both refuse it.
|
|
275
276
|
- **Recipes are checked at build — but only shallowly.** Every section/block type and setting id must exist, or `pnpm build` fails. Setting values are checked only when a merchant applies the recipe: a select value outside its options, an out-of-range number or a `palette:` ref the shop no longer has makes `apply_recipe` refuse the whole recipe. Keep literal values to the schema's options; leave colours to the theme's defaults.
|
|
276
277
|
- **Optional params drop their line.** The editor tools store a rich-text value with nothing to show as `""` — `<p>{{tagline}}</p>` or `<a href="tel:{{phone}}">{{phone}}</a>` with the param omitted, or `<p> </p>` — so a theme that hides empty rich text drops it. A plain `text` setting, a button label or an FAQ row's question is not emptied for you: make that param required, or check the block renders nothing when it is blank.
|
|
278
|
+
- **Custom sections need a guide section too.** If the theme ships `custom-section` / `custom-block`, `guide.md` says how to style one for this theme: see [custom-sections.md](recipes/custom-sections.md#6-tell-the-ai-how-to-style-for-your-theme).
|
|
277
279
|
- **Keep it in step with the sections.** Adding, renaming or removing a section or block, or changing a setting the guide names, means editing `guide.md` and any recipe that uses it in the same change.
|
|
278
280
|
|
|
279
281
|
## Building in the editor (Save to source)
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Let AI build sections and blocks (custom sections)
|
|
2
|
+
|
|
3
|
+
When no section your theme ships fits what a merchant asks for ("a comparison table", "our three stores with opening hours"), an AI assistant connected to the store can write one. It writes Liquid, the platform validates it, and your theme renders the result. Your theme opts in by shipping two types:
|
|
4
|
+
|
|
5
|
+
- `sections/custom-section.{json,tsx}`: an AI-built section, a band of its own on the page.
|
|
6
|
+
- `blocks/custom-block.{json,tsx}`: an AI-built block inside a section that lists it (the product page's buy column, say).
|
|
7
|
+
|
|
8
|
+
Each file is the **capability gate** for its feature. A theme version without `custom-section` gets no custom sections, and one without `custom-block` gets no custom blocks. You can ship either one alone.
|
|
9
|
+
|
|
10
|
+
## What the AI writes, what you write
|
|
11
|
+
|
|
12
|
+
An instance carries a `definition` field next to its `settings`: `{ settings: SchemaSetting[], liquid: string }`. The AI declares its own settings and writes the template. The values sit in the instance's ordinary `settings`, and its CSS goes in `custom_css`. You never read `definition`: the render pass turns it into HTML and deletes it before the component renders.
|
|
13
|
+
|
|
14
|
+
You write the shell: the schema, a component that draws the finished HTML, and one call in `enrich()`.
|
|
15
|
+
|
|
16
|
+
## 1. The section schema: exactly four settings
|
|
17
|
+
|
|
18
|
+
`src/sections/custom-section.json` declares only the shell, the four ids the contract reserves (`BASE_SETTING_IDS` in `@shop-on/theme-contract/custom-section`): `color_scheme`, `container`, `padding_top` and `padding_bottom`. Leave out `presets`: without one the type never shows in the merchant's "Add section" picker, and the AI adds instances with its own tool, `create_custom_section`. The model reads each setting as `settings.<id>`, so keep the ids exact.
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"name": "t:sections.custom_section",
|
|
23
|
+
"tag": "section",
|
|
24
|
+
"settings": [
|
|
25
|
+
{
|
|
26
|
+
"type": "color_scheme",
|
|
27
|
+
"id": "color_scheme",
|
|
28
|
+
"label": "t:settings.color_scheme",
|
|
29
|
+
"default": "scheme_1"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "select",
|
|
33
|
+
"id": "container",
|
|
34
|
+
"label": "t:settings.content_width",
|
|
35
|
+
"options": [
|
|
36
|
+
{ "value": "small", "label": "t:content_width_options.small" },
|
|
37
|
+
{ "value": "medium", "label": "t:content_width_options.medium" },
|
|
38
|
+
{ "value": "large", "label": "t:content_width_options.large" },
|
|
39
|
+
{ "value": "page", "label": "t:content_width_options.page" },
|
|
40
|
+
{ "value": "full", "label": "t:content_width_options.full" }
|
|
41
|
+
],
|
|
42
|
+
"default": "page"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "range",
|
|
46
|
+
"id": "padding_top",
|
|
47
|
+
"label": "t:settings.padding_top",
|
|
48
|
+
"min": 0,
|
|
49
|
+
"max": 100,
|
|
50
|
+
"step": 4,
|
|
51
|
+
"unit": "px",
|
|
52
|
+
"default": 0
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "range",
|
|
56
|
+
"id": "padding_bottom",
|
|
57
|
+
"label": "t:settings.padding_bottom",
|
|
58
|
+
"min": 0,
|
|
59
|
+
"max": 100,
|
|
60
|
+
"step": 4,
|
|
61
|
+
"unit": "px",
|
|
62
|
+
"default": 0
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Pin the set with a test, so a fifth setting can't slip in:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { BASE_SETTING_IDS } from "@shop-on/theme-contract/custom-section";
|
|
72
|
+
import { expect, it } from "vitest";
|
|
73
|
+
import schema from "./custom-section.json";
|
|
74
|
+
|
|
75
|
+
it("declares exactly the base settings the custom-section contract reserves", () => {
|
|
76
|
+
const ids = schema.settings.flatMap((s) => ("id" in s ? [s.id] : []));
|
|
77
|
+
expect(ids.toSorted()).toEqual(BASE_SETTING_IDS.toSorted());
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## 2. The section component
|
|
82
|
+
|
|
83
|
+
The pass hands you two strings: `customHtml` (the finished markup, `""` when there is nothing to draw) and `customError` (editor preview only, since the pass writes it only when the request carries an editor `sid`). Draw the HTML through `CustomSectionHtml`:
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
import { useTranslations } from "@shop-on/i18n";
|
|
87
|
+
import { CustomSectionHtml } from "@shop-on/theme-react/custom-section-html";
|
|
88
|
+
|
|
89
|
+
const WIDTHS: Record<string, string> = { small: "44rem", medium: "60rem", large: "78rem" };
|
|
90
|
+
|
|
91
|
+
export default function CustomSectionSection({
|
|
92
|
+
sectionId,
|
|
93
|
+
color_scheme = "scheme_1",
|
|
94
|
+
customHtml = null,
|
|
95
|
+
customError = null,
|
|
96
|
+
container = "page",
|
|
97
|
+
padding_top = 0,
|
|
98
|
+
padding_bottom = 0,
|
|
99
|
+
}: {
|
|
100
|
+
sectionId?: string;
|
|
101
|
+
color_scheme?: string | null;
|
|
102
|
+
customHtml?: string | null;
|
|
103
|
+
customError?: string | null;
|
|
104
|
+
container?: string | null;
|
|
105
|
+
padding_top?: number | null;
|
|
106
|
+
padding_bottom?: number | null;
|
|
107
|
+
}) {
|
|
108
|
+
const t = useTranslations("custom_section");
|
|
109
|
+
if (!customError && !customHtml?.trim()) return null;
|
|
110
|
+
|
|
111
|
+
const measure = WIDTHS[container ?? "page"];
|
|
112
|
+
const body = customError ? (
|
|
113
|
+
<p className="border p-4">
|
|
114
|
+
{t("error")}: {customError}
|
|
115
|
+
</p>
|
|
116
|
+
) : (
|
|
117
|
+
<CustomSectionHtml html={customHtml ?? ""} />
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
return (
|
|
121
|
+
<section
|
|
122
|
+
data-section-id={sectionId}
|
|
123
|
+
data-color-scheme={color_scheme ?? undefined}
|
|
124
|
+
className="bg-background text-foreground"
|
|
125
|
+
style={{ paddingTop: `${padding_top ?? 0}px`, paddingBottom: `${padding_bottom ?? 0}px` }}
|
|
126
|
+
>
|
|
127
|
+
<div className={container === "full" ? undefined : "mx-auto max-w-6xl px-6"}>
|
|
128
|
+
{measure ? (
|
|
129
|
+
<div className="mx-auto w-full" style={{ maxWidth: measure }}>
|
|
130
|
+
{body}
|
|
131
|
+
</div>
|
|
132
|
+
) : (
|
|
133
|
+
body
|
|
134
|
+
)}
|
|
135
|
+
</div>
|
|
136
|
+
</section>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
- **Never render `customHtml` through your Custom HTML snippet** or with a bare `dangerouslySetInnerHTML`. The Custom HTML snippet re-activates `<script>` tags, and AI-written markup must never run one. `CustomSectionHtml` doesn't activate scripts, and it hands same-origin link clicks to the router, so internal links navigate client-side and keep the editor's preview.
|
|
142
|
+
- **Empty renders nothing**, as `custom-liquid` does. A section with no output takes no space on the page.
|
|
143
|
+
- Map `container` onto your own width vocabulary. `page` is your theme container (the starter's is `mx-auto max-w-6xl px-6`) and `full` is edge to edge.
|
|
144
|
+
- Keep `color_scheme` even if your theme has no color schemes yet: the id is reserved, and the AI reads it. Put the value on `data-color-scheme` so your scheme CSS applies once you add some.
|
|
145
|
+
|
|
146
|
+
## 3. Run the pass in `enrich()`
|
|
147
|
+
|
|
148
|
+
In `src/server/settings.ts`, after `runEnrichment` (and after the Custom Liquid pass, if your theme has one), call `renderCustomSections`. The enrichment's last phase re-scans string settings, so rendered HTML has to land after it. Import it dynamically, as the other loaders are, so liquidjs stays out of the client bundle:
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
import { isValidLocale } from "@/src/lib/i18n"; // top of the file
|
|
152
|
+
|
|
153
|
+
// inside enrich():
|
|
154
|
+
const [{ renderCustomSections }] = await Promise.all([
|
|
155
|
+
import("@shop-on/theme-loader/custom-sections"),
|
|
156
|
+
// …your other dynamic imports
|
|
157
|
+
]);
|
|
158
|
+
await runEnrichment(loaderConfig, template, enrichAdapter, req);
|
|
159
|
+
|
|
160
|
+
// Only a locale the shop serves may prefix a path: `req.locale` is server-fn
|
|
161
|
+
// input, and a crafted one would turn a site path into another host's.
|
|
162
|
+
const pathLocale = isValidLocale(req.locale) ? req.locale : undefined;
|
|
163
|
+
await renderCustomSections(loaderConfig, template, {
|
|
164
|
+
sid: req.sid,
|
|
165
|
+
locale: req.locale,
|
|
166
|
+
// If your TemplateRequest carries them (the starter's carries only sid + locale):
|
|
167
|
+
// product: req.product, // the route product, product pages only
|
|
168
|
+
// getCollection: req.getCollection, // the route collection, lazily, collection pages only
|
|
169
|
+
localizePath: (path) => (pathLocale ? `/${pathLocale}${path === "/" ? "" : path}` : path),
|
|
170
|
+
});
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
- `product` and `getCollection` are optional. Without them, the template's `product` / `collection` drops are `nil` on the route page, but pickers the AI declared still resolve. Pass them once your product and collection routes load the route resource through `settings.ts` (see [dynamic-sources.md](dynamic-sources.md)).
|
|
174
|
+
- `localizePath` gives the template's `link_url` the request's locale prefix, so a crawler and a no-JS load get the right address. Leave it out and links stay unprefixed until clicked.
|
|
175
|
+
- A page with no enabled custom section loads neither liquidjs nor the validator, so the call costs nothing elsewhere.
|
|
176
|
+
|
|
177
|
+
## 4. Custom blocks (optional)
|
|
178
|
+
|
|
179
|
+
`src/blocks/custom-block.json` declares **no settings**: every setting a block has is one its definition declares, and a type-level id could clash with one.
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
{ "name": "t:blocks.custom_block", "settings": [] }
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The component draws `customHtml` with no shell of its own. The section around it owns the scheme, width and spacing:
|
|
186
|
+
|
|
187
|
+
```tsx
|
|
188
|
+
import { useTranslations } from "@shop-on/i18n";
|
|
189
|
+
import { CustomSectionHtml } from "@shop-on/theme-react/custom-section-html";
|
|
190
|
+
|
|
191
|
+
export default function CustomBlock({
|
|
192
|
+
customHtml = null,
|
|
193
|
+
customError = null,
|
|
194
|
+
}: {
|
|
195
|
+
customHtml?: string | null;
|
|
196
|
+
customError?: string | null;
|
|
197
|
+
}) {
|
|
198
|
+
const t = useTranslations("custom_section");
|
|
199
|
+
if (customError)
|
|
200
|
+
return (
|
|
201
|
+
<p className="border p-4">
|
|
202
|
+
{t("block_error")}: {customError}
|
|
203
|
+
</p>
|
|
204
|
+
);
|
|
205
|
+
return <CustomSectionHtml html={customHtml ?? ""} />;
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Then **list it** in the `blocks` of each section that should take one, typically `main-product`: `{ "type": "custom-block" }`. A container block can list it too. `create_custom_block` refuses any section that doesn't.
|
|
210
|
+
|
|
211
|
+
**Drop empty ones from your spacing.** An AI block that rendered nothing still sits in `blocks`. If the section wraps each block in a row with a gap, skip it with `hasCustomOutput`, or it opens an empty gap:
|
|
212
|
+
|
|
213
|
+
```tsx
|
|
214
|
+
import { hasCustomOutput } from "@shop-on/theme-react/custom-section-html";
|
|
215
|
+
|
|
216
|
+
const visible = blocks.filter((b) => b.type !== "custom-block" || hasCustomOutput(b.settings));
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## 5. Locales
|
|
220
|
+
|
|
221
|
+
Add the display names and the editor-only error labels, in every catalog you ship:
|
|
222
|
+
|
|
223
|
+
- `*.schema.json`: `sections.custom_section` ("AI-built section") and `blocks.custom_block` ("AI-built block").
|
|
224
|
+
- `*.json`: `custom_section.error` ("Section error") and `custom_section.block_error` ("Block error").
|
|
225
|
+
- `*.schema.json`, if your catalog lacks them: the labels the section schema names, `settings.color_scheme`, `settings.content_width`, `settings.padding_top`, `settings.padding_bottom` and `content_width_options.{small,medium,large,page,full}`. A fresh starter has none of them.
|
|
226
|
+
|
|
227
|
+
`pnpm theme:check` lists any key still missing.
|
|
228
|
+
|
|
229
|
+
## 6. Tell the AI how to style for your theme
|
|
230
|
+
|
|
231
|
+
The AI's markup can't use your Tailwind classes: Tailwind emits only the classes it finds in your source, and the AI's HTML isn't in it. It writes plain CSS into `custom_css`. Add a `## Custom sections` section to `src/ai/guide.md` that says:
|
|
232
|
+
|
|
233
|
+
- which CSS variables to use for color (the starter's are `--color-background`, `--color-foreground`, `--color-muted`, `--color-border`, `--color-accent` and `--color-accent-foreground`; name the ones that follow the color scheme, if you have schemes), plus your font and spacing variables;
|
|
234
|
+
- that the shell already provides background, width and padding, so its markup needs no outer background or page margins;
|
|
235
|
+
- your root font size, if `1rem` isn't 16px;
|
|
236
|
+
- when to build one: only when no section you ship does the job, after checking their settings and blocks;
|
|
237
|
+
- for blocks, which sections take one, and to keep them compact with no outer padding or background.
|
|
238
|
+
|
|
239
|
+
## What the AI can and can't do
|
|
240
|
+
|
|
241
|
+
You don't enforce any of this. It's here so you know what can land in your sections:
|
|
242
|
+
|
|
243
|
+
- **Validated, then escaped.** The platform refuses a template with `script`, `style`, `iframe`, `form`, `svg`, an `on*` or `style` attribute, or an unquoted attribute. It HTML-escapes every output except sanitized rich text. A URL attribute must be static (`/`, `#`, `https://`, `mailto:`, `tel:`) or one output through `link_url` / `image_url`.
|
|
244
|
+
- **Data:** `settings`, the route `product` and `collection`, `shop`, and the pickers the AI declared (product, product list, collection, image, menu, page, metaobject), resolved server-side. A setting can also take a dynamic source (a metafield of the page's product, for instance), and a rich-text metafield's `.html` renders as text.
|
|
245
|
+
- **Limits:** a template of up to 16 KB, CSS up to 8 KB, 12 declared settings, and **six custom sections and blocks together per template or section group**. Past six, the rest render empty and publish refuses.
|
|
246
|
+
- **Merchant view:** the theme editor badges them "AI-built", never offers the types in its pickers, and copies the definition on duplicate or paste.
|
|
@@ -521,10 +521,12 @@ Hide a setting based on a sibling's value:
|
|
|
521
521
|
}
|
|
522
522
|
```
|
|
523
523
|
|
|
524
|
-
- **Inside block schemas:** reference siblings as `settings.<id
|
|
524
|
+
- **Inside block schemas:** reference siblings as `settings.<id>`, and the owning section's settings as `section.settings.<id>` (e.g. hide a card field the section's card style never renders).
|
|
525
525
|
- **Inside section schemas:** use `section.settings.<id>`.
|
|
526
|
-
- Evaluated by the editor as a small Liquid
|
|
527
|
-
-
|
|
526
|
+
- Evaluated by the editor as a small subset of Liquid: `==` / `!=` against a quoted literal or `blank`, `<` `<=` `>` `>=` on numbers, a bare `settings.<id>` for truthiness, `and` / `or`, and parentheses.
|
|
527
|
+
- **`and` / `or` read right to left, like Liquid, with no precedence:** `a and b or c` is `a and (b or c)`. When you mean `(a and b) or c`, write the parentheses.
|
|
528
|
+
- **An unsaved setting reads as its schema `default`**, as it renders on the storefront. So a checkbox that defaults on gates its dependents with a bare `{{ settings.show_x }}` (or `== true`), and they still show on an instance that never saved it.
|
|
529
|
+
- **Gate a field only when it does nothing**: a hidden field that still worked is a setting the merchant can no longer reach.
|
|
528
530
|
|
|
529
531
|
---
|
|
530
532
|
|
package/template/LICENSE.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Shopon Theme Development License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 Cody LLC. All rights reserved except as granted below.
|
|
4
4
|
|
|
5
5
|
"The Software" is this package, its source, and its documentation. "The
|
|
6
|
-
Platform" is
|
|
6
|
+
Platform" is Shopon, the commerce platform operated by Cody LLC.
|
|
7
7
|
|
|
8
8
|
## 1. Grant
|
|
9
9
|
|
package/template/README.md
CHANGED
|
@@ -49,9 +49,9 @@ with a "missing" message naming the variable.
|
|
|
49
49
|
| `pnpm theme:check` | the quality bar's static rules; `--release` before handing off |
|
|
50
50
|
| `pnpm build` | the theme artifact in `.output/`, with `release-notes.md` alongside it |
|
|
51
51
|
|
|
52
|
-
To sell the theme on the
|
|
52
|
+
To sell the theme on the Shopon theme store, register at the developer portal
|
|
53
53
|
and submit its source: `npx @shop-on/theme-cli theme source` writes the
|
|
54
|
-
tarball to upload.
|
|
54
|
+
tarball to upload. Shopon builds it and reviews the result; see the developer
|
|
55
55
|
portal guide.
|
|
56
56
|
|
|
57
57
|
`npx @shop-on/theme-cli theme dev` runs the theme behind the gateway and a
|
|
@@ -84,4 +84,4 @@ src/
|
|
|
84
84
|
|
|
85
85
|
## License
|
|
86
86
|
|
|
87
|
-
For developing themes for
|
|
87
|
+
For developing themes for Shopon only. See [LICENSE.md](LICENSE.md). The third-party skills under `.claude/skills/` (everything but `theme-dev`) are MIT; each folder carries its own `LICENSE.md`.
|
package/template/package.json
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@bprogress/core": "1.3.4",
|
|
20
|
-
"@shop-on/i18n": "^0.
|
|
21
|
-
"@shop-on/theme-contract": "^0.
|
|
22
|
-
"@shop-on/theme-loader": "^0.
|
|
23
|
-
"@shop-on/theme-react": "^0.
|
|
24
|
-
"@shop-on/theme-routes": "^0.
|
|
25
|
-
"@shop-on/theme-runtime": "^0.
|
|
26
|
-
"@shop-on/theme-server": "^0.
|
|
27
|
-
"@shop-on/theme-system": "^0.
|
|
20
|
+
"@shop-on/i18n": "^0.9.0",
|
|
21
|
+
"@shop-on/theme-contract": "^0.9.0",
|
|
22
|
+
"@shop-on/theme-loader": "^0.9.0",
|
|
23
|
+
"@shop-on/theme-react": "^0.9.0",
|
|
24
|
+
"@shop-on/theme-routes": "^0.9.0",
|
|
25
|
+
"@shop-on/theme-runtime": "^0.9.0",
|
|
26
|
+
"@shop-on/theme-server": "^0.9.0",
|
|
27
|
+
"@shop-on/theme-system": "^0.9.0",
|
|
28
28
|
"@tailwindcss/vite": "4.3.3",
|
|
29
29
|
"@tanstack/react-router": "1.170.45",
|
|
30
30
|
"@tanstack/react-start": "1.169.3",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"tailwindcss": "4.3.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@shop-on/theme-config": "^0.
|
|
39
|
-
"@shop-on/theme-dev-host": "^0.
|
|
38
|
+
"@shop-on/theme-config": "^0.9.0",
|
|
39
|
+
"@shop-on/theme-dev-host": "^0.9.0",
|
|
40
40
|
"@spiriit/vite-plugin-svg-spritemap": "7.2.0",
|
|
41
41
|
"@types/node": "26.6.5",
|
|
42
42
|
"@types/react": "19.3.0",
|