# Introducing Elementary, rtCamp’s block-based starter theme

*Published:* 2022-08-26
*Author:* Rahi Prajapati

> rtCamp introduces theme Elementary that gives a quick headstart for developing new block-based themes along with a bunch of developer-friendly features.

![Elementary-BlockBasedTheme-BlogPost-featured-gk-01](https://rtcamp.com/wp-content/uploads/sites/2/2022/08/Elementary-BlockBasedTheme-BlogPost-featured-gk-01.png?w=720&resize=720%2C377&quality=100&strip=all)WordPress introduced FSE (Full Site Editing) with its core 5.9, at the end of January 2022, empowering developers with the choice to move from traditional [PHP template based](https://developer.wordpress.org/themes/) to the new [block-based themes](https://developer.wordpress.org/block-editor/how-to-guides/themes/block-theme-overview/).

As PHP-based themes have been around for a while, the WordPress ecosystem has base themes to help developers get started with a traditional theme. To facilitate a headstart for developing the relatively new block-based themes, we at rtCamp developed ‘[Elementary](https://github.com/rtcamp/theme-elementary)’. Here are some of its main features –

- Quick start to initializing the theme
- Ready to use boilerplate code for all the FSE features
- Provides asset building and testing framework by default
- Follows [WordPress coding standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/)

Here’s why you would want to use Elementary as the base for getting started with your block theme development:

1. It is regularly updated with the latest FSE features being introduced. Which means you’ll be able to find the latest features in action through the theme.
2. It has an in-built ‘Theme setup’ script, which is an interactive script that helps you personalize the theme to your requirements.
3. To ensure better performance, it demonstrates modularizing and loading styles only as required on a page.

Additionally, Elementary also comes bundled with a bunch of developer-friendly features.

## **Getting started**

### Single command setup

Setting up Elementary is as simple as it gets – run this single [composer](https://getcomposer.org/) command.

```
composer create-project rtcamp/elementary [folder_name]
```

The command will clone the repository at the specified folder name, and automatically install the required dependencies. It will also trigger a script to help you set up various aspects of the theme, based on the questions you answer. Once you have the base setup, you will need to build assets on your local machine since built assets aren’t a part of the version control. For further information, you can visit the [development section of the project readme](https://github.com/rtcamp/theme-elementary#development-computer).

### **Boilerplate code for custom features**

The theme provides you with boilerplate code which comes in handy while building new custom features. It includes,

- Asset building
- Block templates and template parts
- Global styles presets
- Testing frameworks setup for PHP(using PHPUnit) and JS(using Jest)

### **theme.json file**

The theme.json file is one of the most fundamental elements of a block theme that helps configure and customize the WordPress editorial experience. Elementary ensures that the theme.json file has enough sample configuration for a developer to begin with, and later configure it to their requirements.

## **Installation and usage**

Using Elementary is quite simple, as suggested above, where the “Single command setup” takes care of everything required to get started with building your custom block theme.

!

The command will take a few moments while it loads all the necessary dependencies. Once done, you’ll be presented with a question, “Would you like to setup the theme? (y/n)”. If you reply positively, you’ll be prompted with another question asking you to provide the theme name. You’ll then be presented with the necessary theme details, and once you approve, the script does the necessary search-replacing in the theme content.

![theme-elementary-demo](https://rtcamp.com/wp-content/uploads/sites/2/2022/08/theme-elementary-demo.gif?resize=720%2C391&quality=100&strip=all)## **Conclusion**

We set out to create Elementary to help developers get started with block themes effortlessly, and explore FSE to its fullest potential. You can directly contribute to our ever-evolving project or drop your suggestions and thoughts using the [GitHub issues.](https://github.com/rtcamp/theme-elementary/issues/)

**Links:** [Theme Elementary](https://github.com/rtcamp/theme-elementary/) **|** [Packagist](https://packagist.org/packages/rtcamp/elementary) **|** [We’re Hiring](https://careers.rtcamp.com/)!

### Categories and Taxonomies

#### Categories
[Releases](https://rtcamp.com/blog/category/release.md)

#### Tags
[WordPress](https://rtcamp.com/blog/tag/wordpress.md), [Release](https://rtcamp.com/blog/tag/release.md), [Theme](https://rtcamp.com/blog/tag/theme.md)

#### Service
[Custom Development](https://rtcamp.com/blog/service/custom-development.md)

### Related Posts

- [What's coming in WordPress 7.2](https://rtcamp.com/blog/whats-coming-in-wordpress-7-2.md)
- [WordPress 7.1 “Mary Lou” : 63 rtCampers contribute to 36th consecutive release](https://rtcamp.com/blog/wordpress-7-1.md)
- [Publishio : Publish on your WordPress website from Claude & ChatGPT](https://rtcamp.com/blog/introducing-publishio.md)
- [WordPress 7.0 “Armstrong” : 60 rtCampers contribute to 35th consecutive release](https://rtcamp.com/blog/wordpress-7-0.md)
- [Extending the WordPress AI Plugin Releasing Connectors for OpenRouter, LM Studio & Universal OpenAI](https://rtcamp.com/blog/wordpress-ai-plugin-connectors-openrouter-lm-studio-openai.md)

### Navigation

- Previous Post: [WPPC Feature Update: Filter through 59K+ plugins](https://rtcamp.com/blog/wordpress-plugin-compare-introducing-filter-page.md)
- Next Post: [Gearing up for our biggest campus hiring drive yet](https://rtcamp.com/blog/our-biggest-campus-hiring-drive-2022.md)
