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

Other Useful Business Software
Your top-rated shield against malware and online scams | Avast Free Antivirus Icon
Your top-rated shield against malware and online scams | Avast Free Antivirus

Browse and email in peace, supported by clever AI

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
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