Laravel frontend preset for default setup and Tailwind CSS
sc-laravel-presets/default-tailwindcss is a Laravel package for laravel frontend preset for default setup and tailwind css.
It currently has 2 GitHub stars and 109 downloads on Packagist (latest version 0.7.4).
Install it with composer require sc-laravel-presets/default-tailwindcss.
Discover more Laravel packages by sc-laravel-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.
Current version: Tailwind CSS 1.1.2
phpunit.xml file.postcss-nesting plugin installed, you are able to write nested css that looks very much like sass, but is using standard css files.primary, secondary, success, warning, danger & error colors along with a default font to the tailwind.config.js file. These colors are currently set to blue, gray, green, orange, red & red respectively. They can then be used to assign primary and secondary colors to backgrounds, text, borders, etc. and contain the same shading as the rest of the colors. e.g. text-primary-500, bg-secondary-300, text-error-600core, button, dropdown, loader and nav partial with basic styling in the css/components directory.-auth preset will add the HomeController along with all relevant views and routes.Fresh install Laravel >= 6 and cd to your app.
Install this preset: Laravel will automatically discover this package. No need to register the service provider.
composer require sc-laravel-presets/default-tailwindcss
Run the preset installer:
Command to install only the base preset without any of the authorization scafolding.
php artisan preset default-tailwind
Command to install the full preset with the authorization scafolding (auth route entry, Tailwind CSS auth views).
php artisan preset default-tailwind-auth
NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php
Install all the node dependencies and compile all the assets:
npm install && npm run dev
Configure your favorite database (mysql, sqlite etc.). See the Laravel documentation for more details.
Migrate your database, if needed:
php artisan migrate
Start your local web server by running either of the following commands:
Command to start up Laravel Valet
valet start
Or use if you are not using Valet
php artisan serve
View your site in the browser to test the new preset.
The default tailwind.config.js configuration file included by this package uses custom color names. Should you wish to make changes, you can easily do so by modifying this file. See the Tailwind documentation for more detail.
The tailwindcss/custom-forms customization is also in the tailwind.config.js file under the customForms key. See their documentation if you want to change any of the form styling.