V
V
Vladyslavvvv2020-08-04 12:28:37
css
Vladyslavvvv, 2020-08-04 12:28:37

I can't create a variable and templates in my scss file in SublimeText, what's the problem?

I write $variablename and it is not highlighted and in css it is compiled as a regular word. Syntax for sass set, what could be the problem? Here is an example code in scss:
$vtp:#cf3434;
body{
background-color: vtp;
}

and this is how it compiles to css:
body {
background-color: vtp; }

Thank you in advance for your reply .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2020-08-04
@Vladyslavvvv

body {
  background-color:  $vtp; /* Забыли знак доллара $ */
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question