Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tailwind named colors? #24

Closed
jmuchovej opened this issue Dec 1, 2022 · 4 comments
Closed

Add Tailwind named colors? #24

jmuchovej opened this issue Dec 1, 2022 · 4 comments

Comments

@jmuchovej
Copy link
Contributor

jmuchovej commented Dec 1, 2022

👋 Maybe this is out-of-scope (since (1) the colors from Tailwind have changed multiple times over the years and (2) Tailwind is a web-framework (i.e., perhaps this opens the "add any web framework" can-of-worms?)).

Tailwind CSS has some pretty nice palettes – not necessarily for plotting, though. They document all their colors here of the form <color>.<weight>. The <weight> seems rather arbitrary, but follows a general schema of... <color>.500 is the actual target color and weight < 500 lightens to an off-white while weight > 500 darkens towards a dark gray (though gray doesn't dominate the color, instead the color does).

Here's a more visual representation of the palette: https://tailwindcss.com/docs/customizing-colors#default-color-palette

This would also jive really well with the namespace idea put forward in #9.

Aside: I'm up for making a PR and possibly adding a script to update these colors, but wanted to check that NamedColors is open to adding color sets like this before doing that.

@oxinabox
Copy link
Member

oxinabox commented Dec 5, 2022

I guess the key thing to check is the license on them.

@jmuchovej
Copy link
Contributor Author

jmuchovej commented Dec 6, 2022

The license on the code itself is MIT  – https://github.com/tailwindlabs/tailwindcss/blob/master/LICENSE.
I believe this covers the colors as well, since I don't see any licenses elsewhere, nor mention of need for licenses relating to colors.

@oxinabox
Copy link
Member

oxinabox commented Dec 6, 2022

cool, I think we could do this.
I am super busy so any review that has to wait for me would be slow.
But @kellertuer has been doing a lot more on this package lately than me, and might be able to review

@kellertuer
Copy link
Collaborator

Oh, I must have missed this mention somehow. I actually did not do that much on this package, but I can try to find time to review the new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants