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

Add OKLCH color format #105

Open
bkuhlmann opened this issue Jul 15, 2023 · 3 comments
Open

Add OKLCH color format #105

bkuhlmann opened this issue Jul 15, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bkuhlmann
Copy link

Is your feature request related to a problem? Please describe.

Hello. 👋 Would it be possible to add oklch color support? Here's a few supporting articles:

Describe the solution you'd like

It would be nice to see this as a toggle along with the other colors that are supported. Example:

2023-07-15_08-01-23-Sublime Text

Describe alternatives you've considered

Other than manually doing the conversion yourself, I'm not sure there is a good alternative for the moment.

@bkuhlmann bkuhlmann added the enhancement New feature or request label Jul 15, 2023
@superhighfives
Copy link
Owner

superhighfives commented Jul 30, 2023

Oooh, this would be great—thanks for taking the time to share, @bkuhlmann, and for the links to supporting articles.

The main things I'd need to do is work out the the math to convert to and from that format in Swift (taking into consideration that it looks like it's possible for it to return colours outside sRGB). On my list to take a look, but I don't have a firm timeline in mind. 😊

@superhighfives superhighfives added the help wanted Extra attention is needed label Jul 30, 2023
@mortyccp
Copy link

Maybe you can checkout this library https://github.com/importRyan/Oklab

@superhighfives
Copy link
Owner

Thanks for sharing, @mortyccp! Can take a look. If anyone else stumbles on this issue and wants to take a pass, I'd love to check out a PR too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants