The WP Rig team is thrilled to announce the official release of WP Rig v3.4.2!
WP Rig has always been the premier developer-first starter theme and build system for WordPress. With v3.4.2, we’re taking performance, layout sophistication, and theme compliance to the next level. This release introduces game-changing server-side rendering speeds, cutting-edge CSS layouts, and powerful local auditing tools designed to get your theme into the official WordPress.org Directory on day one.
Here is a look at what makes WP Rig v3.4.2 our most exciting release yet.
1. Blazing-Fast Server Speeds with Block Manifests (Issue #936)
Bespoke block-based WordPress themes often suffer from a hidden bottleneck: runtime filesystem scanning. On every page load, WordPress has to scan directories, locate individual block.json files, and parse them with CPU-intensive JSON decoding.
WP Rig v3.4.2 completely eliminates this runtime overhead by integrating with modern WordPress 6.7 and 6.8 Block Metadata Collections.
Pre-Compiled Manifests: During npm run build, WP Rig compiles all your block configurations into a single, high-performance PHP file (assets/blocks/blocks-manifest.php).
In-Memory Performance: Because the manifest is a native PHP array, it caches directly in your server’s OPcache. WordPress reads your entire block library directly from memory almost instantly—completely bypassing the filesystem.
Resilient Fallback Pipeline: A smart 3-tier loader utilizes modern WordPress 6.8+ batch loading, falls back to WordPress 6.7 in-memory collections, and gracefully drops back to traditional scanning on older WordPress versions or local dev setups.
We have resolved the long-standing issue of dropdown navigation menus overflowing the edge of the viewport using an ultra-modern hybrid positioning system:
CSS Anchor Positioning: For modern browsers, WP Rig uses native CSS Anchor Positioning to dynamically align submenus relative to their parents. This delivers absolute zero layout flicker and zero JavaScript execution.
Optimized TypeScript Fallback: For older browsers, a highly optimized Intersection Observer script seamlessly detects potential overflows and flips submenu alignment without taxing browser paint cycles.
3. Demystifying the Theme Directory: Local Submission Auditing
Passing the official WordPress.org Theme Directory review is notoriously challenging. To take the guesswork out of compliance, WP Rig v3.4.2 introduces an automated local submission readiness platform!
We have codified strict theme review guidelines directly into an executable suite of commands:
npm run audit:theme-review: Instantly checks your active theme for metadata accuracy, banned files, illegal plugin-territory code (like inline block registration), translation errors, and security issues.
npm run bundle:wporg: Compiles a clean, production-ready .zip archive—stripping all source files (src/, .ai/, etc.)—and automatically audits the final zip to ensure it is 100% submission-ready.
wp rig review-setup: Integrates with WP-CLI to install the official Theme Check and Theme Sniffer plugins locally, configure developer runtime logs, and import the official Theme Unit Test data for comprehensive visual QA.
4. Developer Quality of Life & Polish
We’ve also packed this release with features to make your daily coding workflow faster and more enjoyable:
Locked Mobile Menus: Hold Alt (or Option on macOS) while toggling the mobile menu in block-based dev to lock it open. It will stay pinned to the screen even when browser Developer Tools steal focus.
Single Source of Truth Breakpoints (Issue #925): Define --mobile-breakpoint as a CSS Custom Property. It is dynamically parsed and shared by both CSS and TypeScript, completely removing magic numbers.
Variable Font Support: Refactored font handling natively supports variable fonts and optimizes Google Fonts query generation to ensure faster rendering.
Modern Workspace Alignment: Unified Prettier, ESLint, and EditorConfig rules; block schema validation; PHP-only block scaffolding for WordPress 7.0; and the addition of ergebnis/agent-detector to help AI agents adapt to your local container environments.
Try WP Rig v3.4.2 Today!
Experience the ultimate blend of modern developer tooling, server-side speed, and bulletproof compliance. Getting started takes less than a minute:
# Clone the repositorygitclonehttps://github.com/wprig/wprig.gitmy-themecdmy-theme# Install dependencies and start the modern dev serverbunrunrig-init:bunbunstart
Try WP Rig v3.4.2 today, and watch your build times, server-side rendering speeds, and theme audit errors vanish! 🚀
Love WP Rig? Support the project by starring us on GitHub and sharing this release with your dev networks!
The WP Rig team is absolutely thrilled to share a massive announcement with our developer community: WP Rig has been officially selected to be featured at WordCamp US 2026 in Phoenix, Arizona!
This is an incredible milestone for our project. Our mission has always been to elevate the standards of WordPress theme engineering and give developers the ultimate, high-performance toolkit to build modern websites. Having our architecture and workflows highlighted on the main stage at WordCamp US 2026 is a testament to the power of our growing community.
In this post, we’ll dive into what this milestone means for WP Rig, break down what you will learn in Rob’s interactive workshop, and share how you can attend in person or tune in online to support the movement.
The Vision: Democratizing the Theme Directory
For years, submitting a custom theme to the official WordPress.org Theme Directory has been considered a daunting, time-consuming challenge. The official WordPress Theme Review Team maintains incredibly strict quality, accessibility, security, and structural Theme Review Guidelines. For many independent developers and agencies, navigating the feedback loop of reviews and revisions has felt like an insurmountable barrier to entry.
At the same time, the transition from traditional classic templates to the block editor, theme.json configuration, and Full Site Editing (FSE) has created a significant learning curve.
Our WordCamp US 2026 workshop is designed to smash those barriers down. By combining WP Rig’s performance-focused Object-Oriented Programming (OOP) PHP architecture with the power of AI-native engineering (agentic workflows), Rob Ruiz will demonstrate how any developer can build, test, and submit directory-ready, block-enabled WordPress themes with absolute confidence.
We want to show the WordPress community that high-quality, block-ready theme development is accessible to everyone—and WP Rig is the platform that makes it happen.
What to Expect: A Hands-on, Immersive Workshop
Unlike traditional slide-heavy presentations, this is an interactive, hands-on workshop. You won’t just be listening; you’ll be active in your terminal, writing code, executing automated tests, and collaborating with AI coding agents in real-time.
Here are the key technical pillars that Rob will guide participants through:
1. Blazing-Fast Compilation & Modern Tooling
Attendees will experience the true power of WP Rig’s modernized build pipeline. We will configure and leverage Bun and Lightning CSS to achieve near-instant feedback loops. Say goodbye to heavy Webpack bloat and slow compiler wait times—you will learn how to keep your development in a flow state using our Vite-like Modern Dev Server.
2. AI-Native Development & Agentic Workflows
As developers increasingly lean on AI coding assistants (like GitHub Copilot, Claude, or ChatGPT), we need codebases that minimize model “hallucinations.” Rob will demonstrate why WP Rig’s strict OOP structure, namespaces, and PSR-4 compliant autoloading make it the ultimate playground for AI-assisted coding. You will learn how to write structured prompts and leverage custom AI instructions (llms.txt) to have AI write block-ready code that integrates perfectly into WP Rig.
We will dive deep into Gutenberg block engineering. You will learn how to scaffold theme-scoped Gutenberg blocks directly inside your theme:
npmrunblock:newmy-custom-block
We will also highlight the cutting-edge WordPress 7.0 PHP-only block architecture, showing how you can leverage a build-free custom block model (--architecture php) with auto-registering schemas. Finally, we’ll demonstrate how to easily promote theme blocks to standalone plugins with a single command to ensure strict compliance with WordPress.org Theme review guidelines.
4. Eliminating the Review Loop with Automated QA
You will learn how to run WP Rig’s pre-configured automated testing suite locally:
If you are attending WordCamp US 2026 in Phoenix and plan to participate in Rob’s session, we want you to be fully prepared to code alongside us.
To get the absolute most out of the hands-on exercises, we highly recommend bringing a laptop with the following pre-installed:
Local WordPress Environment: A local server environment such as LocalWP or WordPress Studio.
NodeJS or Bun: A local installation of Node.js (version 20 or higher) or Bun.
Composer: For running PHP packages and dependencies via Composer.
A Clean Copy of WP Rig: Clone the official WP Rig GitHub Repository locally so you are ready to boot up your terminal on day one.
No advanced block-building experience is required! If you have a foundational knowledge of PHP, CSS, and basic terminal commands, you are perfectly equipped to succeed in this session.
Join Us in Phoenix or Tune in Online!
WordCamp US 2026 is shaping up to be an extraordinary gathering of minds in Phoenix, Arizona. It is the ultimate place to connect with other developers, share ideas, and witness the future of the WordPress project.
Attending in Person?
If you are buying WordCamp US 2026 tickets and making the trip to Phoenix, we would love to meet you! Be sure to add “Democratizing the Theme Directory: Building Block-Ready Themes with WP Rig & AI” to your custom session schedule. Come early to secure a seat, bring your laptop, and make sure to stop by and say hello to Rob Ruiz after the session. We love connecting with our users and hearing about the incredible custom sites you are building with WP Rig.
Tuning in Remotely?
If you can’t make the trip to Arizona, you don’t have to miss out on the excitement. WordCamp US live-streams session tracks globally. We will be sharing streaming links, real-time slides, and workshop resources across our social channels and right here on our blog as the event approaches.
Help Us Spread the Word!
We want to raise massive awareness about WP Rig and show the broader WordPress community that modern, high-performance, and standards-compliant theme engineering is within reach for every developer.
You can support the project today by:
Starring our GitHub Repository: Show your love and help other developers discover our GitHub repository.
Sharing the News: Post about our WordCamp US session on X/Twitter, LinkedIn, and in your developer Slack groups.
Telling a Peer: Let your developer friends and agency colleagues know that they can build better child and parent themes faster with WP Rig.
We are incredibly grateful for your continued support, contributions, and enthusiasm. We can’t wait to represent the WP Rig community in Phoenix and help democratize WordPress theme development for everyone.
Choosing the right starter theme is one of the most critical architectural decisions you will make in modern WordPress theme development. The boilerplate you select defines your build pipeline, directory structure, coding patterns, and—most importantly—the performance of the final website.
For developers seeking a modern, command-line-driven workflow, two primary frameworks dominate the conversation: WP Rig and Roots Sage.
Roots Sage is a highly popular, Laravel-inspired starter theme with a dedicated following. But in recent years, a massive shift has occurred. Developers are increasingly moving away from Sage in favor of WP Rig as their primary theme engineering platform.
In this deep-dive, head-to-head comparison, we will break down WP Rig vs Roots Sage, analyzing their architecture, performance, build tools, and developer experience. We will fairly evaluate Sage’s perks, and then explain why WP Rig represents a lighter, faster, and more future-proof choice for custom WordPress themes.
What is Roots Sage? (Acknowledging Its Perks)
Before analyzing why WP Rig is the superior alternative, we must give credit where credit is due. Developed by the Roots team, Sage is an excellent, sophisticated theme framework that has pushed the boundaries of WordPress development.
Key advantages of Roots Sage include:
The Blade Templating Engine: Sage integrates Laravel’s Blade templates, allowing developers to write clean, expressive layout files with dry logic, inheritance, and components instead of traditional PHP loops.
Acorn Integration: Sage leverages Acorn to boot Laravel-style service providers, dependency injections, and view-composers inside WordPress.
Tailwind CSS Out-of-the-Box: Sage is configured for utility-first styling with Tailwind CSS, making it a favorite for frontend developers who love utility classes.
A Familiar Ecosystem: For developers coming from the Laravel ecosystem, Sage feels immediately familiar and comfortable.
Sage is a powerful framework, but its high-complexity, Laravel-centric architecture introduces significant trade-offs. For standard, high-performance custom themes, many developers find Sage to be overly heavy, slow to compile, and difficult to align with native WordPress standards.
1. Runtime Performance: Heavy Acorn Overhead vs. Lightweight Native PHP OOP
The most significant architectural difference between the two starter themes lies in their runtime footprint.
Roots Sage: The Acorn Dependency
To execute Blade templates and Laravel controllers, Sage requires you to install and boot Acorn (essentially a Laravel application instance running inside WordPress). Every single page load requires WordPress to bootstrap the Laravel container. This introduces substantial PHP memory overhead, increased execution times, and extra latency that can negatively impact your server response times and Core Web Vitals.
WP Rig: Pure, High-Performance Native PHP
WP Rig takes a completely different approach. It leverages a clean, modern, and highly optimized Object-Oriented Programming (OOP) design that operates natively within WordPress.
Instead of wrapping your theme in an external framework, WP Rig organizes logic into standalone, self-contained Components under the inc/ directory. Each component implements a standard, lightweight interface:
There is no second container to boot, no heavy dependency injection layer, and no added latency. WP Rig utilizes PSR-4 autoloading and strict type hints, delivering maximum execution speeds and a rock-solid, secure performance foundation out of the box.
2. Compilation Speed: Bud/Webpack vs. Vite-Like Blazing Fast Tooling
Your build system’s compilation speed directly dictates your developer flow state. Waiting on a slow bundler to compile styles or scripts can kill productivity.
Roots Sage: Bud & Webpack
Sage uses Bud (a build wrapper developed by Roots, built on top of Webpack) to compile assets. While Bud is highly flexible, it is still built on Webpack. This means that as your theme grows, compilation times for CSS and JavaScript files steadily increase. Hot-reloading can feel sluggish, and configuring Bud to fit custom workflows often requires navigating complex, abstract config files.
Bun or Node.js drive the underlying task executors.
esbuild compiles and bundles TypeScript and ESNext JavaScript in a fraction of a millisecond.
Lightning CSS parses, imports, and minifies stylesheets with unmatched efficiency.
WP Rig’s compilation is up to 10x faster than Webpack-based pipelines. Furthermore, WP Rig includes an opt-in Modern Dev Server (npm run dev:modern) that acts like a Vite dev server. It provides a lightweight local proxy, enabling hot style injections and instantaneous page refreshes. You can read more about this on the WP Rig Workflows Page.
3. Block Editor (Gutenberg) & Full Site Editing (FSE) Integration
Modern WordPress is centered around the Block Editor (Gutenberg) and Full Site Editing (FSE). A starter theme must play nicely with WordPress’s native blocks.
Roots Sage: Blade vs. Blocks
Sage’s Blade template system is structurally disconnected from native Gutenberg blocks. Getting Blade components to render seamlessly inside the WordPress block editor editor-style environments is notoriously difficult. Creating blocks in Sage often requires additional third-party libraries (like Sage-compatible block builders or ACF blocks), which adds further complexity and layers of abstraction.
WP Rig: Native, Theme-Scoped Block Engineering
WP Rig is built with native Gutenberg block development at its core. It includes a built-in block scaffolding system powered directly by @wordpress/create-block:
npmrunblock:newmy-custom-block
This generates a theme-scoped, FSE-ready block directory under assets/blocks/my-custom-block/.
Even better, WP Rig is ready for WordPress 7.0 PHP-only blocks. By running:
npmrunblock:newmy-php-block----architecturephp
WP Rig scaffolds a zero-build custom block featuring an auto-registering block.json and a clean render.php template, completely bypassing Javascript compilation overhead. The core block component at inc/Blocks/Component.php automatically discovers and registers all blocks in your directory on init.
4. Feature Modularities: Monolithic Setup vs. “A La Carte” Component Registry
When building client sites, you rarely need every single feature out-of-the-box. Stripping out unwanted code should be effortless.
Roots Sage: The Monolithic Boilerplate
Sage comes as a monolithic package. If you don’t want Tailwind, or if you want to swap out Webpack, or delete custom controller classes, you must manually dig through directories, edit Laravel-style config files, prune composer dependencies, and rewrite core boot classes.
WP Rig: The Open Component Registry (OCR)
WP Rig acts as a modular, composable development platform powered by the Open Component Registry. Instead of starting with a heavy starter pack, you can discover, add, and remove vetted, performance-optimized features on-demand from the command line:
npm run rig:list – Check all active theme components.
npm run rig:search [keyword] – Discover open, engineered components.
npm run rig:add [slug] – Inject a complete, tested PHP feature and its assets into your theme.
npm run rig:remove [slug] – Completely prune a component with zero leftover bloat.
For digital agencies, WP Rig supports private component registries. You can package and distribute your own internal, proprietary client integrations securely across your projects, maximizing code reusability while keeping your IP safe. Learn more at WP Rig Component Registry.
5. CSS Workflows: Tailwind Bloat vs. Future-Proof Native CSS
How you write CSS affects not only developer experience but also the raw output size of your production assets.
Roots Sage: Heavily Tied to Tailwind
Sage is heavily opinionated toward Tailwind CSS. While Tailwind is fantastic for rapid layouts, utility-first CSS leads to highly cluttered Blade templates overflowing with classes. It also requires heavy PostCSS compilation to strip out unused utilities for production, making your stylesheets completely dependent on a complex, abstract build system.
WP Rig: Standards-Driven CSS via Lightning CSS
WP Rig champions writing native, future-proof CSS without heavy pre-processors or utility bloat. Operating entirely via Lightning CSS, WP Rig supports modern specifications today with zero-configuration browser fallbacks:
CSS Variables: Store design tokens globally in _custom-properties.css using :root.
Custom Media Breakpoints: Declare breakpoint variables under the upcoming @custom-media spec in _custom-media.css, which Lightning CSS transpiles into standard media queries.
Dynamic Image Path Resolution: WP Rig includes a custom build script that resolves and rewrites relative image paths (e.g., pointing to files in assets/images/) into production-ready URLs. You never have to manually hardcode absolute paths in your CSS.
This results in highly structured, incredibly lightweight, and standards-compliant stylesheets. Read more on the CSS in WP Rig Page.
6. Official WordPress.org Directory Readiness
If your goal is to distribute your theme publicly on the official WordPress.org Theme Directory, your boilerplate choice is highly restricted.
Roots Sage: Virtually Prohibited
The official WordPress Theme Review guidelines enforce strict coding, structural, and template standards. Sage’s non-standard directory layouts, reliance on Acorn, Laravel controllers, and Blade template files make it virtually impossible to submit to the official repository. If you build a theme in Sage, it is locked into premium-only or private distribution.
WP Rig: Completely Directory-Ready
WP Rig is built in strict alignment with official WordPress.org Theme Review guidelines. Out of the box, running:
npmrunai:check
triggers automated PHP Code Sniffer (PHPCS) audits configured to validate your code against official WordPress Coding Standards (WPCS).
Furthermore, WP Rig is prepared for block-directory submission. While custom blocks are considered “plugin territory” by review guidelines, WP Rig lets you build and test blocks locally, and instantly package and promote them to standalone plugins with a single command:
npmrunblock:promote-plugin<block-slug>
Your WP Rig codebase remains perfectly compliant and ready for directory submission from day one.
7. Automated Quality Assurance & CI/CD Pipelines
Delivering robust, secure code to enterprise clients demands rigorous testing. Setting up automated QA in legacy themes is often a major pain point.
Roots Sage: Manual Configuration Needed
While Sage integrates with standard PHP testing tools, setting up a comprehensive quality assurance workflow with static analysis, browser end-to-end tests, and accessibility audits requires manual configuration and heavy pipeline scripting.
WP Rig: Out-of-the-Box QA Automation
WP Rig features an incredibly advanced, pre-configured QA suite that operates with a single command:
PHPStan Static Analysis: Runs strict type checking and static analysis to capture bugs before execution.
Playwright E2E Browser Testing: Automatically spins up headless browsers to run smoke tests, verify navigation links, and execute visual regression audits via screenshots.
Automated Accessibility Auditing: Integrates axe-core directly into browser tests to perform automated accessibility audits on layouts (such as 404 and archive templates), ensuring WCAG compliance.
CI/CD Pipeline Ready
Because WP Rig’s build toolchain is completely self-contained, it integrates seamlessly into modern Continuous Integration / Continuous Deployment (CI/CD) pipelines (like GitHub Actions or GitLab CI).
Under the "export" settings in config/config.json, developers have absolute control over bundling. The bundler automatically excludes local configurations, private .env variables, development documentation, and raw assets. This lets your CI/CD pipeline compile your assets with npm run build, run automated static and browser testing, package the clean ZIP with npm run bundle, and deploy a lightweight, hardened artifact directly to production.
8. Parent-to-Child Theme Generation for ANY Parent Framework
For many agency developers, the absolute ideal workflow is building incredibly fast, modern child themes that inherit functionality from popular parent themes.
Roots Sage: Locked Into Standalone
Sage is structurally engineered to operate as a standalone, parent starter theme. Using Sage to build a child theme for a third-party framework is highly complex and practically defeats the purpose of Sage’s Laravel-based architecture.
WP Rig: Ultimate Child Theme Generator
WP Rig includes a dedicated, highly versatile childify script:
nodenode/childify.js
This script instantly bootstraps a streamlined child theme in your workspace. What makes WP Rig’s child themes revolutionary is that they are fully compatible with any parent theme on the market.
Whether you want to build a high-performance child theme for Astra, GeneratePress, Divi, Kadence, or Twenty Twenty-Four, WP Rig generates a child theme that inherits parent templates while retaining its own independent, fully operational WP Rig modern build system (complete with esbuild, Lightning CSS, and the Modern Dev Server).
You can write modern CSS nesting, dynamic image pathing, and TypeScript inside the child theme’s src/ directory, while letting your favorite external parent framework handle core theme layouts.
Both WP Rig and Roots Sage are exceptional, developer-first boilerplate platforms, but they cater to fundamentally different philosophies.
Choose Roots Sage if you are a Laravel developer who is completely committed to the Laravel-Acorn ecosystem, strictly prefer utility-first workflows with Tailwind CSS, and only build standalone, premium client themes that will never be submitted to the official WordPress repository.
Choose WP Rig if you want an ultra-lightweight, natively structured, high-performance starter theme that respects standard WordPress coding patterns. WP Rig is the definitive choice if you want blistering build speeds that rival Vite, seamless native block and Full Site Editing integration, a-la-carte component modularity, out-of-the-box automated static and browser testing, secure CI/CD pipeline bundling, and the ability to author powerful child themes for popular parent frameworks like Astra or GeneratePress.
Are you ready to experience high-performance, future-proof theme engineering? Clone WP Rig, run npm run dev:modern, and elevate your WordPress development workflow today!
In the rapidly evolving world of WordPress theme development, finding a workflow that balances high-performance output, clean architecture, and modern developer convenience is a constant struggle. For years, developers were forced to choose between bloated, monolithic starter themes or spend dozens of hours bootstrapping their own modern build configurations with Gulp, Webpack, or Sass.
Enter WP Rig.
WP Rig is not just another starter theme—it is a modern, highly opinionated, and performance-optimized theme engineering platform. If you want to build custom, directory-ready WordPress themes that load instantly, ace Google’s Core Web Vitals, and leverage modern tooling like Bun, esbuild, and Lightning CSS, WP Rig is the definitive choice.
In this deep-dive guide, we break down the top 10 reasons to use WP Rig for your next custom WordPress theme development project, drawing directly from its advanced architecture, workflow specifications, and automated tooling.
1. The “A La Carte” Component Architecture (Goodbye, Bloated functions.php)
Historically, WordPress starter themes have relied on a massive, chaotic functions.php file or unorganized helper files to bootstrap theme functionality. This classic procedural design makes themes highly fragile, difficult to maintain, and packed with bloated code that developers must manually strip out.
WP Rig v3.4 completely reimagines theme PHP architecture using a strict, modular Object-Oriented Programming (OOP) model. Under the hood, WP Rig organizes features into self-contained Components located under the inc/ directory. Each feature (such as custom backgrounds, nav menus, or post thumbnails) is encapsulated in a dedicated class that implements a standardized Component_Interface.
wprig/inc/├──Theme.php# Main theme bootstrap class├──Component_Interface.php# Standard contract for components├──{Feature_Directory}/│└──Component.php# Implements Component_Interface
To take this modularity to the next level, WP Rig features the Open Component Registry (OCR). Instead of manually writing boilerplate, you can discover, add, and manage performance-optimized components dynamically from the command line:
npm run rig:list – Inspect all active and installed theme components.
npm run rig:search [keyword] – Discover bolt-on, community-built components.
npm run rig:add [slug] – Download and inject a component directly into your theme.
npm run rig:remove [slug] – Completely prune a component and its assets with zero residue.
Private Component Registries for Agencies
For agency environments, this modularity is incredibly powerful. Beyond the public registry, development teams can set up and configure private component registries. This allows agencies to package, version, and distribute their own vetted, proprietary internal components (such as specialized API integrations, custom block layouts, or customizer setups) securely across all of their client sites. You achieve maximum code reuse without exposing sensitive intellectual property to the public.
2. A Blazing-Fast, Vite-Like Modern Compilation Pipeline
Legacy WordPress theme compilation can feel incredibly sluggish. WP Rig has completely redesigned the asset build pipeline to deliver a blazing-fast local developer experience that rivals modern front-end build systems like Vite.
WP Rig utilizes cutting-edge, high-performance engines to process source assets in milliseconds:
Bun or Node.js drive the high-speed task runners.
esbuild compiles and minifies TypeScript and ESNext JavaScript (assets/js/src/) in milliseconds.
Lightning CSS parses, imports, and minifies stylesheets with remarkable efficiency.
For active development, WP Rig introduces an opt-in Modern Dev Server (npm run dev:modern) that replaces legacy, heavy compilers. Operating much like a Vite dev server, this lightweight proxy listens on custom ports, injects styles on-the-fly directly into the browser without full page reloads, and refreshes templates instantaneously. This gives you desktop-app-like compilation speeds specifically tuned for local WordPress environments, keeping you in a flow state rather than waiting on your terminal.
3. AI-Optimized Coding Companions
Artificial intelligence is changing how we write code. However, typical legacy WordPress code—with its procedural style, global variables, and lack of typing—is notorious for causing AI model “hallucinations” in tools like ChatGPT, Claude, and GitHub Copilot.
WP Rig is engineered from the ground up to be AI-friendly. It provides highly structured, predictable architecture that LLMs can read and understand perfectly. Key design choices that optimize WP Rig for AI-driven workflows include:
Strict Namespacing: All theme PHP classes operate under the WP_Rig\WP_Rig root namespace, avoiding global scope pollution.
Autoloading (PSR-4): Sibling classes map strictly to the directory layout, making it easy for AI agents to locate dependencies.
Type Hinting: Extensive use of parameter and return type hints makes code self-documenting and structurally predictable.
Integrated LLM Mapping: WP Rig includes a structured .ai/ directory and llms.txt configurations, mapping architectural guidelines so custom AI assistants can immediately grasp local theme conventions and write registry-ready components with near-zero errors.
When your AI assistant understands the codebase, your development velocity skyrockets.
4. Built-in Performance Architecture for Core Web Vitals
Slow page speeds destroy conversions and harm search engine rankings. In WP Rig, maximum performance is built right into the framework’s core files. The platform utilizes three advanced strategies to ensure your custom themes score a perfect 100 on Google Lighthouse:
A. Progressive Loading of CSS
Standard themes bundle all styles into a single, massive stylesheet. WP Rig utilizes progressive CSS loading using in-body tags.
While global.css contains baseline layouts and is loaded in the <head>, other component-specific stylesheets (like comments.css, sidebar.css, and widgets.css) are registered in inc/Styles/Component.php and loaded conditionally only when that specific module is present in the current viewport:
Developers can print these styles dynamically in template partials using:
wp_rig()->print_styles('wp-rig-comments');
This significantly reduces the initial page payload, leverages HTTP/2 multiplexing, and optimizes browser parsing times.
B. Cookie-Based Critical CSS Inlining
To deliver an instantaneous First Contentful Paint (FCP), WP Rig features an intelligent cookie-based critical CSS strategy:
First-time visitors receive critical above-the-fold CSS inlined directly into the HTML <head>.
Once loaded, WP Rig sets a wprig_critical_cached cookie in the user’s browser.
On subsequent visits, the theme detects this cookie and enqueues the styles as standard, cached external files, preventing redundant HTML bloat.
C. Localized Font Optimization
To eliminate layout shifts (CLS) and Flash of Unstyled Text (FOUT), WP Rig downloads and localizes Google Fonts to the assets/fonts/ directory. The theme automatically preloads these local font assets via <link rel="preload"> and defaults them to font-display: block or swap, ensuring fonts are rendered seamlessly before rendering text.
5. Native Block and Full Site Editing (FSE) Integration (With Directory-Ready Safeguards)
Transitioning to modern WordPress Gutenberg and block-based architecture can be highly complex. WP Rig acts as the perfect bridge, supporting both classic theme files and cutting-edge Full Site Editing (FSE) standards.
Key Gutenberg-ready features in WP Rig include:
theme.json Configuration: Seamlessly propagates design tokens, custom colors, spacing systems, and typography directly to the WordPress block editor and Global Styles.
Theme-Scoped Gutenberg Blocks: Scaffold custom block directories directly inside the theme directory (assets/blocks/<slug>/) instead of spinning up heavy standalone plugins. npm run block:new my-custom-block — –title=”My Custom Block”
PHP-Only Blocks (WordPress 7.0 Ready): WP Rig supports zero-build block development. By utilizing the --architecture php flag: npm run block:new my-php-block -- --architecture php WP Rig scaffolds a schema-compliant, auto-registering block.json and a simple PHP render.php template. This bypasses React build overhead entirely, making simple blocks incredibly fast to construct.
Automatic Block Registration: The block component at inc/Blocks/Component.php dynamically scans the assets/blocks/ directory on init and registers every discovered block automatically. No manual PHP bootstrapping required!
Omission & Promotion Rules for the WordPress.org Directory
If you are authoring a theme for the official WordPress.org Theme Directory, you are likely aware of their strict theme review guidelines regarding custom blocks: block registration is generally considered “plugin territory” and is prohibited inside themes. WP Rig handles this limitation beautifully. You can easily build, test, and preview custom theme-scoped blocks during local development, and when preparing for directory submission, you can cleanly promote them to standalone plugins with a single command:
npmrunblock:promote-pluginmy-custom-block
This isolates the block files and bundles them into a separate, installable plugin, keeping your theme completely compliant with official review guidelines while preserving block development convenience.
Submitting a custom theme to the official WordPress.org Theme Directory or delivering highly robust code to an enterprise client can be a grueling process of debugging and revision. WP Rig removes this friction by building advanced Quality Assurance (QA) tools directly into the theme itself.
With a single terminal command:
npmrunai:check
WP Rig executes an automated battery of tests and static analysis:
PHPStan Static Analysis: Validates your PHP code, checks type safety, enforces strict parameter returns, and captures potential bugs before runtime.
PHP Code Sniffer (PHPCS): Audits your source files against the strict rulesets of the official WordPress Coding Standards (WPCS) and WordPress.org Theme Review guidelines.
Playwright End-to-End (E2E) Testing: Launches automated browsers to execute smoke tests, verify navigation, and run visual regression audits using screenshots (npm run test:e2e:screenshot).
Automated Accessibility Auditing: Playwright leverages axe-core to perform automated WCAG accessibility audits on critical templates (like 404 and archive pages) to ensure compliant HTML output.
This robust QA pipeline ensures that your custom theme is completely secure, bug-free, and directory-ready from day one.
7. Secure Bundling and Enterprise-Grade CI/CD Pipelines
Modern development and deployment demand a higher standard of security and automation. WP Rig addresses these needs by integrating precise packaging filters and robust compatibility with Continuous Integration / Continuous Deployment (CI/CD) pipelines.
Granular Export and Bundle Control
When preparing a theme for production, you want to guarantee that local developer configurations, raw assets, and internal documentation do not make their way to the production server. Under the "export" block in ./config/config.json, WP Rig provides complete control over the bundling process.
By default, the theme bundler automatically excludes sensitive developer assets—such as .env files, API keys, the .git directory, node_modules, standard Markdown files, and raw source assets—copying only your compiled public files and production-ready templates. This ensures your final .zip file is perfectly unbloated and entirely secure.
Automated Deployment Pipelines
WP Rig is engineered to act as a key player inside enterprise deployment pipelines (such as GitHub Actions, GitLab CI, or Bitbucket Pipelines). In a standard CI/CD workflow, you can automate:
Dependency Installation & Building: Let the pipeline spin up the clean build task (npm run build) to generate compiled production scripts and stylesheets.
Automated QA Verification: Run automated linting (npm run lint), PHPStan analysis, and Playwright headless browser tests to ensure zero code regressions.
Clean Artifact Generation: Package the production-ready theme with npm run bundle and securely deploy the lightweight archive directly to your staging or production servers.
8. Future-Proof CSS Workflows via Lightning CSS (Forget Sass)
For years, CSS pre-processors like Sass or LESS were mandatory to write maintainable styles. However, compiling heavy pre-processors adds significant build bloat and compiles duplicated selectors that increase final bundle sizes.
Modern CSS has evolved, and WP Rig embraces it directly. Moving away from pre-processors and intermediate parsers like PostCSS, WP Rig processes styles entirely using Lightning CSS to compile clean, native, future-proof markup today:
Custom Properties (Variables): Declare variables globally in assets/css/src/_custom-properties.css under the :root selector and reference them dynamically throughout your stylesheets.
Bleeding-Edge Custom Media Support: Store breakpoint media queries as variables using the upcoming @custom-media specifications declared in _custom-media.css. Lightning CSS parses these declarations and compiles them into fully backwards-compatible media queries automatically.
Automated CSS Image Path Resolution: Referencing local theme images in static CSS files is a classic absolute pathing headache for developers. WP Rig’s Lightning CSS pipeline includes a specialized automation script that dynamically resolves relative image paths (e.g., pointing to assets inside assets/images/) and compiles them into production-ready URLs. This removes manual path correction entirely.
9. Accessibility (a11y) and Mobile-First Progressive Enhancement
Creating a truly accessible website that accommodates all users can take countless hours of auditing. WP Rig simplifies accessibility by baking strict WCAG compliance and mobile-first principles directly into its foundational HTML markup:
Mobile-First Baseline: The markup uses a clean, lightweight HTML structure. Mobile-first styling serves as the baseline, while complex multi-dimensional grids are served using CSS Grid and Flexbox as progressive enhancements. Older browsers that do not support grid layouts seamlessly fall back to the optimized, single-column mobile view.
Keyboard & Screen Reader Friendly: Navigation templates and responsive mobile menus are pre-configured with keyboard-accessible tab focuses and dynamic ARIA attributes.
Automated Audits: With Playwright and axe-core integrated into the testing pipeline, you can run accessibility audits locally on your custom pages to identify violations before going live.
10. Ultimate Child Theme Authoring for ANY Parent Theme
For many web agencies, the ideal workflow involves maintaining a highly optimized “parent” theme and spinning up lightweight “child” themes for individual client projects. However, child themes often lose access to the parent’s compilation pipeline, forcing developers to manage clumsy independent bundlers.
WP Rig features a dedicated childify script that elegantly solves this problem—and it is compatible with any WordPress parent theme on the market.
Whether your target site operates on a WP Rig parent or popular frameworks like Astra, GeneratePress, Divi, Kadence, or Twenty Twenty-Four, running:
nodenode/childify.js
instantly bootstraps an optimized child theme in your directory.
This generated child theme:
Inherits templates and configurations cleanly from your chosen parent theme.
Maintains its own independent, fully operational copy of the WP Rig modern build system, including esbuild, Lightning CSS, and the Modern Dev Server.
Allows you to write modern CSS nesting, dynamic image pathing, and TypeScript inside the child theme’s src/ directory, while letting the third-party parent theme handle core template rendering.
This delivers the ultimate child development architecture, allowing you to use WP Rig’s high-performance build tools on any WordPress site, regardless of the active parent theme.
Conclusion: Elevate Your WordPress Theme Development with WP Rig
WP Rig is more than a starter theme; it is an engineered, developer-first platform designed to elevate the standards of WordPress theme development. By combining strict modular PHP architectures, blisteringly fast compilation tools like Bun and esbuild, native Full Site Editing compatibility, and automated QA systems, WP Rig empowers you to build themes that are incredibly clean, lightning-fast, and future-proof.
Stop wrestling with bloated code and slow compilers. Clone WP Rig, start your local server, and experience modern WordPress theme engineering today!
Thanks to the WordPress Coding Standards folks updating WPCS to V3, we have upgraded that dependency in WP Rig so now PHPCS gives you more updated coding standards straight from the WordPress team.
We noticed some significant room for improvement in the default mobile menu experience, so we decided to upgrade that. The default mobile menu now properly supports accordion style expand/collapse functionality for sub menus.
Furthermore, we have taken some significant time and consideration into make WP Rig as easy as possible to convert to a Universal theme (unlocking block-based features like full site editing). The revamped mobile menu now also works with the Gutenberg Navigation block. So menus built with the navigation block offer a very similar experience to the standard main navigation, but be sure to double check all settings at the block level for expected layout and functionality. Depending on how you layout your header, you will need to tweak the CSS for the navigation to ensure a good UX.
We have had a video on our YouTube channel showing you how to convert WP Rig to a universal theme, however, we wanted to take it one step further. We have now included a node script that can be run via the command line to execute all of the steps outlined in the video with one command:
npm run editor-support
Please note that once you have run this script, you will need to create/edit your index page template in the Site Editor to see your website. Currently, the script inserts a completely blank index file, so be aware of that. The index page template overrides the default index.php. All other page templates should work accordingly. We recommend building your header and footer as template parts (synced block patterns), then just using the Content block in between.
Changelog – 2.3.1
Updated WPCS to V3. Props @robruiz
Improvements to mobile navigation, primarily collapsible sub-menus, including consideration for Gutenberg navigation block. Props @robruiz
Improvements to header layout. Props @robruiz
Added FSE Conversion NPM script. Props @robruiz
Updated all dependencies. Props @robruiz
Added onload attribute to preload styles. Props @robruiz
Updated navigation CSS to prevent blocking of content when mobile menu is toggled off and to have smooth transition from toggle-on toggled-off states. Props @Spleeding1
Monthly Contributor meetings are no longer being help, however, our Slack workspace is still up and running and you are welcome to jump in there and ping anyone.
We are looking to hold meetings every month on the first Sunday of the month. Our current time is at 11 am central, but dates and time can change if more people want to attend but it doesn’t fit with their schedule. On that note we are looking for more maintainers so if you are looking to help us grow this project please reach out to us on Github or join our slack. We are planning on putting out the agenda before the next meeting so that those that would like to participate can.
WP RIG Development
Meeting Notes 06/05
06 JUNE 2022 / 11:00 AM CENTRAL
ATTENDEES
Rob Ruiz, Donte Henley, Sue Baily Weaver
AGENDA
Create a Showcase Page
Talked of salvaging the already created(but not public) showcasing page that we currently have to show of examples of WP Rig being used in projects.
Talked best way of implementing the page, be it a static page or an index page that pulls from custom post type.
Talked of creating a form where users can submit their example and it auto generates a draft post to be reviewed and published on the site.
NOTES
Maintainer Meetings now scheduled for the first Sunday of the month at 11:00 am Central.
ACTION ITEMS
Next Build: Donte would like to get a new version pushed out in the next week and then have it sent out to the community through social media.
We have update a couple of the NPM dependencies for WP Rig as well as made some effort into slightly improving accessibility. Also put in a fix that caused php to throw an error that it was looking for a custom.js file that wasn’t there, if you have been working from the 2.2.0 release I suggest you either update or remove the code from Inc/Scripts/Component.php
Removed call for custom.min.js from the Scripts/Component.php file. Was throwing an error before.
We are looking to hold meetings every month on the first Sunday of the month. Our current time is at 11 am central, but dates and time can change if more people want to attend but it doesn’t fit with their schedule. On that note we are looking for more maintainers so if you are looking to help us grow this project please reach out to us on Github or join our slack. We are planning on putting out the agenda before the next meeting so that those that would like to participate can.
We are looking to hold meetings every month on the first Sunday of the month. Our current time is at 11 am central, but dates and time can change if more people want to attend but it doesn’t fit with their schedule. On that note we are looking for more maintainers so if you are looking to help us grow this project please reach out to us on Github or join our slack. We are planning on putting out the agenda before the next meeting so that those that would like to participate can.
WP RIG Development
Meeting Notes 05/01
01 MAY 2022 / 11:00 AM CENTRAL
ATTENDEES
Rob Ruiz, Donte Henley, Sue Baily Weaver
AGENDA
Last Meeting Follow-up
Gulp issues. Use Webpack and not Gulp? (Getting started with npm and Composer is overwhelming/confusing for inexperienced developers; Donte suggested making issue for updating our Gulp JSON dependencies to the latest versions because he is having to manually update one in particular [postcss-preset-env] – – Call to community to help with addressing updating dependencies??)
New Business
Education being used to band-aid issues in Rig (YouTube videos on Easy Customizer & ACF are getting views – – we could do more of that, maybe once a month; Donte wants to do a Twitch/live stream of creating a website; OBS for recording – Rob/Donte may meet about that).
Plugin development – Would developers like using something like WP Rig for plugin development? Block themes are forcing people to not put so much functionality in the theme. WP Rig may be perpetuating that problem (Rob mentioned the goal of not adding too much functionality into themes – theme is primarily for styling?; Donte’s work style is a bit different – he does add more functionality into his themes).
PRs: Prettier added recently (wondered if it is compatible with the rest of WP Rig or duplicating functionality? Seems to be okay but we should double check it?)
ISSUES: Donte would like us to spend a little time looking at what PRs are left and figuring out which may have already been addressed; we ran out of time on the call to get through them
NOTES
Maintainer Meetings now scheduled for the first Sunday of the month at 11:00 am Central.
ACTION ITEMS
Next Build: Donte would like to get a new version pushed out in the next week and then have it sent out to the community through social media.
At the end of 2020, we began transitioning responsibility of WP Rig over to a new team of maintainers. Today, we have a new team of maintainers and progress has been made on getting WP Rig moving again. We pushed out a new release at the beginning of the year that addressed some long-standing issues in the latest version of WP Rig. Specifics around that can be found in Github. So now what?
We have big plans for WP Rig moving forward…
First and foremost, we are currently working on improving documentation around WP Rig in a big way, so stay tuned to the wprig.io website for updates there, as this is where most documentation for WP Rig will be found in the future.
Second, we are working on some semi-secret integrations with some local ;) development build tools to make it easier and faster to get up and running with theme development using WP Rig. We are hoping that by introducing these, we can generate more interest around this amazing tool and get more people actively contributing to this project.
To keep things short and sweet, we have some pretty ambitious ideas for ways to improve WP Rig in the future. More features, better documentation, and integration with other popular development tools are our primary focuses for the rest of 2021.
We are always actively looking for people who would like to contribute to WP Rig. If you are interested in being a part of this journey with us, please feel free to reach out to us on Github, or join our Slack workspace to join the conversations around all things WP Rig and WordPress theme development.