less Variables Introduction


Example

In Less, unlike Sass or Shell, the variables are declared by having names starting with a @ symbol. For example:

@sky-blue: #87ceeb;

body {
  background-color: @sky-blue;
}

The above example gives you:

body {
  background-color: #87ceeb;
}

Here it explains how to declare a variable and make use of them.