You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a7f5d2d
Browse filesBrowse the repository at this point in the historyBrowse files
Let a gradient stop name a theme colour, drawn in the reader's (#74)
* Let a gradient stop name a theme colour, drawn in the reader's
ColorGradient.Roles records the theme role each stop stands for. Relayout
with LayoutContext.Tones recolours those stops for the reader, and a page
writes them as var(--ms-tone-<role>, <colour>).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7TK8MH3rfMYZGSAgd1
* Keep a sampled fallback for toned gradients on a page; keep roles with their stops
A var() in a gradient makes the declaration invalid rather than dropped in a
browser that cannot blend in the space, so the toned gradient goes in its own
variable and the stylesheet uses it only under @supports. A stop the reader
cannot decode drops its role with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7TK8MH3rfMYZGSAgd1
* Note --ms-shade-toned in the changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rqqt7TK8MH3rfMYZGSAgd1
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments