SCSS and SASS
Basic Infomation about sass/scss

Introduction:
According to Wikipedia, sass is a preprocessor scripting language interpreted or compiled into Cascading Style Sheets (CSS).
What is it mean?
The basic meaning is that sass is CSS. Sass is a style sheet language.
Who person designs and develops sass?
Sass was designed by Hampton Catlin and developed by Natalie Weizenbaum.
Scss files provide two traditionally extensions for us .sass and .scss
- SASS (.sass) Syntactically Awesome Style Sheets.
- SCSS (.scss) Sassy Cascading Style Sheets.
Note Sass or Scss are both the same.
What is different between sass or scss?
The primary difference is that when writing code in sass or scss. Sass provides two file extensions. So that is why we confuse scss and sass, but this is not a big problem.
The sass language has two variants. The sass variants help to write code fastly.
Variants
- Sass
- Scss
We do not use curly bracket {} when writing code in sass. But when you write scss code. Then you use a curly bracket.
Sass code:
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
$container-bg:white;body
font: 100% $font-stack;
color: $primary-color;
.container
background-color: $container-bg;
border: 1px solid #000;
display: flex;
height: 500px;
justify-content: space-between;
margin: 0 auto;
padding: 1em;
width: 50%;
&:hover
background-color: #d9534f;
color: #fcfcfc;scss code:
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
$container-bg:white;body {
font: 100% $font-stack;
color: $primary-color;
.container {
background-color: $container-bg;
border: 1px solid #000;
display: flex;
height: 500px;
justify-content: space-between;
margin: 0 auto;
padding: 1em;
width: 50%;
&:hover {
background-color: #d9534f;
color: #fcfcfc;
}} }
Reference
- https://en.wikipedia.org/wiki/Sass_(stylesheet_language)
- https://sass-lang.com/
- https://scotch.io/tutorials/aesthetic-sass-1-architecture-and-style-organization
- https://www.w3schools.com/sass/
Conclusion
I hope you understand how to use scss. Please tell me in the comment box if you have any queries, mistakes, or suggestions.
