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

[feat] ability to copy colors as JS objects #757

Open
itsjavi opened this issue Apr 1, 2024 · 0 comments
Open

[feat] ability to copy colors as JS objects #757

itsjavi opened this issue Apr 1, 2024 · 0 comments
Labels
feature request help wanted Extra attention is needed

Comments

@itsjavi
Copy link

itsjavi commented Apr 1, 2024

Feature request

Overview

In the custom colors generator page, it would be super helpful to be able to copy all the colors as JS (and/or JSON), in a similar format as the colors inside @radix-ui/colors source code.

Examples in other libraries or sites

These examples are for generating Tailwind palettes, but offer different ways of exporting the colors:

image

Who does this impact? Who is this for?

It's very handy for devs using CSS-in-JS who need to generate color tokens, e.g. with Panda CSS, Tailwind, Park UI, Ark UI, etc.

Additional context

I spent a quite some time converting the generated CSS to JS (reduced thanks to https://transform.tools/css-to-js), because I have an extensive color palette.

@chaance chaance added feature request help wanted Extra attention is needed labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants