Skip to content

Commit 354dcfb

Browse files
Merge pull request #32 from laravel-frontend-presets/chore/better-default-tailwind-config
Better default Tailwind config
2 parents 1440903 + 5ef3b0c commit 354dcfb

File tree

15 files changed

+31
-930
lines changed

15 files changed

+31
-930
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.com) - a Utility-First CSS Framework for Rapid UI Development.
44

5-
*Current version:* **Tailwind CSS 0.5.2**
5+
*Current version:* **Tailwind CSS 0.6.4**
66

77
## Usage
88

@@ -14,9 +14,9 @@ A Laravel front-end scaffolding preset for [Tailwind CSS](https://tailwindcss.co
1414
6. `php artisan migrate` to create basic user tables.
1515
7. `php artisan serve` (or equivalent) to run server and test preset.
1616

17-
### Changing colours
17+
### Config
1818

19-
If you want to change the default orange colour being used, update the `brand-{modifier}` values in your `tailwind.js` file. You are of course free to modify this file as you see fit, and even remove and replace the brand configuration in the scaffolded views entirely.
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.
2020

2121
### Screenshots
2222

screenshots/dashboard.png

-24 KB
Loading

screenshots/login.png

-28.1 KB
Loading

screenshots/register.png

-28.5 KB
Loading

screenshots/reset-password.png

-28.8 KB
Loading

screenshots/send-password-reset.png

-25.6 KB
Loading

screenshots/welcome.png

-30.4 KB
Loading

src/tailwindcss-stubs/resources/views/auth/login.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex items-center px-6 md:px-0">
55
<div class="w-full max-w-md md:mx-auto">
66
<div class="rounded shadow">
7-
<div class="font-medium text-lg text-brand-darker bg-brand-lighter p-3 rounded-t">
7+
<div class="font-medium text-lg text-teal-darker bg-teal p-3 rounded-t">
88
Login
99
</div>
1010
<div class="bg-white p-3 rounded-b">
@@ -35,10 +35,10 @@
3535

3636
<div class="flex">
3737
<div class="w-3/4 ml-auto">
38-
<button type="submit" class="bg-brand hover:bg-brand-dark text-white text-sm font-semibold py-2 px-4 rounded mr-3">
38+
<button type="submit" class="bg-teal hover:bg-teal-dark text-white text-sm font-semibold py-2 px-4 rounded mr-3">
3939
Login
4040
</button>
41-
<a class="no-underline hover:underline text-brand-dark text-sm" href="{{ route('password.request') }}">
41+
<a class="no-underline hover:underline text-teal-darker text-sm" href="{{ route('password.request') }}">
4242
Forgot Your Password?
4343
</a>
4444
</div>

src/tailwindcss-stubs/resources/views/auth/passwords/email.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex items-center">
55
<div class="md:w-1/2 md:mx-auto">
66
<div class="rounded shadow">
7-
<div class="font-medium text-lg text-brand-darker bg-brand-lighter p-3 rounded-t">
7+
<div class="font-medium text-lg text-teal-darker bg-teal p-3 rounded-t">
88
Reset Password
99
</div>
1010
<div class="bg-white p-3 rounded-b">
@@ -27,7 +27,7 @@
2727

2828
<div class="flex">
2929
<div class="w-3/4 ml-auto">
30-
<button type="submit" class="bg-brand hover:bg-brand-dark text-white text-sm font-sembiold py-2 px-4 rounded mr-3">
30+
<button type="submit" class="bg-teal hover:bg-teal-dark text-white text-sm font-semibold py-2 px-4 rounded mr-3">
3131
Send Password Reset Link
3232
</button>
3333
</div>

src/tailwindcss-stubs/resources/views/auth/passwords/reset.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="flex items-center">
55
<div class="md:w-1/2 md:mx-auto">
66
<div class="rounded shadow">
7-
<div class="font-medium text-lg text-brand-darker bg-brand-lighter p-3 rounded-t">
7+
<div class="font-medium text-lg text-teal-darker bg-teal p-3 rounded-t">
88
Reset Password
99
</div>
1010
<div class="bg-white p-3 rounded-b">
@@ -39,7 +39,7 @@
3939

4040
<div class="flex">
4141
<div class="w-3/4 ml-auto">
42-
<button type="submit" class="bg-brand hover:bg-brand-dark text-white text-sm font-sembiold py-2 px-4 rounded mr-3">
42+
<button type="submit" class="bg-teal hover:bg-teal-dark text-white text-sm font-semibold py-2 px-4 rounded mr-3">
4343
Reset Password
4444
</button>
4545
</div>

0 commit comments

Comments
 (0)