Build and Customize a Theme with AI
Start here if you want to use Claude Code or Codex to build or customize a Shoppex theme. The workflow is: start from an existing theme (or create one), let the AI inspect it first, make one small change at a time, then validate and preview before you publish.You do not need to understand the Theme Control Plane first.
This page is the practical beginner workflow.
If you want the underlying platform details later, read Theme Control Plane.
What You Can Do With AI
- Change homepage copy
- Update colors, spacing, and button styles
- Add a new static page like
/about - Scaffold a new section like testimonials or FAQ
- Create a new theme from a base theme and customize it
What You Need
You need:- a Shoppex theme
- a way to run or preview it
- an API key if the AI should use the Shoppex theme tools
- start from
themes/default - create an API key with
themes.readandthemes.write - use Claude Code or Codex to inspect and edit in small steps
Pick Your Starting Point
Use one of these:Option 1: Customize an Existing Theme
Use this if you already have a theme and want to improve it. Change the homepage hero, add a new about page, tweak colors and typography — anything targeted.Option 2: Create a New Theme from a Base Theme
Use this if you want a fresh starting point. Supported base themes:defaultclassicnebulapulse
default, then ask the AI to adapt the visuals, sections, and pages to your brand.
Recommended Beginner Workflow
- Pick or create a theme
- Ask the AI to inspect it first
- Ask for one small change
- Validate the result
- Preview it
- Publish only when it looks right
Step 1: Let the AI Inspect Before Editing
Always inspect first. The AI needs to learn the theme structure so changes are targeted and safe instead of blind patches. Good prompt:Step 2: Ask for a Small Change
After inspection, ask for one focused change. Good examples:- “Change only the hero headline and CTA text.”
- “Keep the layout, but change the primary color and button radius.”
- “Create a new /about page in the same visual style as the current theme.”
- “Add a testimonials section, but do not publish anything yet.”
- “Redesign everything.”
- “Rewrite the whole storefront.”
- “Change whatever you think is wrong.”
Step 3: Validate and Preview
After the AI makes a change, always do these next:- validate
- preview
validate checks whether the theme still builds cleanly. preview lets you see the real result before going live.
Good prompt:
Step 4: Publish Only After Review
Only publish after you review the preview. Preview is for checking. Publish is permanent. If something is wrong:- ask the AI for one more focused change
- validate again
- preview again
The Best Prompts for Beginners
These work well:What To Avoid
Avoid these habits:- asking for a huge rewrite before inspection
- changing many unrelated files at once
- publishing without previewing
- treating AI like it already knows your theme structure
- Good: “Inspect first, then change the hero.”
- Risky: “Rebuild the whole store in a luxury style.”
Which Page Should You Read Next?
Use this page order:- this page if you are new
- Quickstart if you need a local theme running
- AI Theme Workflows if you want the more advanced CLI and MCP patterns
- Theme Control Plane if you want the technical backend model
Next Steps
Quickstart
Run a reference theme locally before you start customizing it.
AI Theme Workflows
Learn the more advanced CLI and MCP workflow after the beginner path.
Theme Control Plane
Read the advanced platform page behind inspect, validate, preview, and publish.
Theme Config
Understand how sections and settings are defined inside a theme.