website icon indicating copy to clipboard operation
website copied to clipboard

feat: add OKLCH color conversion and display in palette

Open sk337 opened this issue 9 months ago • 4 comments

sk337 avatar Mar 12 '25 20:03 sk337

As of right now we don't offer a OKLCH format in our palette.json and the corresponding NPM package. Since the website just builds the colour tables based on that this request is likely better raised on ctp/palette instead.

Aside from that: The current layout is already quite overwhelming. Adding in another colour format into the current tables doesn't seem like a good idea to me. Tho I wanted to revisit this along with a couple other this at some point anyway – hopefully making it easier to offer a wider variety of colour definition formats.

unseen-ninja avatar Mar 20 '25 16:03 unseen-ninja

okay. Regardless this is giving me a bit of a headache

sk337 avatar Mar 20 '25 17:03 sk337

As of right now we don't offer a OKLCH format in our palette.json and the corresponding NPM package. Since the website just builds the colour tables based on that this request is likely better raised on ctp/palette instead.

Aside from that: The current layout is already quite overwhelming. Adding in another colour format into the current tables doesn't seem like a good idea to me. Tho I wanted to revisit this along with a couple other this at some point anyway – hopefully making it easier to offer a wider variety of colour definition formats.

@unseen-ninja so what's the move here? Should we just add a link to a hex -> OKLCH converter? Or maybe some accordion-like UI which the user can select their format preference?

lundjrl avatar May 28 '25 12:05 lundjrl

just as an idea or inspiration :) this is from a local page I made for own use, featuring beside other things also a quick access catppuccin palette: image

OnClick the hex-format is copied, on right click more color formats are shown. something similar could be an option, as it is relatively easy to implement, and it all gets a little bit cleaner, as there are not 4 color formats shown for every color :)

a3chron avatar Sep 30 '25 18:09 a3chron