Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 4e2aa87

Browse files
committed
v2
1 parent 31cf24d commit 4e2aa87

15 files changed

+15
-35
lines changed

README.md

+2-22
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ This package requires Laravel 7.0 or higher.
1818

1919
### a. Preset WITHOUT Authentication
2020

21-
1. Use `php artisan ui tailwindcss` for the basic Tailwind CSS preset, you can use dark mode too `php artisan ui tailwindcss:dark`
21+
1. Use `php artisan ui tailwindcss` for the basic Tailwind CSS preset.
2222
2. `npm install && npm run dev`
2323
3. `php artisan serve` (or equivalent) to run server and test preset.
2424

2525
### b. Preset WITH Authentication
2626

27-
1. Use `php artisan ui tailwindcss --auth` for the basic preset, for the dark mode `php artisan ui tailwindcss:dark --auth`, 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`)
27+
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`)
2828
4. `npm install && npm run dev`
2929
5. Configure your favorite database (mysql, sqlite etc.)
3030
6. `php artisan migrate` to create basic user tables.
@@ -36,8 +36,6 @@ The default `tailwind.config.js` configuration file included by this package sim
3636

3737
## Screenshots
3838

39-
### Light
40-
4139
![Dashboard](/screenshots/dashboard.png)
4240

4341
![Login](/screenshots/#.png)
@@ -53,21 +51,3 @@ The default `tailwind.config.js` configuration file included by this package sim
5351
![Pagination](/screenshots/pagination.png)
5452

5553
![Pagination](/screenshots/pagination-simple.png)
56-
57-
## Dark
58-
59-
![Dashboard](/screenshots/dashboard-dark.png)
60-
61-
![Login](/screenshots/#-dark.png)
62-
63-
![Register](/screenshots/register-dark.png)
64-
65-
![Reset Password](/screenshots/reset-password-email-dark.png)
66-
67-
![Reset Password](/screenshots/reset-password-dark.png)
68-
69-
![Verify](/screenshots/verify-dark.png)
70-
71-
![Pagination](/screenshots/pagination-dark.png)
72-
73-
![Pagination](/screenshots/pagination-simple-dark.png)

screenshots/dashboard-dark.png

-14.2 KB
Binary file not shown.

screenshots/#-dark.png

-21.4 KB
Binary file not shown.

screenshots/pagination-dark.png

-19.2 KB
Binary file not shown.
-17.3 KB
Binary file not shown.

screenshots/register-dark.png

-22 KB
Binary file not shown.

screenshots/reset-password-dark.png

-23.1 KB
Binary file not shown.
-19.6 KB
Binary file not shown.

screenshots/verify-dark.png

-26.1 KB
Binary file not shown.

stubs/resources/views/auth/#.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<label class="block">
1212
<span class="text-gray-700 text-sm">{{ __('E-Mail Address') }}</span>
13-
<input type="email" id="email" name="email" class="mt-1 block w-full rounded-md" value="{{ old('email') }}" required autocomplete="email" autofocus>
13+
<input type="email" id="email" name="email" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" value="{{ old('email') }}" required autocomplete="email" autofocus>
1414

1515
@error('email')
1616
<span class="text-sm text-red-500" role="alert">
@@ -21,7 +21,7 @@
2121

2222
<label class="block mt-3">
2323
<span class="text-gray-700 text-sm">{{ __('Password') }}</span>
24-
<input id="password" type="password" class="mt-1 block w-full rounded-md" name="password" required autocomplete="current-password">
24+
<input id="password" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password" required autocomplete="current-password">
2525

2626
@error('password')
2727
<span class="text-sm text-red-500" role="alert">
@@ -33,7 +33,7 @@
3333
<div class="flex justify-between items-center mt-4">
3434
<div>
3535
<label class="inline-flex items-center">
36-
<input type="checkbox" class="rounded text-blue-600" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
36+
<input type="checkbox" class="rounded border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
3737
<span class="mx-2 text-gray-600 text-sm">{{ __('Remember Me') }}</span>
3838
</label>
3939
</div>

stubs/resources/views/auth/passwords/confirm.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<label class="block mt-3">
1414
<span class="text-gray-700 text-sm">{{ __('Password') }}</span>
15-
<input id="password" type="password" class="mt-1 block w-full rounded-md" name="password" required autocomplete="current-password">
15+
<input id="password" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password" required autocomplete="current-password">
1616

1717
@error('password')
1818
<span class="text-sm text-red-500" role="alert">

stubs/resources/views/auth/passwords/email.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
<label class="block">
2626
<span class="text-gray-700 text-sm">{{ __('E-Mail Address') }}</span>
27-
<input id="email" type="email" class="mt-1 block w-full rounded-md" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
27+
<input id="email" type="email" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
2828
</label>
2929

3030
<div class="mt-6">

stubs/resources/views/auth/passwords/reset.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<label class="block">
1414
<span class="text-gray-700 text-sm">{{ __('E-Mail Address') }}</span>
15-
<input id="email" type="email" class="mt-1 block w-full rounded-md" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
15+
<input id="email" type="email" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="email" value="{{ $email ?? old('email') }}" required autocomplete="email" autofocus>
1616

1717
@error('email')
1818
<span class="text-sm text-red-500" role="alert">
@@ -23,7 +23,7 @@
2323

2424
<label class="block mt-3">
2525
<span class="text-gray-700 text-sm">{{ __('Password') }}</span>
26-
<input id="password" type="password" class="mt-1 block w-full rounded-md" name="password" required autocomplete="new-password">
26+
<input id="password" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password" required autocomplete="new-password">
2727

2828
@error('password')
2929
<span class="text-sm text-red-500" role="alert">
@@ -34,7 +34,7 @@
3434

3535
<label class="block mt-3">
3636
<span class="text-gray-700 text-sm">{{ __('Confirm Password') }}</span>
37-
<input id="password-confirm" type="password" class="mt-1 block w-full rounded-md" name="password_confirmation" required autocomplete="new-password">
37+
<input id="password-confirm" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password_confirmation" required autocomplete="new-password">
3838
</label>
3939

4040
<div class="mt-6">

stubs/resources/views/auth/register.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<label class="block">
1212
<span class="text-gray-700 text-sm">{{ __('Name') }}</span>
13-
<input id="name" type="text" class="mt-1 block w-full rounded-md" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
13+
<input id="name" type="text" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="name" value="{{ old('name') }}" required autocomplete="name" autofocus>
1414

1515
@error('name')
1616
<span class="text-sm text-red-500" role="alert">
@@ -21,7 +21,7 @@
2121

2222
<label class="block mt-3">
2323
<span class="text-gray-700 text-sm">{{ __('E-Mail Address') }}</span>
24-
<input id="email" type="email" class="mt-1 block w-full rounded-md" name="email" value="{{ old('email') }}" required autocomplete="email">
24+
<input id="email" type="email" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="email" value="{{ old('email') }}" required autocomplete="email">
2525

2626
@error('email')
2727
<span class="text-sm text-red-500" role="alert">
@@ -32,7 +32,7 @@
3232

3333
<label class="block mt-3">
3434
<span class="text-gray-700 text-sm">{{ __('Password') }}</span>
35-
<input id="password" type="password" class="mt-1 block w-full rounded-md" name="password" required autocomplete="new-password">
35+
<input id="password" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password" required autocomplete="new-password">
3636

3737
@error('password')
3838
<span class="text-sm text-red-500" role="alert">
@@ -43,7 +43,7 @@
4343

4444
<label class="block mt-3">
4545
<span class="text-gray-700 text-sm">{{ __('Confirm Password') }}</span>
46-
<input id="password-confirm" type="password" class="mt-1 block w-full rounded-md" name="password_confirmation" required autocomplete="new-password">
46+
<input id="password-confirm" type="password" class="mt-1 w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" name="password_confirmation" required autocomplete="new-password">
4747
</label>
4848

4949
<div class="mt-6">

stubs/webpack.mix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const mix = require('laravel-mix');
1111
|
1212
*/
1313

14-
mix.js('resources/js/app.js', 'public/js').vue();
14+
mix.js('resources/js/app.js', 'public/js');
1515

1616
mix.postCss('resources/css/app.css', 'public/css', [
1717
require('tailwindcss'),

0 commit comments

Comments
 (0)