Introduction

Refact Starter Theme is a WordPress Full Site Editing (FSE) theme designed for rapid development with modern tools and standards. This guide will help you set up and use the theme, including various configurations and scripts provided in the project.

Features

  • Modern Development Workflow: Utilizes Webpack for asset bundling, Babel for JavaScript transpilation, and Sass for CSS preprocessing.
  • Full Site Editing Support: Compatible with WordPress FSE, allowing block-based theme development.
  • Automated Code Quality Tools: Includes configurations for ESLint, Stylelint, and PHP CodeSniffer to maintain high code quality.
  • Versioning Script: Automatically updates version numbers in block JSON and PHP asset files when SCSS files are modified.
  • Customizable Configuration: Easily extend and override configurations for Webpack, ESLint, Stylelint, and PHP CodeSniffer.
  • Predefined Theme Settings: Pre-configured theme.json file with customizable global styles and settings for color palettes, typography, spacing, and more.