Skip to content

style(calendar): today's highlight takes the solid button's dark green - #478

Merged
Ardnived merged 2 commits into
mainfrom
style/calendar-today
Nov 24, 2026
Merged

Ardnived merged 2 commits into
mainfrom
style/calendar-today

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

Change outline

Contract — the Schedule-X token mapping

 .sx-calendar, .sx-calendar .is-dark                    src/styles/globals.css
-  --sx-color-primary / -tertiary: primary-9
-  --sx-color-on-primary / -on-tertiary: primary-on       # black on the green default
+  --sx-color-primary / -tertiary: primary-12
+  --sx-color-on-primary / -on-tertiary: #ffffff
+.dark .sx-calendar, .dark .sx-calendar .is-dark
+  --sx-color-primary / -tertiary: primary-9              # dark mode unchanged
+  --sx-color-on-primary / -on-tertiary: primary-on

Every embed follows the same rule. A branded calendar gets its own step 12 under white in light mode, as its buttons already do.

Preview

  • App and Ladle (Views / Calendar): preview pending.

Test results

  • Lean gate (check.sh): ✓, 2381 passed and 1 skipped.
  • Build: ✓. assert-css-scoped compiles the dark rule to :where(.sy-atlas) :is(.dark .sx-calendar), the shape of the existing .dark .mapboxgl-* rules.
  • Ladle, Views / Calendar, computed values:
    • light: today rgb(28, 95, 72) under white, the Month toggle's own fill;
    • dark: rgb(97, 209, 172) under black, unchanged.

Manual verification

  1. Open the calendar in light mode. Today's date, the event bars and the current-time line should read as the dark green of the Month toggle.
  2. Repeat in dark mode and check that nothing changed.

Notes for reviewer

  • The event bars take the same dark green, because Schedule-X draws them from the same tokens. In light mode they now match the toggle rather than the bright pin green.
  • Security trigger (src/styles/): this only reassigns colour custom properties to existing ramp steps. The emitted CSS stays inside .sy-atlas, and nothing reads input.

🤖 Generated with Claude Code

Ardnived and others added 2 commits November 24, 2026 11:35
On the green default, Schedule-X's primary was the bright step-9 solid under
black, beside buttons and selected inputs that use step 12 under white in
light mode. The calendar's primary and tertiary now match the solid Button:
step 12 under white in light mode, step 9 under its on-colour in dark.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

Written by the sydevs dispatcher. Sessions never edit this comment.

@Ardnived
Ardnived merged commit 7eb08fc into main Nov 24, 2026
11 of 12 checks passed
@Ardnived
Ardnived deleted the style/calendar-today branch November 24, 2026 18:37
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Done in SYDevelopers Technical Roadmap Nov 24, 2026
sydevs-bot pushed a commit that referenced this pull request Nov 24, 2026
#478 landed its own Unreleased → Changed entry where this branch had
added one. Both describe host-visible changes and neither replaces the
other, so both stay: the inline-embed entry first, as the later landing,
then #478's calendar highlight.

src/styles/globals.css merged on its own. #478's `.dark .sx-calendar`
override arrives intact, and the expanded dialog portals inside the
widget's own overlay root, so the dark-mode highlight still resolves
there.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjWsPcv8nMgGnTXdbo6
sydevs-bot pushed a commit that referenced this pull request Nov 24, 2026
…oating

main's #478 and this branch each added the first entry under `### Changed`.
Both are kept, this PR's first, since it lands after #478. No code conflict:
#478 moved the Schedule-X calendar tokens in globals.css and touched no
Button recipe.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjX9geazPZrsZD8peEn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant