Laravel frontend preset for Tailwind CSS
laravel-frontend-presets/tailwindcss is a Laravel package for laravel frontend preset for tailwind css.
It currently has 1.147 GitHub stars and 409.028 downloads on Packagist (latest version 4.3.1).
Install it with composer require laravel-frontend-presets/tailwindcss.
Discover more Laravel packages by laravel-frontend-presets
or browse all Laravel packages to compare alternatives.
Last updated
A Laravel front-end scaffolding preset for Tailwind CSS - a Utility-First CSS Framework for Rapid UI Development.
cd to your app.composer require laravel-frontend-presets/tailwindcss --dev. Laravel will automatically discover this package. No need to register the service provider.php artisan ui tailwindcss for the basic Tailwind CSS presetnpm install && npm run devphp artisan serve (or equivalent) to run server and test preset.php artisan ui tailwindcss --auth for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)npm install && npm run devphp artisan migrate to create basic user tables.php artisan serve (or equivalent) to run server and test preset.The default tailwind.config.js configuration file included by this package simply uses the config from the Tailwind vendor files. Should you wish to make changes, you should remove the file and run node_modules/.bin/tailwind init, which will generate a fresh configuration file for you, which you are free to change to suit your needs.
Add a new i18n string in the resources/lang/XX/pagination.php file for each language that your app uses:
'previous' => '« Previous',
'next' => 'Next »',
'goto_page' => 'Goto page #:page', // Add this line
This should help with accessibility
<li>
<a href="URL?page=2" class="..."
aria-label="Goto page #2"
>
2
</a>
</li>






