A WordPress Full Site Editing starter kit that provides a foundation for building modern WordPress themes and plugins.
Celestial FSE is a comprehensive starter kit for WordPress development that leverages the power of Full Site Editing (FSE). FSE is a new approach to WordPress theme development that allows users to visually edit all parts of their site using blocks, including headers, footers, and other template parts.
This starter kit includes:
- A custom FSE theme that supports modern WordPress site building
- Custom blocks developed with React and the WordPress Block API
- Block scaffolding using @wordpress/create-block
- A plugin structure for extending WordPress functionality
- Local development environment configuration using wp-env
- CI/CD integration with CircleCI for automated linting and deployment
- Custom color palette configuration with theme.json
This project uses wp-env for local WordPress development. wp-env provides a quick and easy way to create a local WordPress environment using Docker.
To set up the local development environment:
- Make sure you have Docker installed and running
- Install wp-env globally:
npm install -g @wordpress/env
- Start the environment:
wp-env start
The local WordPress site will be available at http://localhost:8888 (default credentials: admin/password).
To get started with development:
-
Navigate to the
blocks
directory:cd blocks
-
Install dependencies:
npm install
-
Start the development server:
npm run start
This will compile your blocks and watch for changes. The blocks in this project are scaffolded using @wordpress/create-block, which provides a standardized way to create custom WordPress blocks.
When setting up a new project based on this starter kit, you'll need to configure several aspects to match your project requirements:
The starter kit includes a customizable color palette defined in the theme.json
file. When creating a new project, you should update these color settings to match your project's brand colors.
For detailed instructions on how to modify the color palette, add new colors, and use them in your project, see the Theme Color Settings Documentation.
The starter kit allows you to customize fonts used in your project. You can add custom fonts to your theme by placing font files in the theme assets directory and configuring them in the theme.json
file.
For instructions on how to add and configure fonts in your project, see the Theme Font Settings Documentation.
TODO: In future updates, implement font optimization by creating subsets that include only necessary characters for better performance.
The starter kit includes a customizable spacing scale defined in the theme.json
file. This spacing system provides consistent spacing values that can be used throughout your site for margins, padding, and other spacing properties.
For detailed instructions on how to use the spacing system, modify spacing values, and implement them in your project, see the Theme Spacing Settings Documentation.
The starter kit includes pre-designed block patterns and custom block styles that can be used to create consistent and visually appealing layouts.
For information on available patterns, block styles, and how to use them in your project, see the Theme Patterns and Block Styles Documentation.
This project includes CI/CD integration with CircleCI for automated linting and deployment workflows. The configuration enables:
- Automated deployment to WP Engine environments (development, staging, production)
- Deployment triggered by specific tags or branch commits
- Automated building of custom blocks before deployment
- Proper file structure preparation for WP Engine environments
The deployment process is configured to work with WP Engine hosting and requires the following environment parameters:
prod_wpengine
: Production environment slugstage_wpengine
: Staging environment slugdev_wpengine
: Development environment slug
For more details on the CI/CD configuration, see the .circleci/config.yml
file.
The Celestial FSE Theme includes custom theme.json configuration with the following features:
- Custom color palette with a primary blue color
- Disabled default WordPress color palette
- Disabled custom color options to maintain design consistency
- Custom spacing scale with responsive values using CSS clamp()
- Custom font sizes with fluid typography support
- Removed default block patterns by disabling core-block-patterns support
These configurations help maintain design consistency across the site while providing the necessary customization options for content creators.
For a complete list of changes and features, please see the Changelog.