I'm working in a wordpress plugin, and i want to create a "customize" menu. My idea is to put a few color pickers to allow admins to change the color scheme of the theme (buttons, titles,font, background...) without edit css directly.
I have the menu, but now i don't know how to "apply" the variables to css. I thought a few solutions:
1- Convert the css file to php and get the variables. This solution is not useful because i need to change theme's files, and i want to do it only in my plugin.
2- The second way is to "overwrite" the css. The original css will remain intact, but i will add a few lines at the end of the css file, adding "!important" to overwrite the first order. This way seems too "ugly" and bad solution overall.
The question is, what is the best method to do this?
Thank you a lot!