1.0.0-beta.10 • Published 17h ago
@salla.sa/theme-starter-kit
Licence
MIT
Version
1.0.0-beta.10
Deps
11
Size
217 kB
Vulns
0
Weekly
0
@salla.sa/theme-starter-kit
React storefront theme starter kit for Salla stores —
built with TanStack Start and Vite, rendered server-side in workerd via
@salla.sa/twilight-theme-engine.
Quick start
Scaffold a new theme with the Salla CLI:
npx @salla.sa/cli@beta theme create
Or work directly inside a copy of this package:
pnpm install
pnpm dev
Running salla theme dev writes a .env with VITE_STORE_DOMAIN
(defaults to the demo store), which points the dev server at your store's data,
and VITE_TWILIGHT_URL, the fallback twilight SDK build used only when the
store's settings don't pin a release (theme.twilight.version).
Scripts
| Script | Description |
|---|---|
pnpm dev |
Start the Vite dev server (workerd) |
pnpm build |
Production build |
pnpm preview |
Preview the production build |
pnpm typecheck |
TypeScript type checking |
pnpm test |
Run the test suite (Vitest) |
Deployment
Deployment is handled by the Salla CLI in a coming release, so no deploy
configuration ships with this starter kit — wrangler.jsonc here only
powers local development.