What's the difference between Sass and SCSS?

Source: Internet
Author: User

Sass and SCSS are actually the same kind of things, we usually call Sass, the difference between the following two points:

  1. File extension differs, Sass is extension with ". Sass" suffix, and SCSS is extension with ". SCSS" suffix
  2. Grammar is written in a different way, Sass is written in strict indentation grammar rules, without curly braces ({}) and semicolons (;), and SCSS's syntax is very similar to the way we write CSS syntax.

Sass syntax

$font-stack:helvetica, Sans-serif  //define variable $primary-color: #333//define variable body  font:100% $font-stack  color: $ Primary-color

SCSS syntax

$font-stack:helvetica, Sans-serif; $primary-color: #333; body {  font:100% $font-stack;  Color: $primary-color;}

The compiled CSS

Body {  font:100% Helvetica, Sans-serif;  Color: #333;}

What's the difference between Sass and SCSS?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.