Less (which stands for Leaner Style Sheets) is a backwards-compatible language extension for CSS. This is the official documentation for Less, the language and Less.js, the JavaScript tool that converts your Less styles to CSS styles. Because Less looks just like CSS, learning it is a breeze. Less only makes a few convenient additions to the CSS language, which is one of the reasons it can be learned so quickly. Less gives you the ability to use nesting instead of, or in combination with cascading. Arithmetical operations can operate on any number, color or variable. If it is possible, mathematical operations take units into account and convert numbers before adding, subtracting or comparing them. The result has leftmost explicitly stated unit type. If the conversion is impossible or not meaningful, units are ignored. With Less you can transform colors, manipulate strings and do maths.

Features

  • Transform colors, manipulate strings and do maths
  • As of Less 3.5, you can also use mixins and rulesets as maps of values
  • Variables and mixins are first looked for locally, and if they aren't found, it's inherited from the "parent" scope
  • Mixin and variable definitions do not have to be placed before a line where they are referenced
  • Both block-style and inline comments may be used
  • Variables make your code easier to maintain by giving you a way to control those values from a single location

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow Less.js

Less.js Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Less.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Data Formats Software, JavaScript Media Center Markup Language (MCML) Software, JavaScript Web Development Software

Registered

2021-03-17