Skip to content

fix(calendar): event tones match Tag, half-hour titles centred - #566

Merged
lorant-one merged 1 commit into
previewfrom
fix/calendar-event-tones-and-padding
Nov 23, 2026
Merged

lorant-one merged 1 commit into
previewfrom
fix/calendar-event-tones-and-padding

Conversation

@lorant-one

Copy link
Copy Markdown
Member

Requested by Lorant · project thread

These came up while reviewing Stack's Planner (stack#150).

Problem

Calendar coloured each event's stripe, dot and all-day bar with --<tone>-solid-strong. Under a contrast solid style (Stack), the brand solid is near white on dark and near black on light. So a "Studio" event drew grey or white while its calendar's Tag dot was blue.

Fix

  • The stripe and dot now use Tag's dot recipe: --function-<tone>-600 on dark and -500 on light, passed per event as --event-accent-dark / --event-accent-light. An event now matches its calendar's Tag in every solid style.
  • All-day and multi-day bars now use the tone's stronger tint (alpha-medium) with strong on-background text, the same family as timed events. Previously they were a solid with on-solid text, and a function colour can't promise contrast for that text across every tone.
  • Timed events get 4px of top padding instead of 2px, which centres the single title line in a 24px half-hour tile.

--event-solid / --event-on-solid are internal and no longer set.

Checks

tsc clean, calendar.test.tsx 18/18, biome clean. Before and after in Stack's Planner (dark week, light month) are in the project thread. No CHANGELOG entry yet, because preview has no Unreleased section and #560 is the open patch. I'll add the entry to whichever patch this ships in.


Generated by Claude Code

- Stripe and dot use Tag's dot recipe (--function-<tone>-600 on dark, 500
  on light) instead of the tone's solid, which a contrast solid style turns
  near white or black; an event now matches its calendar's Tag
- All-day and multi-day bars use the tone's stronger tint with strong text,
  readable in every solid style
- Timed events get 4px on top, centring one line in a half-hour tile

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtxWMQX2FCXvcNwXdH5
@lorant-one lorant-one self-assigned this Nov 21, 2026
@lorant-one
lorant-one merged commit f5f0023 into preview Nov 23, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 24, 2026
27 tasks done
@lorant-one lorant-one added the approved label Nov 24, 2026 — with Claude
@lorant-one
lorant-one deleted the fix/calendar-event-tones-and-padding branch November 29, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants