Replace Flux UI with TallStackUI 4

Rewrite the layout and all Customers and Users pages with TallStackUI
components and remove livewire/flux and its Boost skill.

Fix the TallStackUI accessibility gaps found by the axe tests:
- password reveal and theme switch have no accessible name: add
  <x-password-field> and keep the own theme toggle button
- select.native label is not tied to the control: add aria-label
- contrast: darker primary palette, soft-customized error colours and
  published alert/link colour classes; neutral buttons use subtle black
- follow the system theme by default (localStorage key dark-theme)

Load TallStackUI assets from the app URL so they work in the XAMPP
subfolder, add Finnish TallStackUI strings, and drop inputmode=numeric
from the business ID field so iOS keyboards show the hyphen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-22 12:22:03 +02:00
co-authored by Claude Opus 5.5
parent 7b6a909677
commit 90d6f5bd66
35 changed files with 1054 additions and 448 deletions
+16 -12
View File
@@ -1,25 +1,29 @@
@import 'tailwindcss';
@import '../../vendor/livewire/flux/dist/flux.css';
@import '../../vendor/tallstackui/tallstackui/css/v4.css';
@plugin '@tailwindcss/forms';
@source '../../vendor/tallstackui/tallstackui/**/*.php';
@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../../app/Modules/**/*.blade.php';
@source '../../app/Providers/*.php';
@source '../../app/View/**/*.php';
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--font-sans: Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
}
/*
* Flux error messages use red-500, which is only 3.8:1 on white.
* WCAG 2.2 AA needs 4.5:1 for text, so use darker red in light mode.
*/
[data-flux-error] {
color: var(--color-red-700);
}
.dark [data-flux-error] {
color: var(--color-red-400);
/*
* TallStackUI's primary is indigo with solid buttons on primary-500, which
* is only 4.0:1 with their light text. WCAG 2.2 AA needs 4.5:1, so the
* shades from 500 up are moved one step darker.
*/
--color-primary-500: #4f46e5;
--color-primary-600: #4338ca;
--color-primary-700: #3730a3;
--color-primary-800: #312e81;
}