

GitHub - roots/sage: WordPress starter theme with a modern development workflow
source link: https://github.com/roots/sage
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
Website
Documentation
Releases
Support
Supporting
Sage is an open source project and completely free to use.
However, the amount of effort needed to maintain and develop new features and products within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider donating using the links below:
Features
- Harness the power of Laravel and its available packages thanks to Acorn.
- Clean, efficient theme templating utilizing Laravel Blade.
- Lightning fast frontend development workflow powered by Bud.
- Out of the box support for Tailwind CSS.
Requirements
Make sure all dependencies have been installed before moving on:
Theme installation
Install Sage using Composer from your WordPress themes directory (replace your-theme-name
below with the name of your theme):
# @ app/themes/ or wp-content/themes/ $ 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
Make sure that you have Acorn installed.
Theme structure
themes/your-theme-name/ # → Root of your Sage based theme ├── app/ # → Theme PHP │ ├── Providers/ # → Service providers │ ├── View/ # → View models │ ├── filters.php # → Theme filters │ └── setup.php # → Theme setup ├── composer.json # → Autoloading for `app/` files ├── public/ # → Built theme assets (never edit) ├── functions.php # → Theme bootloader ├── index.php # → Theme template wrapper ├── node_modules/ # → Node.js packages (never edit) ├── package.json # → Node.js dependencies and scripts ├── resources/ # → Theme assets and templates │ ├── fonts/ # → Theme fonts │ ├── images/ # → Theme images │ ├── scripts/ # → Theme javascript │ ├── styles/ # → Theme stylesheets │ └── views/ # → Theme templates │ ├── components/ # → Component templates │ ├── forms/ # → Form templates │ ├── layouts/ # → Base templates │ ├── partials/ # → Partial templates └── sections/ # → Section templates ├── screenshot.png # → Theme screenshot for WP admin ├── style.css # → Theme meta information ├── vendor/ # → Composer packages (never edit) └── bud.config.js # → Bud configuration
Theme setup
Edit app/setup.php
to enable or disable theme features, setup navigation menus, post thumbnail sizes, and sidebars.
Theme development
- Run
yarn
from the theme directory to install dependencies - Update
bud.config.js
with your local dev URL
Build commands
yarn dev
— Compile assets when file changes are made, start Browsersync sessionyarn build
— Compile assets for production
Sage sponsors
Help support our open-source development efforts by becoming a GitHub sponsor or patron.
Community
Keep track of development and community news.
- Join us on Roots Slack by becoming a GitHub sponsor or patron
- Participate on the Roots Discourse
- Follow @rootswp on Twitter
- Read and subscribe to the Roots Blog
- Subscribe to the Roots Newsletter
Recommend
-
210
Tonik — WordPress Starter Theme The develop branch tracks starter development and it's not a stable code. If you want a stable version, use the
-
179
A modern WordPress stack Website Documentati...
-
214
README.md ...
-
119
I have prepared this guide as a reference for php developers who want to switch from ftp (or sftp) to git (version based) based development. Fundamental topics including cloud server setup and…
-
41
Demo Download Author: kylelogue Vi...
-
2
Every site starts with an idea. WordPress Starter is a new, beautifully pared-back plan designed to put that idea center stage. For just $5/month. Like the WordPress Pro plan (more on that below), WordPress Starter brings you the
-
3
-
11
next-typed-connect A library for creating type-safe APIs in next.js. Motivation I wanted to create type-safe APIs in Next.js using zod and also wanted to generate type definition files for client-side use so that I could u...
-
7
Node.js Typescript Modern Starter While developing with Typescript and Node.js is awesome, setting up a new project is painful. This minimal and modern starter repo is here to help you get started with Node.js and Typecri...
-
5
Modern JavaScript library starterHow to publish a package with TypeScript, testing, GitHub Actions, and auto-publish to NPM
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK