Repository navigation
fix(calendar): event tones match Tag, half-hour titles centred - #566
Merged
Merged
Conversation
- 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
27 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sTagdot was blue.Fix
--function-<tone>-600on dark and-500on light, passed per event as--event-accent-dark/--event-accent-light. An event now matches its calendar's Tag in every solid style.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.--event-solid/--event-on-solidare internal and no longer set.Checks
tscclean,calendar.test.tsx18/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