A modern performance-focused theme development toolkit for WordPress.
A modern performance-focused theme development toolkit for WordPress.
[!IMPORTANT] AI Agents: You MUST follow the Mandatory Development Protocol to ensure architectural integrity.
A progressive theme development rig for WordPress, WP Rig is built to promote the latest best practices for progressive web content and optimization. Creating a theme from WP Rig means adopting this approach and the core principles it is built on:
We are trying to be the starter theme for design-focused devs. If you have any ideas, questions, or suggestions for this project or are seeking to get involved in contributing or maintaining, please check out our discussion board on Github and read our contribute page on our website.
We have a new Documentation area that can be found on the WP Rig website. If you would like to contribute to our documentation efforts, please submit a request on our contribute page on our website.
WP Rig has been tested on Linux, Mac, and Windows.
WP Rig requires the following dependencies. Full installation instructions are provided at their respective websites.
WP Rig is built to lay a solid theme foundation, which makes it excellent for both parent themes and child themes. WP Rig now includes a dedicated childify script that optimizes the theme for use as a child theme while maintaining all the development benefits of the WP Rig workflow. This allows you to create lightweight child themes that inherit functionality from any parent theme while still leveraging WP Rig's build system.
wprig or wprig-themeslug. For instance, if your theme will eventually be named “Excalibur” your
development directory could be named wprig-excalibur. The excalibur directory will be automatically created
during the production process and should not exist beforehand../config/config.default.json for the default settings../config/config.json to override default settings../config/config.local.json, e.g. potentially sensitive info like the path to
your BrowserSync certificate.npm run rig-init to install necessary node and Composer dependencies.npm run dev to process source files, build the development theme, and watch files for
subsequent changes.npm run build can be used to process the source files and build the development theme without watching files
afterwards.npm run childify can be used to convert your WP Rig theme into a lightweight child theme that inherits from any parent theme.npm run ai:setup to configure the project for your specific AI coding agent (Claude, Cursor, Windsurf, etc.).When working with WP Rig, it is important to understand the appropriate Git workflow depending on what you are working on. If you are using WP Rig as a starting point for a new theme, you should use the following workflow:
It is also important to note that the main branch now ignores the package-lock.json file. While this is ideal for how we distribute WP Rig, it can cause issues when working with a local development environment or on a team using a forked WP Rig. If you are using a local development environment, you should add the package-lock.json file to the .gitignore file with a ! in front to prevent ignoring the file in your new theme's repo.
Here is an example of creating a custom theme config file for the project. In this example, we want a custom slug, name, and author.
Place the following in your ./config/config.json file. This config will be versioned in your repo, so all developers
use the same settings.
{
"theme": {
"slug": "newthemeslug",
"name": "New Theme Name",
"author": "Name of the theme author"
}
}Some theme settings should only be set for your local environment. For example, if you want to set local information for BrowserSync.
Place the following in your ./config/config.local.json file. This config will not be tracked in your repo and will
only be executed in your local development environment.
{
"dev": {
"browserSync": {
"live": true,
"proxyURL": "localwprigenv.test",
"https": true,
"keyPath": "/path/to/my/browsersync/key",
"certPath": "/path/to/my/browsersync/certificate"
}
}
}If your local environment uses a specific port number, for example, 8888, add it to the proxyURL setting as follows:
"proxyURL": "localwprigenv.test:8888"npm run bundle from inside the wp-rig development theme.wp-content/themes.WP Rig is natively designed for AI coding assistants (like Cursor, Windsurf, Copilot, or CLI agents). We employ a robust AI agent strategy to ensure the code generated adheres to WP Rig's strict Object-Oriented standards.
.ai/ directory, which maintains strict architectural context, project rules (.ai/PROJECT_RULES.md), and an agent state tracker (.ai/agent-state.md).npm run ai:setup to configure the workspace for your specific AI coding assistant. This script sets up the .ai/ONBOARDING.md flow so your AI learns the local theme conventions.WP Rig uses a modular component architecture and a modern build system to optimize your development workflow.
For more information about commands and useful workflows, please visit the WP Rig website.
WP Rig is released under GNU General Public License v3.0 (or later).
No open issues yet, or sync has not completed.