KamiKillertO / vscode-colorize

A vscode extension to help visualize css colors in files
Apache License 2.0
272 stars 37 forks source link

Feature request: OKLAB support #898

Open sergio-ezquerro-ochagavia opened 1 year ago

sergio-ezquerro-ochagavia commented 1 year ago

As stated in the title, I request support for oklab colors. This change could make it (much) easier to select color palletes in the future

Jinan-Dangor commented 4 months ago

I'd like to second this motion. Love the oklab colour space and use oklch for all my colour schemes. Right now the extension Color Highlight supports (some) oklab syntax, but doesn't support css variables (one of colorize's many lifesaving features). So I use it to view what colours I'm assigning my variables to but can't see what they are when I use them.

KamiKillertO commented 2 weeks ago

It should be rather simple to add support for simple oklab colors

oklab(40.1% 0.1143 0.045);
oklab(59.69% 0.1007 0.1191);
oklab(59.69% 0.1007 0.1191 / 0.5);

I will work on it for the new version

Jinan-Dangor commented 1 week ago

Glad to hear it! oklab() and oklch() are very useful, and I love using this extension, so glad to hear they'll be added!

KamiKillertO commented 3 days ago

I've just released a new version with support for both