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:
@@ -41,6 +41,7 @@ Read `docs/architecture.md` (Finnish) before adding or changing domain code. `ap
|
||||
Accessibility is a contractual acceptance criterion. It covers the whole UI: navigation, forms, tables, reports, notifications, dialogs, login, and every business process. Every new or changed view must meet these rules:
|
||||
|
||||
- **UI components are TallStackUI.** Read the component's page in `vendor/tallstackui/tallstackui/.ai/components/` (index: `.ai/index.md`) before writing a tag; never guess props. Every form control has a visible `label` prop; TallStackUI shows the `wire:model` validation error under it. Placeholder text is not a label. Submit buttons use the `submit` prop, never `type="submit"`.
|
||||
- **Look and layout**: the header is dark indigo (`bg-primary-950`), pages sit on `bg-canvas` / `dark:bg-canvas-dark` (`resources/css/app.css`). A page's h1 is `<x-page-title icon="…">` (or `<x-page-header>` with `actions` slot inside `<x-page width="…">`); sections are cards (`<x-panel title icon>` or the `card` CSS utility on your own `<section>`); never a card inside a card, and `<x-table>` is already a card (styled in `AppServiceProvider::styleTables()`). Statuses are `<x-status-badge tone icon>` (job and task statuses: `<x-jobs.status>`, `<x-jobs.task-status>`), empty lists `<x-empty-state icon>`. A page's main action is a primary (default colour) button, others `subtle color="black"`. Focus rings are `outline-primary-600` / `dark:outline-primary-300` (white in the header).
|
||||
- **TallStackUI accessibility gaps and the project fixes** (keep them; the axe tests catch regressions):
|
||||
- `<x-password>`: its reveal button has no name. Use `<x-password-field>` (`resources/views/components/password-field.blade.php`).
|
||||
- `<x-theme-switch>`: unnamed `role="switch"`. Use `resources/views/partials/theme-toggle.blade.php`, which drives `tallstackui_darkTheme({ default: 'system' })` on `<html>` (localStorage `dark-theme`; an inline script in the layout applies it before paint).
|
||||
|
||||
Reference in New Issue
Block a user