Closed lukasoppermann closed 7 years ago
I'm not sure if @yeun wants to add this feature, but there are in general 2 ways of implementing it:
There's a lib that uses execCommand and falls back to an input where the user has to manually copy the selection: https://clipboardjs.com/#browser-support
Hey @makepanic I would think something like the last lib would be idea. Since it is just a nicety feature, I think requiring modern browser support for convenience features is fine. 👍
Sorry, I'd like to keep the UI simple as possible, not thinking of browser support / progressive enhancement / etc. If you want to discuss more, please reopen.
Hey @yeun @makepanic,
I was just thinking an additional, very nice feature would be a live preview of the colors (html) with a copy functionality (user should be able to choose the format?).
Just like here: http://flatuicolors.com
For example I am currently using the colors as defaults for some web components. However, I am not loading the package into the components to keep it small. For this kind of workflow, or other design tools that do not have a palett to include, this would be very awesome addition to
/docs
.