Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
A LESS compiler for WordPress ! This is a plugin that will allow you to write and compile LESS, and to edit style variables straight into your WordPress dashboard.
It uses leafo's LESS compiler written in PHP.
- Download and unzip the last release
- Move it into your wp-content/plugins directory
- Activate the plugin in WordPress
The plugin comes with few useful functions. You will most likely use these in your theme's
Import any LESS files to compile prior to the main stylesheet.
less_import( $files_array );
To edit variables from the WordPress dashboard, you will have to define the absolute path to your variables definition file(s).
register_less_variables( $source );
Set a LESS variable value
less_set( $variable, $value );
Get a LESS variable value
less_get( $variable );
Define path to the CSS file to compile (relative to your theme's directory).
less_output( $stylesheet );
The default output is :
Do not set your theme's
style.cssas output ! You silly.
Contributors are more than welcome !
WTFPL – Do What the Fuck You Want to Public License