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: Copy generated palette as CSS/JSON #13

Open
jaredstanley opened this issue Feb 23, 2023 · 1 comment
Open

feat: Copy generated palette as CSS/JSON #13

jaredstanley opened this issue Feb 23, 2023 · 1 comment
Labels
Color Editor enhancement New feature or request

Comments

@jaredstanley
Copy link

Once a palette is generated, it would be very efficient to be able to copy the values in one click.

https://coolors.co/palette/cb997e-ddbea9-ffe8d6-b7b7a4-a5a58d-6b705c
Note that coolors does this:

  1. visit a palette page
  2. click the v arrow next to the ❤️, click 'export palette'
  3. various options appear - css, JSON(or a js array), jpg, svg, etc.

While there are a lot of options in the example above, I assume developer/design professionals are the primary tool users, and would benefit from a 1-click css/json clipboard copy.

//css
------
/* CSS HEX */
--buff: #cb997eff;
--desert-sand: #ddbea9ff;

//json
-----
/* Array */
["cb997e","ddbea9","ffe8d6"]

/* Object */
{"Buff":"cb997e","Desert sand":"ddbea9","Champagne pink":"ffe8d6"}
@meodai meodai changed the title Copy generated palette as CSS/JSON feat: Copy generated palette as CSS/JSON Feb 24, 2023
@meodai
Copy link
Owner

meodai commented Feb 24, 2023

Did something similar on FarbVèlo.
Screenshot 2023-02-24 at 01 45 32

Could probably reuse most of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Color Editor enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants