Tailwind CSS WordPress Starter Theme with Laravel Blade
Automatic theme.json generation from Tailwind config
Live block editor preview with Vite hot module replacement
~/wp-content/themes
Laravel Blade templates with WordPress
Use Laravel's powerful Blade templating engine for modern PHP templating features like template inheritance, components, and directives. Build reusable components with props and clean template organization.
Base layout template
resources/views/layouts/app.blade.php
Reusable alert component
resources/views/components/alert.blade.php
Tailwind CSS synced to WordPress block editor
Sage automatically generates theme.json from your Tailwind configuration. Your color palette, font families, and sizes are immediately available in the WordPress block editor with zero configuration.
Tailwind CSS configuration
resources/css/app.css
Generated theme.json
theme.json
Professional theme structure & modern workflow
Organized directory structure with PSR-4 autoloading, Vite build system with HMR, and editor styles that update live. Built on Acorn for Laravel features in WordPress.
Theme structure
my-theme
.
├── app/
│ ├── Providers/
│ ├── View/
│ │ └── Composers/
│ ├── filters.php
│ └── setup.php
├── resources/
│ ├── css/
│ │ ├── app.css
│ │ └── editor.css
│ ├── js/
│ │ ├── app.js
│ │ └── editor.js
│ └── views/
│ ├── components/
│ ├── layouts/
│ ├── partials/
│ └── sections/
├── public/
├── composer.json
├── package.json
├── theme.json
└── vite.config.js
Vite configuration with theme.json generation
vite.config.js
Block editor integration with HMR
Hot Module Replacement works in the WordPress block editor. Style changes update instantly without page refreshes, making theme development faster and more enjoyable.
PSR-4 autoloading & Laravel patterns
Organized PHP with namespace autoloading, service providers for extensibility, and view composers for clean data management. All powered by Acorn.
Sponsors
Help support our open-source development efforts
Built with Sage
Recommendations
If you have to use WordPress, use Bedrock for your web app and Sage to develop your custom theme. Any Laravel developer will feel at home in these tools.
I think 2 years ago I tweeted to y'all to say I love Sage -- now I'm getting started with Bedrock and loving it! thank you for making me feel like WordPress can be sane, secure, and modern.
In my opinion, the roots.io toolkit is the most sane way to do WordPress in 2023
Sage has brought WordPress development into the modern age. It's absolutely excellent and we'd have probably moved away from WordPress by now without it. Can't recommend it highly enough.
Subscribe for updates
Join over 8,000 subscribers on our newsletter to get the latest Roots updates and tips on building better WordPress sites
Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?