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
feat(webapp): let the Black theme take the contrast slider below its base
Black pins every surface flat on #000, so the grid lines are the only thing giving
a page structure - and at the base palette they carry more weight than that theme
wants. The slider had nowhere to go: the ramps run from the base upward, so 0 was
the faintest setting available.
The slider now floors at -50 on Black, and only on Black. The stored value is
split in two on the way out: `--theme-contrast` keeps the strengthening half
exactly as it was, and a new `--theme-fade` carries the negative half, which
Black's own grid ramp uses to fade the rules back toward the page. At 0 the fade
term mixes 0%, so this is the shared dark ramp untouched - nothing moves for
anyone already on a value of 0 or above.
The Default tick lands a third of the way along on Black rather than hard left,
which is the visible sign that the extra travel is there.
One consequence worth knowing: contrast is a single preference shared by all four
themes, so a negative value set on Black means nothing on the other three - they
have no fade term to read it. The slider clamps its handle to the floor of
whichever theme is showing rather than pinning it off the end of the track.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments