Less (style sheet language)

Less
Designed byAlexis Sellier
DeveloperAlexis Sellier, Dmitry Fadeyev
First appeared2009; 15 years ago (2009)
Stable release
4.2.0[1] Edit this on Wikidata / 7 September 2023; 14 months ago (7 September 2023)
Typing disciplineDynamic
Implementation languageJavaScript
OSCross-platform
LicenseApache License 2.0
Filename extensions.less
Websitelesscss.org
Influenced by
CSS, Sass
Influenced
Sass, Less Framework, Bootstrap (v3)

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.[2] Designed 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.[3] Less is an open source project. Its first version was written in Ruby; however, in the later versions, use of Ruby has been deprecated and replaced by JavaScript. The indented syntax of Less is a nested metalanguage, as valid CSS is valid Less code with the same semantics. 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.[2][4]

  1. ^ "Release 4.2.0". 7 September 2023. Retrieved 18 September 2023.
  2. ^ a b The Core Less Team. "Getting started | Less.js". Less.js. Retrieved 2021-03-19.
  3. ^ Weizenbaum, Nathan (2009-06-17). "Sass and Less : Nex3". Archived from the original on 2009-06-21. Retrieved 2021-03-19.
  4. ^ Meng, Jiew (2010-12-14). Mortensen, Peter (ed.). "css - Is there a SASS.js? Something like LESS.js?". Stack Overflow. Retrieved 2021-03-19.