Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colors: Migrate color shades from HSL to OKLCH #359

Open
simeonoff opened this issue Nov 25, 2024 · 0 comments
Open

Colors: Migrate color shades from HSL to OKLCH #359

simeonoff opened this issue Nov 25, 2024 · 0 comments
Labels
palettes 🪛 enhancement New feature or request

Comments

@simeonoff
Copy link
Contributor

simeonoff commented Nov 25, 2024

Currently all color shades, bar the 500 variant, are in the HSL color space. Switch to OKLCH to ensure better color representation on most modern displays.

Here are some of the benefits:

  • Perceptual Uniformity: Colors in OKLCH are more consistent with human perception, making adjustments (e.g., lightness or saturation) visually predictable.
  • Improved Accessibility: Easier to maintain contrast ratios for WCAG compliance, as lightness directly correlates to perceived brightness.
  • Wide Gamut Support: It accommodates a broader range of colors, especially in modern displays with extended gamuts.
  • Hue Consistency: Changes in chroma or lightness don’t shift the perceived hue, unlike HSL.
@simeonoff simeonoff added palettes 🪛 enhancement New feature or request labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
palettes 🪛 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant