TLDR: VSCode Themes Community now uses the OKLCH colorspace in the matching colors generation algorithm to randomize and manipulate colors and also has a oklch color picker to be used when adjusting the generated theme colors.
You can sneak a peek at .
The late discovery
I know, oklch colorspace is not that new, but when I started to develop the , a very complete and precise color manipulation library for typescript that implements the oklch colorspace.
It was not hard to change all the functions and methods that were using an old color manipulation library. Some parts of the algorithm even got cleaner and easier to maintain and understand.
After the code migration, I started looking for a color picker component but couldn’t find any that could suit my app’s requirements, it needed to use Svelte 5, have the option to use oklch color space and integrate well with the current ui that is based on shadcn-svelte components.
In the middle of the frustration, I've encountered this great work from EvilMartians at and you can check out the code in the Github repository.
Please, as always, feel free to provide any kind of feedback and/or suggestion in the comments or file an issue at the repository. I would be very happy to hear your thoughts.
Thanks a lot for the reading and, hopefully, I see you in the next one!
SOCIAL SHARE CARD GENERATOR