Flavian

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.
How It Works
- 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
Desktop GUI (experimental)
Prefer not to use a terminal? A cross-platform desktop GUI wraps the whole workflow behind a graphical interface — five screens: Prerequisites, Setup wizard, WordPress (Docker), Convert design (Figma/Canva/InDesign), and Visual QA. It's a thin orchestration layer over the existing scripts and pipelines — it invokes them, it doesn't replace them. Run it from source with pnpm gui:dev (or build an installer with pnpm gui:package). See docs/GUI.md.
Prerequisites
Auto-check: ./scripts/check-prerequisites.sh · Full details: docs/PREREQUISITES.md
Quick Start
# 1. Clone and enter
git clone https://github.com/PMDevSolutions/Flavian.git
cd Flavian
# 2. Install deps and run the interactive setup wizard
pnpm install
pnpm run init # interactive
# or non-interactive:
pnpm run init -- --yes --name=my-site --theme=blank
The wizard writes .env, scaffolds a starter theme, optionally stages
WooCommerce, and makes an initial git commit. See
docs/CLI-WIZARD.md for all flags and prompts.
# 3. Boot local WordPress (Docker must be running)
./wordpress-local.sh build # first time only
./wordpress-local.sh start
./wordpress-local.sh install # first time only
# 4. 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 (pipelines):
More docs: docs/QUICK-START.md · LOCAL-DEVELOPMENT.md · docs/docker-troubleshooting.md
Versioning: the source of truth is git tags + .release-please-manifest.json; release-please mirrors that version into package.json (currently 1.12.0) — don't bump it by hand. See Versioning in CONTRIBUTING.md.