The @warn directive

Sass also has a @warn directive that enjoys similar functionality to @debug. For example:

@warn $theme-tint;

Unlike @debug, messages generated by @warn can be universally suppressed by adding the following to Compass's config.rb file:

sass_options = {:quiet => true}

To re-enable warnings, either comment out the line or amend it like so:

sass_options = {:quiet => false}

Get Sass and Compass for Designers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.