Skip to content

Latest commit

 

History

1,163 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Elementary

License: GPL-2.0-or-later PHP 8.2+ WordPress block theme

A starter block theme that gives you a quick head start on new block-based themes, with a bunch of developer-friendly features built in.

Theme Elementary preview


This is a starter WordPress block theme. It provides the structure, examples, asset pipeline, checks, and optional development features needed for building a new block theme.

This theme uses rtcamp/wp-primitives as a runtime dependency and ships with @rtcamp/wp-tooling for streamlined project initialization and feature scaffolding.

Working on this theme? See DEVELOPMENT.md for the architecture overview, the module pattern, and how to add new classes. CONTRIBUTING.md covers the dev setup and PR flow.

Get started

Create a new theme with Composer, or clone this repository:

composer create-project rtcamp/theme-elementary my-theme

Start with the Getting Started guide — a short, concrete walkthrough covering prerequisites, acquiring the starter, installing dependencies, personalizing the theme, and seeing it running in local WordPress.

What is included

Initialization personalizes the theme and lets you keep or remove the supplied examples. The asset pipeline builds CSS, JavaScript, and blocks; HMR and Tailwind are optional. Linting, static analysis, tests, and AI-assisted setup and scaffolding are included for project development.

See Included features for the available examples and options.

Choose your next task

Once the theme is running, here's where to go next:

I want to… Read
Initialize or manage a theme Initialization
Run WordPress locally, build, or check a change Local development
Explore the supplied examples and optional features Included features
Generate a feature Scaffolding
Extend the theme by hand Development guide

AI tooling

This theme ships AI-assisted setup and feature scaffolding, kept in step across assistants:

  • Claude Code: retained skills in .claude/skills/ — /init, /scaffold, and /setup.
  • GitHub Copilot: /init and /scaffold prompts are available while setting up this source repository.
    • Initialization removes the Copilot-specific files under .github (copilot-instructions.md, prompts/, instructions/); issue templates, the PR template, and workflows stay.
  • A committed knowledge graph in graphify-out/ lets AI assistants query the codebase's structure instead of reading it all; see docs/internal/knowledge-graph.md for how it's built and kept current.

Shared conventions for all assistants live in AGENTS.md.

Folder structure

functions.php               # PHP entry point
inc/                        # project PHP (PSR-4 root)
├── Autoloader.php          # wraps vendor/autoload.php with graceful failure
├── Main.php                # theme bootstrap — loads services
├── Abstracts/              # base classes for theme features
├── Helpers/                # stateless static utilities
├── Core/                   # theme-wide infra — assets, components, menus, templates, theme setup
└── Modules/                # feature areas
    ├── BlockExtensions/    # block render filters and integrations
    ├── Settings/           # admin settings pages (extend AbstractSettingsPage)
    └── Shortcodes/         # shortcodes
src/{components,css,js,fonts,images}/ # frontend sources → assets/build/
parts/ patterns/ templates/ # block parts, patterns, templates
template-parts/             # PHP template partials
styles/                     # theme.json style variations
theme.json  style.css       # theme config
bin/                        # init and scaffold scripts
tests/{js,php}/             # JS & PHP tests
vendor/rtcamp/wp-primitives/ # framework (Composer-managed; do not modify)

Some of these directories hold supplied examples that initialization can remove; see Included features.

License

GPL-2.0-or-later

rtCamp — high-performance enterprise WordPress

About

A starter block theme for building new WordPress themes, with a PSR-4 structure on rtcamp/wp-primitives, one-command setup, feature scaffolding, HMR and BrowserSync, optional Tailwind, and tests and CI out of the box.

Topics

Resources

Contributing

Stars

36 stars

Watchers

27 watching

Forks

Releases

Used by

Contributors

Languages