Less (stylesheet language)

From Wiki @ Karl Jones dot com
Jump to: navigation, search

Less (sometimes stylized as LESS) is a dynamic style sheet language that can be compiled into Cascading Style Sheets (CSS), or can run on the client-side and server-side.

Description

Less is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax.

Open source

Less is open source.

JavaScript

Its first version was written in Ruby. In later versions, use of Ruby is deprecated and replaced by JavaScript.

Nested metalanguage

The indented syntax of Less is a nested metalanguage, as valid CSS is valid Less code with the same semantics.

Features

Less provides the following features:

  • Variables
  • Nesting
  • Mixins
  • Operators
  • Functions

The main difference between Less and other CSS precompilers being that Less allows real-time compilation via less.js by the browser.

See also

External links