Storefront Studio & Templates
Visual storefront builder, custom TSX section components, and Git-backed template publishing
Storefront Studio & Templates
Storefront Studio lets merchants design, customize, and publish production storefronts directly from https://app.xclade.com with zero external hosting setup—while giving engineers full code-level control via custom React + Tailwind TSX components and Git-backed templates.
How It Works
Every store has a canonical StorefrontDocument stored in the Control Plane and rendered live by the Hosted Storefront Fleet (xclade-edge + xclade-storefront):
- Design Tokens: Brand colors, typography stacks, button radii, spacing, and dark/light surfaces—also inherited automatically by Growth Studio email templates.
- Navigation & Shell: Customizable sticky headers, announcement bars, mega menus, and footers.
- Pages & Sections: Composable home, collection, product, cart, checkout, account, and custom landing pages.
- Conditional B2B Configuration: Enable or disable B2B wholesale registration, quick-order matrix, and RFQ quote drawers per store (
document.b2b). - Custom TSX Sections: Author sandboxed React + Tailwind components compiled server-side by
xclade-apiand hydrated with the live commerce context (@xclade/commerce) on the storefront.
Git-Backed Template Format (xclade/store-templates)
Storefront templates live as self-contained folders under templates/<slug>/:
templates/
└── atelier-noir/
├── manifest.json # Template metadata, vertical, badge, palette, component list
├── document.json # Canonical StorefrontDocument (tokens, header, footer, pages)
├── preview.webp # Optional cover image (auto-uploaded to S3 / cdn.xclade.com)
└── components/
├── HeroEditorial.tsx
└── FeatureMarquee.tsxmanifest.json Structure
{
"slug": "atelier-noir",
"name": "Atelier Noir",
"version": "1.0.0",
"vertical": "fashion",
"badge": "Editorial",
"tagline": "Minimal high-contrast flagship storefront",
"description": "Full-bleed photography, tactile transitions, and instant faceted search.",
"previewPalette": ["#0B0B0C", "#FFFFFF", "#D4AF37"],
"sortOrder": 10,
"coverImage": "preview.webp",
"components": [
{
"key": "hero-editorial",
"name": "Hero Editorial",
"file": "components/HeroEditorial.tsx"
}
]
}Validation & Publishing via CI
Validate template manifests, section references, links, and TSX compilation safety before publishing:
# Validate all templates locally
node scripts/validate.mjs
# Publish a single template (or all templates) to the Control Plane
XCLADE_TEMPLATE_PUBLISH_TOKEN=... node scripts/publish.mjs atelier-noirTemplates publish directly to the root-mounted Control Plane endpoint:
POST https://api.xclade.com/storefront/templates/publishBidirectional GitHub Sync
Templates flow cleanly in both directions:
- Git → Studio: Pushing to your connected template repository triggers
/webhooks/github/store-templates(or manual sync from the Console) to register new template versions automatically. - Live Store → Studio & Git: After editing a storefront visually or with the Studio AI Assistant, publish a snapshot directly to a versioned release—with optional atomic commit back to GitHub.
Custom Domains & Storefront Routing
- Every store starts live immediately at
https://{shortId}.myxclade.com. - Attach custom apex and
wwwdomains (e.g.yourbrand.com) from Console → Domains;xclade-edgehandles domain resolution, apex/www canonicalization, and automated TLS 1.3 certificates. - Storefront Studio AI runs and theme publishes propagate immediately without redeploying the store's Go backend pod.