⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
improvement(web): recolor full WIP columns, blocked cards and overdue dates (#708)
Croff35da634fb562
diff --git a/DESIGN.md b/DESIGN.mdindex b23cb636..f4f726b2 100644--- a/DESIGN.md+++ b/DESIGN.md@@ -31,11 +31,19 @@ switch).in dark.- `destructive` — error / overdue / delete only. It serves two roles at once: `text-destructive`on the page, and a fill under the white label of a destructive button or badge.+- `destructive-text` — the board's small red text: a full hard-limit count and an overdue+ date. Equal to `destructive` in light; in dark a lighter red, Lc 62–65 where `destructive`+ gives 53.+- `overdue` — the fill of an overdue date pill: `destructive` mixed into the card.- `warning` — a state that needs attention but has refused nothing, where `destructive` wouldoverstate it: a soft WIP limit is at its maximum while a hard one has blocked the move. Text- and low-opacity tint only; there is no warning button, so it is tuned for the page background- alone. An amber rather than a bright yellow — yellow at a legible chroma has to drop this far- in lightness to hold contrast against the light page.+ and low-opacity tint only; there is no warning button, so it is tuned for the page and board+ backgrounds alone. An amber rather than a bright yellow — yellow at a legible chroma has to+ drop this far in lightness to hold contrast against the light page.+- `kanban-column-wip-*`, `kanban-card-blocked`, `row-blocked` — state tints. A tint keeps the+ lightness of the surface it replaces and changes only hue and chroma, so cards keep their+ contrast against a full column. Blocked is rose (10–15°), not the 25° red of `destructive`,+ which turns brown on dark surfaces.- `ring` — focus ring (keyboard a11y).- `chart-1…5` — a neutral grayscale ramp for charts. For categorical series that needto be told apart (priority, assignee), widgets use their own small hue palette; for@@ -69,7 +77,7 @@ switch).non-text UI `≥ 30`. `destructive` in dark reaches only ~53 in each of its two roles: as itlightens it reads better as text on the near-black page and worse under the white label ofa destructive button, so it sits where those two curves cross. Both roles are above the- large/bold threshold; red at that chroma cannot do better without splitting the token.+ large/bold threshold. Small red text on the board uses `destructive-text` instead.- **Motion is restrained.** Hover 120–200ms, entrance 250–400ms; animate only`transform`/`opacity`; honor `prefers-reduced-motion`.diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.cssindex 8f3ffe47..e9e37e28 100644--- a/apps/web/src/app/globals.css+++ b/apps/web/src/app/globals.css@@ -28,6 +28,8 @@--color-input: var(--input);--color-border: var(--border);--color-destructive: var(--destructive);+ --color-destructive-text: var(--destructive-text);+ --color-overdue: var(--overdue);--color-warning: var(--warning);--color-accent-foreground: var(--accent-foreground);--color-accent: var(--accent);@@ -88,7 +90,8 @@--accent: oklch(0.955 0 0);--accent-foreground: oklch(0.22 0 0);--destructive: oklch(0.505 0.21 27);- --warning: oklch(0.56 0.13 75);+ --destructive-text: var(--destructive);+ --warning: oklch(0.52 0.11 72);--border: oklch(0.905 0 0);--input: oklch(0.88 0 0);--ring: oklch(0.62 0 0);@@ -112,14 +115,17 @@--priority-urgent: #f2683c;--kanban-column: oklch(0.945 0 0);--kanban-column-raised: oklch(0.958 0 0);- --kanban-column-wip-destructive: oklch(0.923 0.011 27);- --kanban-column-wip-warning: oklch(0.926 0.007 75);+ /* A state tint keeps the lightness of the surface it replaces, so the cards keep+ their contrast against it; only hue and chroma change. */+ --kanban-column-wip-destructive: oklch(0.94 0.022 18);+ --kanban-column-wip-warning: oklch(0.945 0.03 92);--kanban-card: oklch(0.972 0 0);--kanban-card-hover: oklch(0.995 0 0);- --kanban-card-blocked: oklch(0.969 0.008 25);- --kanban-card-blocked-hover: oklch(0.99 0.013 25);- --row-blocked: oklch(0.982 0.008 25);- --row-blocked-hover: oklch(0.968 0.013 25);+ --kanban-card-blocked: oklch(0.968 0.013 15);+ --kanban-card-blocked-hover: oklch(0.984 0.008 15);+ --row-blocked: oklch(0.978 0.01 15);+ --row-blocked-hover: oklch(0.963 0.014 15);+ --overdue: color-mix(in oklab, var(--destructive) 9%, var(--kanban-card));--kanban-card-selected: oklch(0.925 0.04 265);--overlay-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.18), 0 4px 10px -4px rgb(0 0 0 / 0.1);--pinned-column-shadow: 0 0 18px 2px rgb(0 0 0 / 0.16);@@ -148,6 +154,7 @@--accent: oklch(0.3 0 0);--accent-foreground: oklch(0.965 0 0);--destructive: oklch(0.77 0.18 22);+ --destructive-text: oklch(0.82 0.13 20);--warning: oklch(0.82 0.14 80);--border: oklch(1 0 0 / 12%);--input: oklch(1 0 0 / 18%);@@ -171,14 +178,15 @@--priority-urgent: #f2683c;--kanban-column: oklch(0.16 0 0);--kanban-column-raised: oklch(0.19 0 0);- --kanban-column-wip-destructive: oklch(0.191 0.009 22);- --kanban-column-wip-warning: oklch(0.193 0.007 80);+ --kanban-column-wip-destructive: oklch(0.16 0.028 15);+ --kanban-column-wip-warning: oklch(0.16 0.016 88);--kanban-card: oklch(0.215 0 0);--kanban-card-hover: oklch(0.25 0 0);- --kanban-card-blocked: oklch(0.222 0.012 25);- --kanban-card-blocked-hover: oklch(0.256 0.016 25);- --row-blocked: oklch(0.193 0.012 25);- --row-blocked-hover: oklch(0.23 0.016 25);+ --kanban-card-blocked: oklch(0.215 0.03 10);+ --kanban-card-blocked-hover: oklch(0.25 0.034 10);+ --row-blocked: oklch(0.2 0.024 10);+ --row-blocked-hover: oklch(0.235 0.03 10);+ --overdue: color-mix(in oklab, var(--destructive) 12%, var(--kanban-card));--kanban-card-selected: oklch(0.31 0.07 266);--overlay-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.7), 0 6px 16px -6px rgb(0 0 0 / 0.55);--pinned-column-shadow: 0 0 20px 4px rgb(0 0 0 / 0.6);@@ -253,8 +261,8 @@.kanban-card:hover {background-color: var(--kanban-card-hover);}-/* Held up by another issue: a red-tinted card surface, faint enough to read as a- shade of the card rather than an error. */+/* Held up by another issue: a rose tint at the card's own lightness. The 25° red of+ --destructive would turn brown on the dark card. */.kanban-card-blocked {background-color: var(--kanban-card-blocked);}diff --git a/apps/web/src/features/issue/components/shared/IssueBadges.tsx b/apps/web/src/features/issue/components/shared/IssueBadges.tsxindex 0432dcf9..60f7c977 100644--- a/apps/web/src/features/issue/components/shared/IssueBadges.tsx+++ b/apps/web/src/features/issue/components/shared/IssueBadges.tsx@@ -47,7 +47,8 @@ export function LabelBadge({ color, name }: { color: string; name: string }) {}// A date pill: a calendar icon (passed in, since start vs due use different-// glyphs) plus the short date. `overdue` renders it red (used for a past due date).+// glyphs) plus the short date. `overdue` fills it red (used for a past due date): an+// outline alone is lost on the rose surface of a blocked card.// `label` names which date it is, in a tooltip; the table column heading already// says it, so its cells pass none.export function DateBadge({@@ -64,7 +65,10 @@ export function DateBadge({const badge = (<Badgevariant="outline"- className={cn(PILL, overdue && 'border-destructive/40 text-destructive')}+ className={cn(+ PILL,+ overdue && 'border-transparent bg-overdue font-medium text-destructive-text',+ )}>{icon}{formatShortDate(date)}diff --git a/apps/web/src/features/work-items/utils/wipLimit.ts b/apps/web/src/features/work-items/utils/wipLimit.tsindex d3047cd3..b275192f 100644--- a/apps/web/src/features/work-items/utils/wipLimit.ts+++ b/apps/web/src/features/work-items/utils/wipLimit.ts@@ -47,7 +47,7 @@ export function wipFullColor(state: WipState): WipFullColor {// Tailwind matches class names as literal strings, so the two variants are spelled// out rather than built from the colour name.export const WIP_FULL_TEXT: Record<WipFullColor, string> = {- destructive: 'text-destructive',+ destructive: 'text-destructive-text',warning: 'text-warning',};