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
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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