Files
Toiminnanohjaus/resources/css/app.css
T
petriandClaude Opus 5.5 f4b58f6b1d Darken the dark canvas, add customer colours, the ongoing status and the board model
- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 /
  primary-100 and TallStackUI's dark labels, hints and checkbox labels are
  lightened so everything stays at 4.5:1.
- Shared HexColor picks white or black text by the higher WCAG contrast; a
  native-dialog colour picker and a large work dialog component.
- Customers get a header colour (customers.header_color), set on the
  customer page.
- New job status Jatkuvat / Kausi (ongoing): open, never late, billed
  monthly like running jobs.
- Kanban model: board columns and views, urgent threshold, per-user board
  preferences (density, column colours and sort), card positions, tasks of
  continuing jobs pinned to the board, MoveBoardCard and board queries with
  logged hours from TimeTracking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 06:11:49 +02:00

75 lines
2.6 KiB
CSS

@import 'tailwindcss';
@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 *));
/*
* The header always carries the .dark class, so anything that must follow the
* page theme itself (the theme toggle icon) uses page-dark: instead of dark:.
*/
@custom-variant page-dark (&:where(html.dark, html.dark *));
@theme {
--font-sans: Inter, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol', 'Noto Color Emoji';
/*
* 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;
/*
* TallStackUI's dark-mode labels are dark-300 (#d4d4d4, 4.4:1 on the dark
* canvas), so the shade is lifted to #e5e5e5 (5.3:1).
*/
--color-dark-300: #e5e5e5;
/*
* Page background: a faint indigo tint in light mode instead of plain grey,
* and a mid grey in dark mode (the Kanban/timesheet design, low glare) on
* which the zinc-900 panels stand out. Text placed directly on the dark
* canvas needs zinc-100/primary-100: zinc-300 and primary-300 are below 4.5:1.
*/
--color-canvas: #f4f5fb;
--color-canvas-dark: #5a5e60;
}
/* The sticky header's height (set by the layout), so focus and anchors land below it. */
html {
scroll-padding-top: var(--app-header-offset, 0px);
/*
* Always show the vertical scrollbar (disabled on short pages), so the menu
* and content don't shift between short and long pages. scrollbar-gutter
* would leave an empty strip beside the full-width header instead.
*/
overflow-y: scroll;
}
[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;
}