SASS vs SCSS in CSS
SCSS and SASS is a preprocessor that lets you use features that aren't a part of the wider CSS standard yet. and provides better workflows for maintaining your stylesheets.
SASS
SASS (Syntactically Awesome Stylesheets) is a CSS pre-processor that lets you use
variables, mathematical operations, mixins, loops, functions, imports, and other interesting
functionalities that make writing CSS much more powerful. In some ways, you may think of
SASS is a style sheet extension language because it extends the standard CSS
characteristics by introducing the benefits of a basic programming language. So SASS will
compile your code and generate the CSS output a browser can understand.
SCSS
SCSS is the main syntax for the SASS which builds on top of the existing CSS
syntax. It makes use of semicolons and brackets like CSS (Cascaded Style Sheets)
List down the main difference between SAAS and SCSS.
SASS
- is used when we need an original syntax.
- SASS follows strict indentation.
- SASS has a loose syntax with white space and no semicolons
- SAAS file extension is .sass.
- SASS has more developer community and support than SCSS.
SCSS
- The code syntax is not required for SCSS.
- SCSS has no strict indentation.
- The SCSS resembles more to CSS style and the use of semicolons and braces is mandatory.
- SCSS file extension is .scss
Comments
Post a Comment