Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

From what I've been reading, Sass is a language that makes CSS more powerful with variable and math support.

What's the difference with SCSS? Is it supposed to be the same language? Similar? Different?

1 Answer

0 votes
by (106k points)

The full form of SASS is Syntactically Awesome StyleSheets. SASS adds power and elegance to the basic language and it is an extension of CSS. The new name of SASS is SCSS with some changes, but the old one SASS is also there. 

Below is the difference between SCSS or SASS:-enter image description here

Below is the syntactic example of SCSS and SASS respectively:-

$color: red 

=my-border($color) 

 border: 1px solid $color

body 

 background: $color

+my-border(green)

$color: red; 

@mixin my-border($color) { 

border: 1px solid $color; 

body { 

background: $color; 

@include my-border(green); 

}

Related questions

Browse Categories

...