Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Tailwindcss Laravel

Tailwindcss Laravel Laravel Package

tonysm/tailwindcss-laravel

Tailwind CSS for Laravel: ships a preset, config helpers, and an artisan build command so you can compile Tailwind without Node tooling, plus Blade directives and a facade for cleaner class handling.

View on GitHub
Deep Wiki
Context7

This package wraps up the standalone executable version of the Tailwind CSS framework for a Laravel application.

Frequently asked questions about Tailwindcss Laravel
How do I install tonysm/tailwindcss-laravel in a Laravel application?
Install it with Composer as a frontend build dependency rather than a runtime dependency, so keep it in require-dev where possible. After installing, publish any package configuration, wire the Artisan build command into your local and CI workflows, and rebuild your CSS so a generated stylesheet exists. For new adoption, start in a non-critical Laravel app and confirm the supported Laravel and PHP constraints first.
Does this package require Node.js, npm, or Vite to compile Tailwind CSS?
No. The package wraps the standalone Tailwind CSS executable and ships an Artisan build command, so you can compile Tailwind using Composer and Laravel-native tooling. That makes it a good fit for Blade, Livewire, Inertia, and traditional Laravel asset workflows where you want to reduce Node and npm surface area. Teams that already run a mature Vite plus npm Tailwind build should avoid adding a second integration path.
Which Laravel and PHP versions does tonysm/tailwindcss-laravel support?
The package targets Laravel applications that manage dependencies through Composer, but you should confirm the exact Laravel and PHP constraints in the package's composer.json before upgrading. Compatibility checks matter most when moving between major Laravel versions or running older PHP runtimes in production. Validate the supported matrix as part of your upgrade sequencing instead of assuming parity with your current app.
How do I compile Tailwind CSS using the package's Artisan build command?
Run the Artisan build command wherever you currently build frontend assets, both locally and in CI, so the generated CSS is reproducible across environments. The command wraps the standalone Tailwind executable, so Node and npm are not required on the build machine. After building, verify the output CSS is present, cached, and cache-busted correctly as part of your deploy.
What do the Blade directives and facade in this package do?
They are convenience helpers for cleaner class handling in your templates, letting you manage Tailwind class strings without piling conditional logic into your markup. They complement the build tooling rather than replacing it, so you still compile CSS through the Artisan command. Check the README for the exact directive and facade signatures before adopting them broadly across a codebase.
How do I safely upgrade tonysm/tailwindcss-laravel from 2.3.0 to 2.3.1?
Version 2.3.1 is a patch-level update that bumps the bundled Tailwind CSS version to v4.3.3, with no signalled API changes, deprecations, or breaking changes. Upgrade on a branch: update the Composer constraint, run composer update tonysm/tailwindcss-laravel, rebuild your CSS, and diff the generated output against your current baseline. Run visual regression and smoke tests on high-traffic views, then promote through staging with a rollback path to 2.3.0.
Is the Tailwind CSS version pinned exactly, and how is the binary obtained in CI?
This is one of the key things to verify before upgrading, because build reproducibility depends on whether the package pins Tailwind exactly or lets Composer resolve a range. If the version floats, transitive Tailwind drift can change generated utilities, plugin behavior, or CSS ordering between builds. Confirm the constraint in the package metadata, and make sure CI caches the standalone binary deterministically rather than fetching it ad hoc on every run.
Can I still use Tailwind plugins like forms and typography with this package?
Yes, plugins are part of your Tailwind configuration, but you need to confirm they are compatible with Tailwind v4.3.3 before upgrading. Tailwind minor and patch releases can alter plugin behavior and CSS ordering, so treat plugin compatibility as part of your rebuild validation. Pay particular attention to v4 configuration patterns if your application still uses older JavaScript-based Tailwind config conventions.
Should I use this package if my project already uses Vite and npm for Tailwind?
Probably not, unless there is a clear operational reason. The package is strongest for Laravel teams that want Tailwind managed through Composer and Laravel-native tooling to shrink their Node and npm footprint. If you already have a mature Vite plus Tailwind setup, adding this creates a duplicate build path and two sources of truth for your CSS.
Is tonysm/tailwindcss-laravel actively maintained, and how are Tailwind upgrades handled?
Support is split between the Laravel package maintainer and Tailwind CSS itself, so ongoing effort is low only if the package keeps pace with Tailwind releases. Treat Tailwind version bumps as real frontend dependency updates that require rebuild validation, not as invisible Composer patches. Before adopting, review the maintainer's release cadence and document a named owner and process for evaluating Tailwind release notes prior to upgrading.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager