Skip to content

Commit

Permalink
UX: replace gray color with neutral everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothkannans committed Nov 7, 2024
1 parent cf67853 commit 88dc1a9
Show file tree
Hide file tree
Showing 43 changed files with 107 additions and 107 deletions.
10 changes: 5 additions & 5 deletions resources/views/api/api-token-manager.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@foreach (Laravel\Jetstream\Jetstream::$permissions as $permission)
<label class="flex items-center">
<x-checkbox wire:model="createApiTokenForm.permissions" :value="$permission"/>
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">{{ $permission }}</span>
<span class="ms-2 text-sm text-neutral-600 dark:text-neutral-400">{{ $permission }}</span>
</label>
@endforeach
</div>
Expand Down Expand Up @@ -70,13 +70,13 @@

<div class="flex items-center ms-2">
@if ($token->last_used_at)
<div class="text-sm text-gray-400">
<div class="text-sm text-neutral-400">
{{ __('Last used') }} {{ $token->last_used_at->diffForHumans() }}
</div>
@endif

@if (Laravel\Jetstream\Jetstream::hasPermissions())
<button class="cursor-pointer ms-6 text-sm text-gray-400 underline" wire:click="manageApiTokenPermissions({{ $token->id }})">
<button class="cursor-pointer ms-6 text-sm text-neutral-400 underline" wire:click="manageApiTokenPermissions({{ $token->id }})">
{{ __('Permissions') }}
</button>
@endif
Expand Down Expand Up @@ -105,7 +105,7 @@
</div>

<x-input x-ref="plaintextToken" type="text" readonly :value="$plainTextToken"
class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full break-all"
class="mt-4 bg-neutral-100 px-4 py-2 rounded font-mono text-sm text-neutral-500 w-full break-all"
autofocus autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
@showing-token-modal.window="setTimeout(() => $refs.plaintextToken.select(), 250)"
/>
Expand All @@ -129,7 +129,7 @@ class="mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500 w-full
@foreach (Laravel\Jetstream\Jetstream::$permissions as $permission)
<label class="flex items-center">
<x-checkbox wire:model="updateApiTokenForm.permissions" :value="$permission"/>
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">{{ $permission }}</span>
<span class="ms-2 text-sm text-neutral-600 dark:text-neutral-400">{{ $permission }}</span>
</label>
@endforeach
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/api/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
<h2 class="font-semibold text-xl text-neutral-800 dark:text-neutral-200 leading-tight">
{{ __('API Tokens') }}
</h2>
</x-slot>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/confirm-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<x-authentication-card-logo />
</x-slot>

