Keep the header dark and give the light theme a grey content background
The header and its menu popovers always use the dark theme colours, the light theme body is zinc-100 and Kanban columns zinc-200 so they still stand out. The theme toggle icon follows the page theme through a new page-dark variant, and TallStackUI hint and selection group description texts are one shade darker to keep 4.5:1 contrast on the grey background. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
aria-expanded="false"
|
||||
aria-controls="nav-group-{{ $group['key'] }}"
|
||||
@class([
|
||||
'flex items-center gap-1 rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700',
|
||||
'text-zinc-900 underline decoration-2 underline-offset-8 dark:text-white' => $group['current'],
|
||||
'text-zinc-600 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-300 dark:hover:bg-zinc-700 dark:hover:text-white' => ! $group['current'],
|
||||
'flex items-center gap-1 rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400',
|
||||
'text-white underline decoration-2 underline-offset-8' => $group['current'],
|
||||
'text-zinc-300 hover:bg-zinc-700 hover:text-white' => ! $group['current'],
|
||||
])
|
||||
>
|
||||
{{ $group['label'] }}
|
||||
@@ -37,7 +37,7 @@
|
||||
id="nav-group-{{ $group['key'] }}"
|
||||
x-show="open"
|
||||
x-cloak
|
||||
class="z-40 mt-1 min-w-56 rounded-md border border-zinc-200 bg-white p-1 shadow-lg sm:absolute sm:start-0 dark:border-zinc-600 dark:bg-zinc-800"
|
||||
class="z-40 mt-1 min-w-56 rounded-md border border-zinc-600 bg-zinc-800 p-1 shadow-lg sm:absolute sm:start-0"
|
||||
>
|
||||
@foreach ($group['items'] as $item)
|
||||
<li>
|
||||
@@ -46,9 +46,9 @@
|
||||
wire:navigate
|
||||
@if ($item['current']) aria-current="page" @endif
|
||||
@class([
|
||||
'block rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700',
|
||||
'bg-zinc-100 text-zinc-900 underline decoration-2 underline-offset-4 dark:bg-zinc-700 dark:text-white' => $item['current'],
|
||||
'text-zinc-700 hover:bg-zinc-100 hover:text-zinc-900 dark:text-zinc-200 dark:hover:bg-zinc-700 dark:hover:text-white' => ! $item['current'],
|
||||
'block rounded-md px-3 py-2 text-sm font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400',
|
||||
'bg-zinc-700 text-white underline decoration-2 underline-offset-4' => $item['current'],
|
||||
'text-zinc-200 hover:bg-zinc-700 hover:text-white' => ! $item['current'],
|
||||
])
|
||||
>
|
||||
{{ $item['label'] }}
|
||||
|
||||
Reference in New Issue
Block a user