LightSpeed Theme is a custom WordPress block theme built by LightSpeed for fast, accessible, and maintainable websites using the WordPress Site Editor and block editor.
This is the LightSpeed Theme repository — a production WordPress block theme for client and commercial projects.
It includes:
- A working WordPress block theme
- Validation and linting tooling
- AI guidance files and GitHub Copilot instructions
- Structured folders for prompts, reports, tasks, docs, and AI agents
Note: This theme is not specifically packaged for WordPress.org submission. It is designed for client and commercial block theme development.
- WordPress theme developers at LightSpeed
- Developers maintaining or extending this theme
- AI agents building or maintaining block themes in this repo
| Area | Details |
|---|---|
| Theme files | style.css, theme.json, functions.php, readme.txt |
| Templates | templates/index.html |
| Parts | parts/header.html, parts/footer.html |
| Style variations | styles/light.json, styles/dark.json |
| Assets | assets/fonts/, assets/css/, assets/js/, etc. |
| PHP includes | inc/ (empty, ready for use) |
| Patterns | patterns/ (empty, ready for use) |
| Validation | theme-utils.mjs, package.json, composer.json |
| AI guidance | AGENTS.md, CLAUDE.md, .github/copilot-instructions.md |
| Copilot prompts | .github/prompts/ |
| Reports | .github/reports/ |
| Tasks | .github/tasks/ |
| Docs | docs/ |
| Agent assets | .agents/skills/, .agents/agents/ |
| CI workflows | .github/workflows/ |
- PHP 8.1+
- WordPress 6.4+
- Node.js (see
.nvmrcfor version) - Composer 2.x
# 1. Clone the repo
# 2. Install Node dependencies
npm install
# 3. Install Composer dependencies
composer install
# 4. Validate the theme
npm run theme:validate
# 5. Validate JSON schema
npm run schema:validate/
├── AGENTS.md # AI and developer guidance
├── CLAUDE.md # Points to AGENTS.md
├── CHANGELOG.md # Keep a Changelog / SemVer
├── README.md # This file
├── readme.txt # Light distribution placeholder
├── style.css # Block theme header
├── theme.json # Primary theme settings
├── functions.php # Minimal PHP
├── screenshot.png # Create manually
├── CODEOWNERS
├── theme-utils.mjs # Validation and utilities
├── package.json
├── composer.json
├── .editorconfig
├── .gitignore
├── .gitattributes
├── .nvmrc
├── .coderabbit.yml
├── .lintstagedrc.json
├── assets/
│ ├── fonts/
│ ├── icons/
│ ├── logos/
│ ├── images/
│ ├── css/
│ └── js/
├── docs/ # End-user documentation
├── inc/ # PHP includes
├── parts/
│ ├── header.html
│ └── footer.html
├── patterns/
├── styles/
│ ├── blocks/
│ ├── sections/
│ ├── light.json
│ └── dark.json
├── templates/
│ └── index.html
├── .github/
│ ├── copilot-instructions.md
│ ├── instructions/
│ ├── prompts/
│ ├── reports/
│ ├── tasks/
│ └── workflows/
└── .agents/
├── skills/
└── agents/
| Command | Description |
|---|---|
npm run schema:validate |
Validate theme.json and styles JSON schemas |
npm run theme:validate |
Validate theme consistency |
npm run patterns:escape |
Check PHP patterns for escaping issues |
npm run security:scan |
Scan PHP files for security issues |
npm run lint |
Run all linting |
npm run lint:json |
Lint JSON files |
| Command | Description |
|---|---|
composer run phpcs |
PHP code sniffer |
composer run phpcbf |
Fix auto-fixable PHP issues |
composer run lint:php |
Lint PHP syntax |
theme.json— set your colour palette and typographyfunctions.php— add any theme supports you needparts/header.html— build your headerparts/footer.html— build your footertemplates/index.html— build your main templateCHANGELOG.md— track your changesCODEOWNERS— set your team as owners
| What | Where |
|---|---|
| Copilot prompts | .github/prompts/ |
| Developer reports | .github/reports/ |
| Task lists | .github/tasks/ |
| End-user documentation | docs/ |
| Portable AI skills | .agents/skills/ |
| Agent personas | .agents/agents/ |
See AGENTS.md for full guidance on AI workflow conventions.
See LICENSE.