|
1 |
| -# Laravel preset for TailwindCSS |
| 1 | +# Laravel preset for TailwindCSS |
| 2 | + |
| 3 | +A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.com) - a Utility-First CSS Framework for Rapid UI Development. |
| 4 | + |
| 5 | +## Installation and usage |
| 6 | +This package requires Laravel 7.0 or higher. |
| 7 | + |
| 8 | +1. Fresh install Laravel and `cd` to your app. |
| 9 | +2. Install `composer require tailwindcomponents/laravel-preset --dev`. |
| 10 | + |
| 11 | +### a. For Presets without Authentication |
| 12 | + |
| 13 | +1. Use `php artisan ui tailwindcss` for the basic Tailwind CSS preset |
| 14 | +2. `npm install && npm run dev` |
| 15 | +3. `php artisan serve` (or equivalent) to run server and test preset. |
| 16 | + |
| 17 | +### b. For Presets with Authentication |
| 18 | + |
| 19 | +1. Use `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`) |
| 20 | +4. `npm install && npm run dev` |
| 21 | +5. Configure your favorite database (mysql, sqlite etc.) |
| 22 | +6. `php artisan migrate` to create basic user tables. |
| 23 | +7. `php artisan serve` (or equivalent) to run server and test preset. |
| 24 | + |
| 25 | +### Config |
| 26 | + |
| 27 | +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. |
| 28 | + |
| 29 | +### Screenshots |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
0 commit comments