Friday, March 3, 2017

LESS - Overview

What is LESS?

LESS is a CSS pre-processor that enables customizable, manageable and reusable style sheet for web site. LESS is a dynamic style sheet language that extends the capability of CSS. LESS is also cross browser friendly.

CSS Preprocessor is a scripting language that extends CSS and gets compiled into regular CSS syntax, so that it can be read by your web browser. It provides functionalities like variables, functions, mixins and operations that allows you to build dynamic CSS.

Why to use LESS?

  • LESS supports creating cleaner, cross-browser friendly CSS faster and easier.
  • LESS is designed in JavaScript and also created to be used in live, which compiles more faster than other CSS pre-processors.
  • LESS keeps your code in modular way which is really important by making it readable and easily changeable.
  • Faster maintenance can be achieved by the use of LESS variables.

History

LESS was designed by Alexis Sellier in 2009. LESS is an open source. First version of LESS was written in Ruby and in the later version it is replaced by JavaScript.

Features

  • Cleaner and more readable code can be written in an organized way.
  • We can define styles and it can be reused throughout the code.
  • LESS is based on JavaScript and is super set of CSS.
  • LESS is an agile tool that sorts out the problem of code redundancy.

Advantages

  • LESS easily generates CSS that works across the browsers.
  • LESS enables you to write cleaner and well organized code by using nesting.
  • Maintenance can be achieved faster by the use of variables.
  • LESS enables you to reuse the whole classes easily by referencing them in your rule sets.
  • LESS provides the use of operations that makes coding faster and saves time.

Disadvantages

  • It takes time to learn if you are new to CSS preprocessing.
  • Due to the tight coupling between the modules, more efforts should be taken to reuse and/or test dependent modules.
  • LESS has less framework compared to older preprocessor like SASS, which consists of frameworks Compass, Gravity and Susy.

No comments:

Post a Comment