Dynamic CSS is the perfect way to create themes and allow themes to be easily implemented. We found the following snippet doing it's rounds on Twitter and felt it is worthy of a blog post.
With some minor editing you can give the option to create themes for your framework relatively fast and easily.
Create a new PHP file, and add the following to the very beginning of the page:
Underneath that, you can place your normal CSS. In addition, you can add PHP to it as well!
Once you have your CSS created, and saved, you can then add and link to it like so:
<link rel="stylesheet" type="text/css" href="themes/default.php">
Category: Code snippets