styleCow

Css preprocesor written in php

styleCow plugins

styleCow is a basic library extensible with plugins for specific purposes. For example there are plugins to implement variables in css, to add the vendor prefixes automatically, to add internet explorer filters emulating some css3 properties or to implement a grid system.

The function transform() executes one or more plugins. You have to specify the plugins using an array:

include('stylecow/stylecow.php');

$styleCow = new stylecow\Stylecow();

$styleCow->load('my-styles.css');

//Execute the plugins "vendor_prefixes" and "variables"
$styleCow->transform(array('vendor_prefixes', 'variables'));
Fork me on Github