LESS - Variables Interpolation


Advertisements

Description

The variable interpolation is the process of evaluating an expression or literal containing one or more variables, yielding output in which the variables are replaced with their corresponding values. The variables can also be used in other places like selector names, property names, URLs and @import statements.

The following table demonstrates the use of variable interpolation in detail.

Sr.No. Variables usage & Description
1 Selectors

The selector can reference any variable and it is built during the compile time.

2 URLs

The variables can be used to hold URLs.

3 Import Statements

An import statement can have a variable which holds a path.

4 Properties

The variables can be referenced by properties.

less_variables.htm
Advertisements