Skip to content

Instantly share code, notes, and snippets.

@byronrode
Created May 14, 2012 07:07
Show Gist options
  • Save byronrode/2692378 to your computer and use it in GitHub Desktop.
Save byronrode/2692378 to your computer and use it in GitHub Desktop.
LESS for WP
<?php
require 'modules/lessphp/lessc.inc.php';
try {
lessc::ccompile(get_stylesheet_directory() . '/style.less', get_stylesheet_directory() . '/style.css');
} catch (exception $ex) {
exit('lessc fatal error:<br />'.$ex->getMessage());
}
?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo( 'stylesheet_url' ); ?>" media="screen" />
/*
Theme Name: Template Name
Version: 1.0
Description: Description
Author: Tangram
Author URI: http://www.wearetangram.com
Template: child-theme-of
*/
@import url("../theme/style.css");
@white: #fff;
@border-dark: #575656;
@tangram-red: #e30613;
@tangram-green: #2fac66;
@tangram-blue: #2daae1;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment