You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,30 @@
2
2
3
3
A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.com) - a Utility-First CSS Framework for Rapid UI Development.
4
4
5
-
*Current version:***Tailwind CSS 0.6.6**
5
+
*Current version:***Tailwind CSS 1.0**
6
6
7
7
## Usage
8
8
9
9
1. Fresh install Laravel >= 5.7.0 and cd to your app.
10
10
2. Install this preset via `composer require laravel-frontend-presets/tailwindcss`. Laravel will automatically discover this package. No need to register the service provider.
11
-
3. Use `php artisan preset tailwindcss` for the basic Tailwind CSS preset OR use `php artisan preset 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`)
12
-
4.`npm install && npm run dev && npm run dev` (this is required twice, due to the way that `laravel-mix-tailwind` installs the Tailwind CSS dependency)
11
+
12
+
### For Presets without Authentication
13
+
14
+
1. Use `php artisan preset tailwindcss` for the basic Tailwind CSS preset
15
+
2.`npm install && npm run dev`
16
+
3.`php artisan serve` (or equivalent) to run server and test preset.
17
+
18
+
### For Presets with Authentication
19
+
20
+
1. Use `php artisan preset 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`)
21
+
4.`npm install && npm run dev`
13
22
5. Configure your favorite database (mysql, sqlite etc.)
14
23
6.`php artisan migrate` to create basic user tables.
15
24
7.`php artisan serve` (or equivalent) to run server and test preset.
16
25
17
26
### Config
18
27
19
-
The default `tailwind.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
+
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.
20
29
21
30
### Screenshots
22
31
@@ -26,8 +35,6 @@ The default `tailwind.js` configuration file included by this package simply use
0 commit comments