Skip to content

🎨 Primary button text colour follows OKLab lightness with a near-black dark tone - #14

Merged
dryan merged 1 commit into
mainfrom
oklab-contrast
Oct 13, 2026
Merged

dryan merged 1 commit into
mainfrom
oklab-contrast

Conversation

@dryan-gh-actions

Copy link
Copy Markdown
Contributor

Replace the WCAG luminance rule in contrastingTextColor(on:in:) with OKLab
perceptual lightness (Bjorn Ottosson's public-domain conversion): fills at or
below 0.80 take white, lighter ones a near-black (white 0.08) instead of pure
black. Add oklabLightness(of:in:) and OnboardingTheme.nearBlack; keep
relativeLuminance(of:in:) as a helper. primaryButtonTextColor still overrides.

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com

…k dark tone

Replace the WCAG luminance rule in contrastingTextColor(on:in:) with OKLab
perceptual lightness (Bjorn Ottosson's public-domain conversion): fills at or
below 0.80 take white, lighter ones a near-black (white 0.08) instead of pure
black. Add oklabLightness(of:in:) and OnboardingTheme.nearBlack; keep
relativeLuminance(of:in:) as a helper. primaryButtonTextColor still overrides.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@dryan-gh-actions
dryan-gh-actions Bot requested a review from a team as a code owner October 12, 2026 22:12
@dryan
dryan merged commit 58a22c0 into main Oct 13, 2026
2 checks passed
@dryan
dryan deleted the oklab-contrast branch October 13, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant