Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
Hybrid WordPress theme development — Blade templates, Tailwind CSS, and Vite HMR for editor styles
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
~/wp-content/themes
Laravel Blade templates with WordPress
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
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
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
Tailwind CSS configuration
resources/css/app.css
Generated theme.json
theme.json
Professional theme structure & modern workflow
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
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
Advanced WordPress starter theme with Tailwind CSS and Laravel Blade
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?