I'm creating a WordPress theme and it's almost complete. I've created few shortcodes for some of the elements, including buttons with different color options like blue, green, red etc. What I want now is to allow users to be able to provide their own color hex value if they don't like the provided color options, like this for example:
[button color="#123423"]Button Text[/button].
Now I also know how I would get the value in the backend, but I just can't figure out how I will provide support for this in my CSS. For instance, I've got something like this:
.button-blue{
background: blue;
}
.button-green{
background: green;
}
Now how can insert the user provided button color for that specific button?