Give the UI an indigo look with cards, status badges and empty states

- Dark indigo header and tinted page background; the mobile main menu gets
  its own row, in the same order as the keyboard reaches it.
- Page titles with an icon chip (x-page-title, x-page, x-page-header) and
  card sections (x-panel, the card utility); x-table styled as a card with
  an indigo header row in AppServiceProvider::styleTables().
- Job and task statuses, late work, unapproved hours and stock states as
  badges with icon and text (x-status-badge, x-jobs.status,
  x-jobs.task-status), never colour alone.
- Empty lists as x-empty-state; dashboard quick link tiles, week hour bars
  and trend arrows; Kanban columns and task cards edged by status; calendar
  today column and bar accents; quick sale, reports and machine console
  restyled; signed-out pages show the app name.
- Focus rings use the primary colour in both themes (white in the header).
- Document the components in CLAUDE.md; test the status badges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-29 10:53:10 +02:00
co-authored by Claude Opus 5.5
parent ef400054b0
commit 51b40b24fe
99 changed files with 702 additions and 388 deletions
+16
View File
@@ -32,6 +32,13 @@
--color-primary-600: #4338ca;
--color-primary-700: #3730a3;
--color-primary-800: #312e81;
/*
* Page background: a faint indigo tint in light mode instead of plain grey,
* and near-black in dark mode so the zinc-900 panels stand out.
*/
--color-canvas: #f4f5fb;
--color-canvas-dark: #0c0c12;
}
/* The sticky header's height (set by the layout), so focus and anchors land below it. */
@@ -48,3 +55,12 @@ html {
[x-cloak] {
display: none !important;
}
/*
* A card surface for page sections (the same look as <x-panel>), for sections
* that keep their own markup: white / zinc-900 with a hairline border and a
* soft shadow.
*/
@utility card {
@apply rounded-xl border border-zinc-200 bg-white p-4 shadow-sm sm:p-5 dark:border-zinc-700 dark:bg-zinc-900;
}