WordPress Dynamic CSS is library for generating CSS stylesheets from dynamic content ..
Using the special CSS syntax you can write CSS rules with variables that will be replaced by static values using custom callback function that you provide..
Enqueue the stylesheet wp dynamic css enqueue 3.
Set the function my dynamic css callback { return get theme mod } wp dynamic css set callback 4.
In the above example, the stylesheet will be compiled and printed to the of the document.
Please follow the instructions on GitHub page for detailed explanation and examples...
I was having little brain stress over having to learn Sass, getting started was the issue.
Best part is that I don't have to learn language just for this reason and I also can write css like I normally would, just replacing colors, etc with variables..
NOTE I didn't know this and had problems getting this to work at first, but that is because the variables need to be all lowercase.
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
Read more