Question about $ sign in CSS

I see sometimes $ sign in CSS what it means ?

Can you give us an example?

$size:300px;
$size2:100%;
$degree:rotateY(180deg);

OR i seen @
for example @include @mixin

It’s part of Sass which is a css preprocessor that adds more functionality and syntax to your css.

The dollar sign is used to indicate a variable in sass. You can store a value in a variable and use the variable in your css.

Usage and examples: Sass: Variables

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.