I want to create an svg button to be used in a WordPress plugin. Is there a way to make it compatible with a color picker to match each theme ? Maybe one file with different colors.
closed as off-topic by Danielillo, Luciano, Ovaryraptor, PieBie, Paolo Gibellini Sep 27 '18 at 13:28
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- "This question does not fall within the expertise of graphic designers. This particularly applies to software and hardware questions that are not specific to graphic-design tools – they may be suited for Super User." – PieBie, Paolo Gibellini
- "Solving this problem requires access to a specific setup, file, or interaction with you or your machine. Questions on this site should be potentially useful to future visitors, not depend on external resources, and be answerable without trial and error." – Danielillo, Luciano, Ovaryraptor
As for the svg button you could try to inject a svg symbol and use it where you need it. Then to vary the colors of the button according to the theme depends on how you have structured the plugin.
Look at this codepen