<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
<div class="mb-4 text-sm text-neutral-600 dark:text-neutral-400">
{{ __('This is a secure area of the application. Please confirm your password before continuing.') }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/auth/forgot-password.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<x-authentication-card-logo />
</x-slot>

<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
<div class="mb-4 text-sm text-neutral-600 dark:text-neutral-400">
{{ __('Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.') }}
</div>

Expand Down
6 changes: 3 additions & 3 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<div class="block mt-4">
<label for="remember_me" class="flex items-center">
<x-checkbox id="remember_me" name="remember" />
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">{{ __('Remember me') }}</span>
<span class="ms-2 text-sm text-neutral-600 dark:text-neutral-400">{{ __('Remember me') }}</span>
</label>
</div>

<div class="flex items-center justify-end mt-4">
@if (Route::has('password.request'))
<a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800" href="{{ route('password.request') }}">
<a class="underline text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800" href="{{ route('password.request') }}">
{{ __('Forgot your password?') }}
</a>
@endif
Expand All @@ -46,7 +46,7 @@
</form>

<x-slot name="footer">
<div class="mt-8 text-center text-sm text-gray-600 dark:text-gray-400">
<div class="mt-8 text-center text-sm text-neutral-600 dark:text-neutral-400">
New user?
<a href="{{ route('register') }}" class="font-bold text-accent-800 dark:text-accent-200">
{{ __('Create account') }}
Expand Down
6 changes: 3 additions & 3 deletions resources/views/auth/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<div class="ms-2">
{!! __('I agree to the :terms_of_service and :privacy_policy', [
'terms_of_service' => '<a target="_blank" href="'.route('terms.show').'" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800">'.__('Terms of Service').'</a>',
'privacy_policy' => '<a target="_blank" href="'.route('policy.show').'" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800">'.__('Privacy Policy').'</a>',
'terms_of_service' => '<a target="_blank" href="'.route('terms.show').'" class="underline text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800">'.__('Terms of Service').'</a>',
'privacy_policy' => '<a target="_blank" href="'.route('policy.show').'" class="underline text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800">'.__('Privacy Policy').'</a>',
]) !!}
</div>
</div>
Expand All @@ -42,7 +42,7 @@
@endif

<div class="flex items-center mt-4">
<span class="text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800" href="{{ route('login') }}">
<span class="text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800" href="{{ route('login') }}">
{{ __('Existing user?') }}
<a href="{{ route('login') }}" class="font-bold text-accent-800 dark:text-accent-200">
{{ __('Login') }}
Expand Down
8 changes: 4 additions & 4 deletions resources/views/auth/two-factor-challenge.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</x-slot>

<div x-data="{ recovery: false }">
<div class="mb-4 text-sm text-gray-600 dark:text-gray-400" x-show="! recovery">
<div class="mb-4 text-sm text-neutral-600 dark:text-neutral-400" x-show="! recovery">
{{ __('Please confirm access to your account by entering the authentication code provided by your authenticator application.') }}
</div>

<div class="mb-4 text-sm text-gray-600 dark:text-gray-400" x-cloak x-show="recovery">
<div class="mb-4 text-sm text-neutral-600 dark:text-neutral-400" x-cloak x-show="recovery">
{{ __('Please confirm access to your account by entering one of your emergency recovery codes.') }}
</div>

Expand All @@ -29,7 +29,7 @@
</div>

<div class="flex items-center justify-end mt-4">
<button type="button" class="text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 underline cursor-pointer"
<button type="button" class="text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 underline cursor-pointer"
x-show="! recovery"
x-on:click="
recovery = true;
Expand All @@ -38,7 +38,7 @@
{{ __('Use a recovery code') }}
</button>

<button type="button" class="text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 underline cursor-pointer"
<button type="button" class="text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 underline cursor-pointer"
x-cloak
x-show="recovery"
x-on:click="
Expand Down
6 changes: 3 additions & 3 deletions resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<x-authentication-card-logo />
</x-slot>

<div class="mb-4 text-sm text-gray-600 dark:text-gray-400">
<div class="mb-4 text-sm text-neutral-600 dark:text-neutral-400">
{{ __('Before continuing, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }}
</div>

Expand All @@ -28,14 +28,14 @@
<div>
<a
href="{{ route('profile.show') }}"
class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800"
class="underline text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800"
>
{{ __('Edit Profile') }}</a>

<form method="POST" action="{{ route('logout') }}" class="inline">
@csrf

<button type="submit" class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-gray-800 ms-2">
<button type="submit" class="underline text-sm text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-neutral-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-accent-500 dark:focus:ring-offset-neutral-800 ms-2">
{{ __('Log Out') }}
</button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/action-message.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
x-show.transition.out.opacity.duration.1500ms="shown"
x-transition:leave.opacity.duration.1500ms
style="display: none;"
{{ $attributes->merge(['class' => 'text-sm text-gray-600 dark:text-gray-400']) }}>
{{ $attributes->merge(['class' => 'text-sm text-neutral-600 dark:text-neutral-400']) }}>
{{ $slot->isEmpty() ? 'Saved.' : $slot }}
</div>
2 changes: 1 addition & 1 deletion resources/views/components/action-section.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</x-section-title>

<div class="mt-5 md:mt-0 md:col-span-2">
<div class="px-4 py-5 sm:p-6 bg-white dark:bg-gray-800 shadow sm:rounded-lg">
<div class="px-4 py-5 sm:p-6 bg-white dark:bg-neutral-800 shadow sm:rounded-lg">
{{ $content }}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/authentication-card.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900">
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-neutral-100 dark:bg-neutral-900">
<div>
{{ $logo }}
</div>

<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg">
<div class="w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-neutral-800 shadow-md overflow-hidden sm:rounded-lg">
{{ $slot }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/banner.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@props(['style' => session('flash.bannerStyle', 'success'), 'message' => session('flash.banner')])

<div x-data="{{ json_encode(['show' => true, 'style' => $style, 'message' => $message]) }}"
:class="{ 'bg-accent-500': style == 'success', 'bg-red-700': style == 'danger', 'bg-yellow-500': style == 'warning', 'bg-gray-500': style != 'success' && style != 'danger' && style != 'warning'}"
:class="{ 'bg-accent-500': style == 'success', 'bg-red-700': style == 'danger', 'bg-yellow-500': style == 'warning', 'bg-neutral-500': style != 'success' && style != 'danger' && style != 'warning'}"
style="display: none;"
x-show="show && message"
x-on:banner-message.window="
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/checkbox.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input type="checkbox" {!! $attributes->merge(['class' => 'rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-accent-600 shadow-sm focus:ring-accent-500 dark:focus:ring-accent-600 dark:focus:ring-offset-gray-800']) !!}>
<input type="checkbox" {!! $attributes->merge(['class' => 'rounded dark:bg-neutral-900 border-neutral-300 dark:border-neutral-700 text-accent-600 shadow-sm focus:ring-accent-500 dark:focus:ring-accent-600 dark:focus:ring-offset-neutral-800']) !!}>
8 changes: 4 additions & 4 deletions resources/views/components/confirmation-modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@props(['id' => null, 'maxWidth' => null])

<x-modal :id="$id" :maxWidth="$maxWidth" {{ $attributes }}>
<div class="bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="bg-white dark:bg-neutral-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mx-auto shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
<svg class="h-6 w-6 text-red-600 dark:text-red-400" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
Expand All @@ -10,18 +10,18 @@
</div>

<div class="mt-3 text-center sm:mt-0 sm:ms-4 sm:text-start">
<h3 class="text-lg font-medium text-gray-900 dark:text-gray-100">
<h3 class="text-lg font-medium text-neutral-900 dark:text-neutral-100">
{{ $title }}
</h3>

<div class="mt-4 text-sm text-gray-600 dark:text-gray-400">
<div class="mt-4 text-sm text-neutral-600 dark:text-neutral-400">
{{ $content }}
</div>
</div>
</div>
</div>

<div class="flex flex-row justify-end px-6 py-4 bg-gray-100 dark:bg-gray-800 text-end">
<div class="flex flex-row justify-end px-6 py-4 bg-neutral-100 dark:bg-neutral-800 text-end">
{{ $footer }}
</div>
</x-modal>
2 changes: 1 addition & 1 deletion resources/views/components/danger-button.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<button {{ $attributes->merge(['type' => 'button', 'class' => 'inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150']) }}>
<button {{ $attributes->merge(['type' => 'button', 'class' => 'inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-neutral-800 transition ease-in-out duration-150']) }}>
{{ $slot }}
</button>
6 changes: 3 additions & 3 deletions resources/views/components/dialog-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<x-modal :id="$id" :maxWidth="$maxWidth" {{ $attributes }}>
<div class="px-6 py-4">
<div class="text-lg font-medium text-gray-900 dark:text-gray-100">
<div class="text-lg font-medium text-neutral-900 dark:text-neutral-100">
{{ $title }}
</div>

<div class="mt-4 text-sm text-gray-600 dark:text-gray-400">
<div class="mt-4 text-sm text-neutral-600 dark:text-neutral-400">
{{ $content }}
</div>
</div>

<div class="flex flex-row justify-end px-6 py-4 bg-gray-100 dark:bg-gray-800 text-end">
<div class="flex flex-row justify-end px-6 py-4 bg-neutral-100 dark:bg-neutral-800 text-end">
{{ $footer }}
</div>
</x-modal>
2 changes: 1 addition & 1 deletion resources/views/components/dropdown-link.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a {{ $attributes->merge(['class' => 'block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:bg-gray-100 dark:focus:bg-gray-800 transition duration-150 ease-in-out']) }}>{{ $slot }}</a>
<a {{ $attributes->merge(['class' => 'block w-full px-4 py-2 text-start text-sm leading-5 text-neutral-700 dark:text-neutral-300 hover:bg-neutral-100 dark:hover:bg-neutral-800 focus:outline-none focus:bg-neutral-100 dark:focus:bg-neutral-800 transition duration-150 ease-in-out']) }}>{{ $slot }}</a>
2 changes: 1 addition & 1 deletion resources/views/components/dropdown.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white dark:bg-gray-700', 'dropdownClasses' => ''])
@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white dark:bg-neutral-700', 'dropdownClasses' => ''])

@php
$alignmentClasses = match ($align) {
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/form-section.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

<div class="mt-5 md:mt-0 md:col-span-2">
<form wire:submit="{{ $submit }}">
<div class="px-4 py-5 bg-white dark:bg-gray-800 sm:p-6 shadow {{ isset($actions) ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md' }}">
<div class="px-4 py-5 bg-white dark:bg-neutral-800 sm:p-6 shadow {{ isset($actions) ? 'sm:rounded-tl-md sm:rounded-tr-md' : 'sm:rounded-md' }}">
<div class="grid grid-cols-6 gap-6">
{{ $form }}
</div>
</div>

@if (isset($actions))
<div class="flex items-center justify-end px-4 py-3 bg-gray-50 dark:bg-gray-800 text-end sm:px-6 shadow sm:rounded-bl-md sm:rounded-br-md">
<div class="flex items-center justify-end px-4 py-3 bg-neutral-50 dark:bg-neutral-800 text-end sm:px-6 shadow sm:rounded-bl-md sm:rounded-br-md">
{{ $actions }}
</div>
@endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/input.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@props(['disabled' => false])

<input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-accent-500 dark:focus:border-accent-600 focus:ring-accent-500 dark:focus:ring-accent-600 rounded-md shadow-sm']) !!}>
<input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'border-neutral-300 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-300 focus:border-accent-500 dark:focus:border-accent-600 focus:ring-accent-500 dark:focus:ring-accent-600 rounded-md shadow-sm']) !!}>
Loading

0 comments on commit 88dc1a9

Please sign in to comment.