Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By s3rgiosanv1.6.0MITIn 1 marketplace
Turns a rendered design from a URL, dev server or static HTML into a WordPress FSE block theme with theme.json tokens and patterns. Its capture scripts need Playwright installed, and parity gates compare the rebuilt pages to the design and the block editor.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
wordpress-theme, fse-theme, block-theme, design-to-code, theme-json, html-to-wordpress, interactivity-api, fse ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Part of wp-skills — Claude Code skills for WordPress developers (including the React surfaces of the WP ecosystem).
A Claude Code skill that turns any rendered web design (a deployed preview, a local dev server, or static HTML files) into a WordPress block theme (FSE). There is no automatic converter, so the skill splits the work into the mechanical parts it automates (capturing the rendered pages, deriving theme.json tokens from what they paint, gating parity with the design and between the front end and the block editor) and the judgment parts it guides (rebuilding each section as patterns, templates, and Interactivity API blocks).
It is also the shared core for the source skills, which add what depends on where a design came from:
/plugin marketplace add s3rgiosan/wp-skills
/plugin install wp-design-to-block-theme@s3rgiosan-wp-skills
Or wire wp-design-to-block-theme@s3rgiosan-wp-skills into settings.json under enabledPlugins (see the root README for the full snippet).
git clone https://github.com/s3rgiosan/wp-skills.git
cd wp-skills/wp-design-to-block-theme
# Default → ~/.claude
bash install.sh
# Custom Claude config dir (override via env var)
CLAUDE_CONFIG_DIR=~/.some-other-dir bash install.sh
Uninstall:
bash uninstall.sh # → ~/.claude
CLAUDE_CONFIG_DIR=~/.some-other-dir bash uninstall.sh # → custom dir
Open a Claude Code session with the design to hand and ask naturally:
"Turn this design into a WordPress block theme: https://preview.example.com"
"Convert these static HTML pages into an FSE theme."
"Extract theme.json tokens from this page."
"The editor doesn't match the front end of this theme; run an editor parity pass."
The skill runs a ten-step flow: routes + capture → content model → tokens → scaffold → layout → patterns → content → interactivity → verify → handover.
# Playwright, once, in a working folder outside the theme
npm i -D playwright && npx playwright install chromium
# Capture the design per route and breakpoint (URLs, or a folder of HTML files as --base)
node skills/wp-design-to-block-theme/scripts/capture.mjs --routes routes.txt --base ./design-pages --out ./capture/design --behaviors
# Derive theme.json settings and draft styles from what the pages paint
node skills/wp-design-to-block-theme/scripts/css-tokens.mjs ./capture/design --out ./theme-tokens.json --dark-out ./styles/dark.json --report ./tokens-report.json
# Capture the WordPress rebuild, then run the parity gate (exit 0 = pass)
node skills/wp-design-to-block-theme/scripts/capture.mjs --routes wp-routes.txt --base http://mysite.test --out ./capture/local
node skills/wp-design-to-block-theme/scripts/compare.mjs ./capture/design ./capture/local --map about=about-us
# Find theme rules that lose in the editor because of stylesheet order, then capture the block editor
# on the same routes and run the editor-parity gate (exit 0 = pass)
node skills/wp-design-to-block-theme/scripts/cascade-order.mjs --routes wp-routes.txt --base http://mysite.test
WP_USER=admin WP_PASSWORD=password node skills/wp-design-to-block-theme/scripts/capture-editor.mjs --routes wp-routes.txt --base http://mysite.test --out ./capture/editor
node skills/wp-design-to-block-theme/scripts/compare.mjs ./capture/local ./capture/editor --editor
Pass --help to any script for the full flag list. capture.mjs, capture-editor.mjs, cascade-order.mjs and compare.mjs load Playwright from the current directory; capture-editor.mjs logs in to the local site and changes no content or editor preference; css-tokens.mjs has no dependencies and does no network I/O.
7-day copy clicks
npx claudepluginhub s3rgiosan/wp-skills --plugin wp-design-to-block-themeBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground