I am looking for an implementation of a CSS generator in PHP. The idea is that the script gets some input like : array('element' => 'div', 'color' => '#00ff00') and generates a file with :
div {
color : #00ff00;
}
Or something similar, you get the idea. Please do not point to some software or online service, I am looking for an actual open source implementation that I can possibly use in my projects, like a PHP class or so.
Is there an open source implementation of that which you know of ?