Comments in Sass

In Sass you can define multiline comments the same way as in CSS:

/* Just some comment
about some style */

Unless you use the compressed output format, these multiline comments will be kept in the final CSS.

You can force Sass to keep multiline comments in the final output by using this syntax with the additional !:

/*! Just some comment
about some style */
↓ Here's a great React course we recommend. Plus, this affiliate banner helps support the site πŸ™

You can also define single-line comments:

// Color my life
body {
  background-color: mistyrose;

Single-line comments won’t be kept in the final CSS, no matter which output style you use for compiling your Sass to CSS.

  Tweet It

πŸ•΅ Search Results

πŸ”Ž Searching...

Sponsored by #native_company# β€” Learn More
#native_title# #native_desc#