The grayscale function

Treat yourself to a cookie if you can guess what the grayscale function does. Yep, it converts the color passed to it into a grayscale color. Not much more to say really:

&:nth-child(7) a {
  background-color: grayscale($color1);
}

Following is the output on the browser:

The grayscale function

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.