Figma designs to working WordPress sites, automatically.
Flavian is a Claude Code-powered pipeline that converts a Figma design (or a Canva HTML/CSS export) into a complete WordPress FSE block theme running on a local Docker WordPress instance — with a minimum of questions asked. Hand it a design, get back a theme with theme.json, templates, block patterns, and images already wired up.
- You provide a design. A Figma URL (Dev Mode enabled) or a Canva HTML export directory.
- Claude Code converts it. Design tokens (colors, typography, spacing) are extracted and a full FSE block theme is generated in
themes/[theme-name]/. - You activate and iterate. The theme runs against the included Docker WordPress environment. Edit, refresh, done.
Typical runtime: 5–30 minutes. No manual theme.json authoring.
What you get:
- Complete FSE block theme —
theme.json, templates, block patterns, template parts - Design tokens extracted directly from the source (no hardcoded colors, fonts, or spacing)
- Images wired up via pattern-first architecture (no broken
src=""in HTML templates) - Automatic validation against WordPress coding standards and security best practices
- A running local WordPress site at http://localhost:8080
| Requirement | What for | Install |
|---|---|---|
| Claude Code | The conversion engine | npm install -g @anthropic-ai/claude-code |
| Docker Desktop | Local WordPress (WordPress + MySQL + phpMyAdmin) | docker.com/download |
| Node.js 18+ | Playwright MCP for visual QA | nodejs.org |
| Git | Version control | git-scm.com |
| Figma Professional+ | Dev Mode — required to extract design tokens (skip if using Canva input only) | figma.com |
Auto-check: ./scripts/check-prerequisites.sh · Full details: docs/PREREQUISITES.md
# 1. Clone and enter
git clone <repository-url>
cd Flavian
# 2. Boot local WordPress (Docker must be running)
cp .env.example .env # edit values before continuing
./wordpress-local.sh build # first time only
./wordpress-local.sh start
./wordpress-local.sh install # first time only
# 3. Open Claude Code and hand it your design
claude
> Convert this Figma design to WordPress: <your-figma-url>Claude generates the theme in themes/[theme-name]/. Activate it:
./wordpress-local.sh activate-theme [theme-name]Site at http://localhost:8080 · Admin at /wp-admin · Database UI at :8081.
Supported inputs:
- Figma URL — requires Professional plan (Dev Mode). See docs/figma-to-wordpress/README.md.
- Canva HTML/CSS export directory — no account tier required. See docs/canva-to-wordpress/README.md.
More docs: docs/QUICK-START.md · LOCAL-DEVELOPMENT.md · docs/docker-troubleshooting.md
Alternative: use as a wp-content directory in an existing WordPress install
If you already run WordPress outside Docker and just want Flavian's scripts and Claude Code integration:
git clone <repository-url> wp-content
cd .. && wp core download --skip-content
wp config create --dbname=your_db --dbuser=root --dbpass=password
wp core install --url=example.test --title="Your Site" --admin_user=admin --admin_password=password --admin_email=you@example.comDuring development, this project uses ROOT-LEVEL WordPress folders:
project-root/
├── themes/ ← Themes go HERE during development
├── plugins/ ← Plugins go HERE during development
├── mu-plugins/ ← Must-use plugins go HERE during development
├── scripts/ # Development automation scripts
│ └── wordpress/ # WordPress-specific tools
│ └── figma-fse/ # Figma-to-FSE conversion scripts
├── docs/ # Documentation and planning
└── .claude/ # Claude Code configuration
Why root-level?
- Cleaner development structure (no nested wp-content)
- Easier version control
- Separation between development and deployment environments
When deploying to WordPress, files are copied to standard wp-content structure:
wordpress-install/
└── wp-content/
├── themes/ ← Development themes/ copied here for testing
├── plugins/ ← Development plugins/ copied here for testing
├── mu-plugins/ ← Development mu-plugins/ copied here for testing
├── uploads/ # Media files (gitignored)
├── languages/ # Translation files
└── upgrade/ # WordPress upgrade files (gitignored)
NEVER create files in wp-content/ during development. Use root-level themes/, plugins/, mu-plugins/ folders.
# Set up PHP CodeSniffer with WordPress standards
./scripts/wordpress/setup-phpcs.sh
# Check WordPress coding standards
./scripts/wordpress/check-coding-standards.sh [path]
# Run security scan
./scripts/wordpress/security-scan.sh [path]
# Check performance
./scripts/wordpress/check-performance.sh [path]See CLAUDE.md for comprehensive WP-CLI command reference for:
- WordPress core management
- Theme development
- Plugin development
- Database operations
- Development server setup
This template is optimized for WordPress development with Claude Code, featuring:
- Lean Plugin Setup: 6 Claude Code plugins (5 user + 1 local)
- Custom Agents: 49 specialized agents (24 WordPress-focused + 25 generic cross-domain)
- Custom Skills: 11 workflows covering the Figma/Canva-to-FSE pipeline, security, testing, and i18n
- Documentation Hub: Comprehensive guides in
.claude/directory
✅ episodic-memory # Semantic search and persistent memory
✅ commit-commands # Structured git workflows (/commit, /commit-push-pr)
✅ github # GitHub integration (PRs, issues, repos)
✅ php-lsp # PHP code intelligence (autocomplete, go-to-definition)
✅ superpowers # Advanced development workflows and skills
✅ ai-taskmaster # Task management (local plugin)
Full catalog of 49 agents in .claude/CUSTOM-AGENTS-GUIDE.md. Key WordPress-specific ones:
✅ figma-fse-converter # Figma-to-FSE theme conversion
✅ canva-fse-converter # Canva-to-FSE theme conversion
✅ frontend-developer # JS/CSS implementation for FSE themes
✅ test-writer-fixer # PHP unit testing
✅ ui-designer # Block pattern design
✅ visual-qa-agent # Visual regression and design comparison
✅ accessibility-auditor # WCAG 2.1 AA compliance checks
✅ security-audit-agent # Dependency/CVE scanning + WPCS enforcement
✅ figma-to-fse-autonomous-workflow # Orchestrator for Figma-to-FSE conversion
✅ canva-to-fse-autonomous-workflow # Orchestrator for Canva-to-FSE conversion
✅ fse-block-theme-development # theme.json, templates, FSE structure
✅ fse-pattern-first-architecture # PHP patterns for images (enforced)
✅ block-pattern-creation # Pattern registration and reuse
✅ visual-qa-verification # Post-conversion screenshot + Lighthouse QA
✅ wordpress-security-hardening # Sanitize, escape, nonces, capabilities
✅ wordpress-internationalization # i18n/l10n wrappers and POT generation
✅ wordpress-hook-integration # Claude Code agent hooks for WordPress
✅ wp-cli-workflows # WP-CLI automation (theme activation, DB, content)
✅ wordpress-testing-workflows # PHPUnit test creation and execution
What Skills Provide:
- Systematic workflows for WordPress development tasks
- Prevention of common WordPress mistakes
- Quick reference tables and code examples
- Security-first approaches with rationalization detection
- Integration with existing agents and automation scripts
Skills Documentation: .claude/skills/README.md
CLAUDE.md- WordPress development guidance and quick referencedocs/QUICK-START.md- 5-minute getting started guidedocs/PREREQUISITES.md- Complete requirements checklistdocs/figma-to-wordpress/- Figma-to-FSE automation documentationREADME.md- User guide and quick startIMPLEMENTATION.md- Technical implementation detailsEXAMPLES.md- FSE template syntax examples
.claude/skills/README.md- WordPress skills catalog.claude/PLUGINS-REFERENCE.md- Plugin commands and usage.claude/CUSTOM-AGENTS-GUIDE.md- Custom agent catalog.claude/AGENT-NAMING-GUIDE.md- Agent disambiguationLOCAL-DEVELOPMENT.md- Docker setup for local WordPress
docs/TROUBLESHOOTING.md- General troubleshooting guidedocs/docker-troubleshooting.md- Docker & container issuesdocs/COMMON-FAILURES-FIXES.md- Figma-to-WordPress specific issuesdocs/MCP-TROUBLESHOOTING.md- MCP server debuggingdocs/E2E-VALIDATION.md- End-to-end testing procedures
- WordPress coding standards compliance
- Proper use of WordPress APIs and functions
- Security best practices (escaping, sanitization, nonces)
- Structured git commits and PR workflows
- PHP code intelligence and autocomplete
- Specialized agents for WordPress development tasks
- Follow WordPress Coding Standards: Use PHPCS with WordPress standards
- Security First: Sanitize input, escape output, use nonces, check capabilities
- Use WordPress APIs: Leverage built-in WordPress functions instead of reinventing
- Test Locally: Use Local by Flywheel, XAMPP, MAMP, or Docker for development
- Version Control: This template includes comprehensive
.gitignorefor WordPress
This template is licensed under the MIT License. WordPress itself is licensed under GPL v2 or later.