Skip to content

WP Packages is our new WPackagist replacement that's 17x faster and updates every 5 minutes

Sage
  • Sage page

Roots is an independent open source org, supported only by developers like you. We’ve been improving the WordPress developer experience since 2011, and your support keeps it independent.

Installing Sage WordPress Starter Theme

View as Markdown:

Install Sage using Composer from your WordPress themes directory:

$ composer create-project roots/sage your-theme-name

To install the latest development version of Sage, add dev-main to the end of the command:

$ composer create-project roots/sage your-theme-name dev-main

Build assets

  • Edit the base path in vite.config.js
  • Run npm install from the theme directory to install dependencies
  • Run npm run build to compile assets

You must build theme assets in order to access your site. Failing to build the assets will result in the error:

Vite manifest not found at [/path/to/sage/public/build/manifest.json] cannot be found.

Last updated