LESS CSS Has More with 1.2.0

The LESS dynamic stylesheet language was one of ReadWriteWeb’s [top Web developer tools for 2011], and it’s starting off 2012 strong as well. LESS maintainer Alexis Sellier has released LESS 1.2.0 with a few interesting new features and fixes for WebKit and Internet Explorer.

LESS adds functionality that should be in CSS in the first place. For example, LESS gives Web developers variables, functions, operators and other features that CSS doesn’t have.

LESS supports mixins, which are properties that can be copied from one ruleset to another. With 1.2.0, Sellier has added conditional execution with its mixins, so that developers can change behavior of the mixin based on the value of parameters passed to it. For instance, developers might change values depending on screen size.

You might be familiar with, Sass, the extension of CSS3. In 1.2.0, Sellier borrows some of the type-checking functions and the mix function from Sass.

The 1.2.0 release also adds support for !important after mixin calls, a percentage function and a color function for parsing JavaScript strings as a hex color.

LESS is available under the Apache 2.0 license and code is available on GitHub.

Facebook Comments