Editing Themes
Edit a Shoppex theme from the dashboard, from your terminal, or from an AI agent. Every path goes through the same validate → preview → publish flow, so a change made by Claude looks identical to a change made in the dashboard.New to Shoppex themes? Start with Build and Customize a Theme with AI or Hosted Theme Sync. This page is the reference that ties those workflows together.
Pick How You Want To Edit
Dashboard
Click-based editing with a built-in preview. Best for content, layout, and brand tweaks.
Local source sync
Pull the theme, edit in your editor, push back. Best for real development.
AI agent
Let Claude or another assistant drive the edits through MCP. Best for large inspections and focused refactors.
Dev API
Drive edits from your own backend or scripts. Best for automation and integrations.
The Workflow
Every edit, no matter the surface, follows the same sequence: inspect → read → apply → validate → preview → publish- Inspect the theme to see its sections, settings, and brand tokens.
- Read the files you plan to change.
- Apply a small, focused patch.
- Validate — the draft is checked automatically.
- Preview the draft in a real storefront.
- Publish when you’re happy, or rollback if something breaks in production.
push, and AI agents have them as tools. But knowing the sequence helps when something goes wrong.
Quick Start: Local Source Sync
The most common path for developers:pulldownloads the current theme source and writes.shoppex/theme.jsonwith the theme ID and revision.pushuploads your local snapshot, validates it, and optionally opens a preview.publishpromotes the current draft to live.
Quick Start: AI Agent
If you’re using Claude Code, Codex, or another MCP-capable agent:theme.inspect, theme.read_file, theme.apply, theme.create_section, and theme.publish. Ask it to inspect first, then make focused changes:
“Inspect the theme, find the hero section, then change only the CTA copy and button styles.”See AI Theme Workflows for the full setup.
What You Can Do
Edit an existing theme
Tweak copy, layout, styles, or settings on a theme that’s already installed.- Change a headline, swap colors, adjust spacing
- Toggle section settings, update brand tokens
- Preview before publishing, rollback if needed
Extend a theme
Add new building blocks without leaving the platform.create_section— scaffold a new section (e.g.Testimonials)create_page— add a new route (e.g./about)update_config— register a new setting intheme.config.ts
Create a new theme
Start from one of the Shoppex base themes:default, classic, nebula, or pulse. Use create and optionally set it active with setAsActive.
Auth And Scopes
For CLI, Dev API, and MCP you need a Shoppex API key. Two scopes cover everything:themes.read— inspect, read, diff, search, settings, backups, latest run. Enough for a read-only audit bot.themes.write— apply, accept, preview, publish, rollback, scaffolding. Needed for any autonomous editing agent.
Safe Editing Checklist
A short checklist that works for all surfaces:inspect— learn the theme’s shape firstsearch_files— find where the thing livesread_file— read only what you’ll changeapply— small, focused patches, not blind rewritesvalidate— confirm the draft is shippablepreview— see it in a real storefrontpublish— when you’re sure
apply vs accept
Two similar-sounding operations, different use cases:
apply— you (or your agent) directly edit source files. This is the normal path.accept— you’re approving a draft patch that the in-dashboard agent already proposed. You review its suggestion, then callacceptfor the chosen run.
accept.
diff Before Publishing
Changed a handful of files this morning and can’t remember what’s still unpublished? Call diff — it compares the current draft against the last published snapshot, file by file.
How It Works Under The Hood
All four surfaces — dashboard, Dev API, CLI, and MCP — talk to the same backend, internally called the Theme Control Plane. It’s the shared editing surface that guarantees every client behaves the same way: same validation, same preview, same publish semantics, same rollback. You don’t need to know the control plane exists to use Shoppex themes. But if you’re building your own integration or tooling, these are the endpoints:Next Steps
Hosted Theme Sync
Step-by-step local source sync, from API key to publish.
AI Theme Workflows
End-to-end workflow for AI-assisted editing.
Theme Config
How sections and settings are represented in
theme.config.ts.Build Pipeline
What happens after validate, preview, and publish.