Lets you build and compile Less css styles.
Less is an extension of CSS that adds variables, mixins, and quite a bit more. You can write css like:
@brand_color: #4D926F; #header { color: @brand_color; } h2 { color: @brand_color; }
First, create a less file like:
@my_color red body { color: @my_color; }
Save this in a file named red.less.
red.less
Next, you have to require the steal/less plugin and then use steal.less to load your less style:
steal/less
steal.plugins('steal/less').then(function(){ steal.less('red'); });
Loads Less files relative to the current file. It's expected that all Less files end with less.
less
steal.less(path) -> steal
{String+}
the relative path from the current file to the less file. You can pass multiple paths.
{steal}
returns the steal function.
Lets you build and compile Less css styles.
Less is an extension of CSS that adds variables, mixins, and quite a bit more. You can write css like:
Use
First, create a less file like:
Save this in a file named
red.less.Next, you have to require the
steal/lessplugin and then use steal.less to load your less style:Loads Less files relative to the current file. It's expected that all Less files end with
less.