matthewhowell / reasonable-colors

Reasonable Colors is an open-source color system that makes it easy to build accessible, nice-looking color palettes.
https://www.reasonable.work/colors
MIT License
417 stars 11 forks source link

Add non CSS formats (JS, TS, JSON) #6

Open thibmaek opened 2 years ago

thibmaek commented 2 years ago

This allows integration with non web sites/applications/platforms like:

matthewhowell commented 2 years ago

Thanks for this! I’m on board with this idea, let me give a bit of thought to the object structure (I’d like to mirror the CSS variables as much as it makes sense). Perhaps, something like colors.name.shade.

And I’d also like to add the other color spaces.

I’ll update again when I’ve sorted out how best to structure that. Open to suggestions.

thibmaek commented 2 years ago

Sure! This is merely a proposal, feel free to push over this code with the format you prefer. I'd just be glad that I can start using this in my React Native applications.

If you are interested I think Style Dictionary might be a good starting point. They have become very popular in the design-systems space.

thibmaek commented 2 years ago

I'm revisiting this to see if there is something I can do to continue this PR?

matthewhowell commented 2 years ago

Fair!

This got pulled into a larger update that's been... just sitting there. I'll try to pull it out and get some movement on it this week. JS and JSON will probably get out the door first. Thanks!