catppuccin / toolbox

🧰 Soothing pastel tools for development
MIT License
109 stars 10 forks source link

New Tool/Puccinier: Detect non-Catppuccin colours #2

Closed Gingeh closed 10 months ago

Gingeh commented 2 years ago

To aid with creating themes, it would be useful to have a tool that detects non-Catppuccin colours.

This could either be added to puccinier, or made into a separate tool.

nekowinston commented 2 years ago

I'm just going through open issues at the moment, this piqued my interest; I guess it'd be something like a catppuccin-lint?

The trouble is, that themes like neovim would possibly show some errors, since they mix colours. And my perception is, that neovim has always been something of an authoritative repo regarding our whole style guide. The linked example wouldn't show warnings, since two palette colours are mixed; but it might be a concern with preprocessors like scss.

Regarding suggestions for the closest match: In my build script for Catppuccin Blender, I'm already doing this in pure JS: https://github.com/nekowinston/ctp-blender/blob/ee1ed891161a21f39e730de117aad9602908c85b/convert.cjs#L65-L77

I can definitely see the value of a tool like it!

nekowinston commented 10 months ago

Closing because of #66