catppuccin / palette

🎨 Soothing pastel theme to use within your projects!
https://www.npmjs.com/package/@catppuccin/palette
MIT License
459 stars 36 forks source link

Making sense of the current structure/types in the NPM package #42

Closed nekowinston closed 11 months ago

nekowinston commented 1 year ago

I think the typing in the NPM package is pretty suboptimal currently, and also contains errors. (#34) Also, not really sure about the labels export? In most cases, you would think of the color being part of a flavor, rather than first selecting the color, then the flavor...

Ideally, I'd like to use TS for a nice API with the JSON exports, and generate the JSON programmatically somehow. We'd only really need 26 colors * 4 flavors, generate the other formats, then export them in the NPM package.

Currently working on this until I'm happy enough with it to raise a PR: https://gist.github.com/nekowinston/98b363b45e7fbe3256c5ff84a1ed8b07