3 ms·
By augmenting CSS with PHP, do you mean something like this? p {color: <?=$mainColor?>} And then just setting .htaccess (or whatever) to allow PHP execution
by SquareWheel 14y ago
By augmenting CSS with PHP, do you mean something like this?
p {color: <?=$mainColor?>}
And then just setting .htaccess (or whatever) to allow PHP execution in .css files?
- r0s 14y agoYou can just process main.css.php (or whatever) Here's some of my (old crappy)code: color: <?php echo $foreground1; ?>; font-family: <?php echo $font2; ?>; But I'm sure there's libs out there that make it really easy and pretty.