Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Feature request: HCT support #41

Open
everyx opened this issue Jul 20, 2023 · 1 comment
Open

Feature request: HCT support #41

everyx opened this issue Jul 20, 2023 · 1 comment

Comments

@everyx
Copy link

everyx commented Jul 20, 2023

Can we support HCT in Google Material design 3?

See:

  1. The Science of Color & Design, from Google Material design blog
  2. material-color-utilities, which implement HCT in typescipt from google
@drwpow
Copy link
Owner

drwpow commented Jul 20, 2023

I’m not opposed to that. Though HCT off the bat hasn’t performed clearly better than OKLAB/OKLCH (not to mention OKLAB/OKLCH support has landed in all modern browsers but the path to HCT adoption is unclear), it’s still new enough that in time there may be a clearer use for when it shines better than OKLAB/OKLCH.

And as an aside, I’m actually second-guessing the future of this library now that OKLAB/OKLCH adoption has reached all major browsers and is widely available in CSS—perhaps this should just be the bare-minimum JS implementation? In which case supporting similar formats like HCT may also fit, especially for users like yourself that are using Material Design but don’t want the massive overhead of culori, color.js, etc at runtime.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants