
Variables in Less are defined with an at sign Variable assignment is done with a colon (:).ĭuring translation, the values of the variables are inserted into the output CSS document. Less provides the following mechanisms: variables, nesting, mixins, operators and functions the main difference between Less and other CSS precompilers is that Less allows real-time compilation via less.js by the browser. The indented syntax of Less is a nested metalanguage, as valid CSS is valid Less code with the same semantics. Its first version was written in Ruby however, in the later versions, use of Ruby has been deprecated and replaced by JavaScript. ĭesigned by Alexis Sellier, Less is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax.


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