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:
@@ -21,6 +21,28 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function boot(): void
|
||||
{
|
||||
$this->meetContrastRequirements();
|
||||
$this->styleTables();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tables as cards: a white (dark: zinc-900) surface with a soft shadow, an indigo-tinted header row and a
|
||||
* row hover. Cell text is zinc-700 / zinc-200 (well over 4.5:1) instead of the package's gray-500.
|
||||
*/
|
||||
private function styleTables(): void
|
||||
{
|
||||
TallStackUi::customize()
|
||||
->table()
|
||||
->block('wrapper', 'overflow-hidden rounded-xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-700')
|
||||
->block('table.wrapper', 'relative soft-scrollbar overflow-auto bg-white dark:bg-zinc-900')
|
||||
->block('table.base', 'min-w-full divide-y divide-zinc-200 dark:divide-zinc-700')
|
||||
->block('table.th', 'px-3 py-3 text-xs font-semibold tracking-wide text-primary-900 dark:text-primary-100')
|
||||
->block('table.th-compact', 'px-3 py-2 text-xs font-semibold tracking-wide text-primary-900 dark:text-primary-100')
|
||||
->block('table.thead.normal', 'bg-primary-50 dark:bg-primary-950/70')
|
||||
->block('table.tbody', 'divide-y divide-zinc-200 bg-white dark:divide-zinc-700/70 dark:bg-zinc-900')
|
||||
->block('table.tr', 'transition-colors hover:bg-primary-50/50 dark:hover:bg-white/5')
|
||||
->block('table.td', 'whitespace-nowrap px-3 py-3 text-sm text-zinc-700 dark:text-zinc-200')
|
||||
->block('table.td-compact', 'whitespace-nowrap px-3 py-2 text-sm text-zinc-700 dark:text-zinc-200')
|
||||
->block('empty', 'col-span-full whitespace-nowrap px-3 py-4 text-sm text-zinc-700 dark:text-zinc-200');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user