Phuc Buiv0.1.0

N-011

ACF Blocks with Tailwind

30 Jun 2026 · wordpress, tailwind

This note as an agent skill: wp-acf-blocks in phucbm/skills.

Shell
npx skills@latest add phucbm/skills --skill wp-acf-blocks

This is how I build blocks for Perxel's WordPress themes. Each block is a folder in blocks/<slug>/ with its block.json, its ACF fields in fields.json and a render.php. Three mu-plugins register every block listed in blocks.json, route ACF's local JSON into each block's folder and load the Tailwind build. Scripts are *.entry.ts files that tsup compiles.

The skill is the biggest in the repo because it ships the boilerplate itself, and five commands: setup for a new theme, plan-block to turn a discussion into a GitHub issue, add-block to scaffold blocks from those issues, and two audits.

What surprised me