Developer Documentation
Technical documentation for developers and agencies building with the Wonder Theme.
Articles
Integration
- JavaScript Events Reference - All events fired by the theme with payloads and code examples
- Cart Drawer JavaScript API - Programmatic control of the cart drawer for third-party integrations
Architecture
- Theme Architecture Overview - File organization, JavaScript structure, CSS architecture, and custom code best practices
- CSS Variables Reference - 380+ CSS custom properties for colors, typography, spacing, and animations
- Web Components Reference - Documented custom elements with public methods and APIs
AI & Agents
- Install the Wonder AI Toolkit & MCP server - Connect Claude Code, Codex, Cursor, VS Code and other agents to Wonder's docs, known issues and section validation
- Tutorial: build a custom section with AI - From blueprint to a validated, update-safe section
- Tutorial: update a customised Wonder theme - Move code changes to a new Wonder version with a three-way merge
- Using the Wonder MCP server - The assistant looks up section settings and Wonder's documented JavaScript API (events, cart drawer, web components) before writing code, and plans theme updates
Applies to Wonder v2.0.0+
This documentation covers the current version of Wonder Theme. Some events or APIs may not be available in older versions.