I am working on an application that creates a website template and there is an options page where the user will be able to change colors (via a colorpicker script) of the stylesheet. One option I found is to use PHP to control CSS variables (as described here). I was wondering if there are other options, possibly better options to do what I want to do.

Thanks for any ideas.