In this chapter, we will discuss the Variables in LESS. LESS allows variables to be defined with an @ symbol. The Variable assignment is done with a colon(:).
The following table demonstrates the use of LESS variables in detail.
|Sr.No.||Variables usage & Description|
Repetition of same value many times can be avoided by the use of variables.
The variables can also be used in other places like selector names, property names, URLs and @import statements.
We can define variables with a variable name consisting of a value.
In lazy loading, variables can be used even when they are not.
Default variable has an ability to set a variable only when it is not already set. This feature is not required because variables can be easily overridden by defining them afterwards.
17 Lectures 2 hours
23 Lectures 1.5 hours
34 Lectures 4 hours