Question · HTML and CSS course · Module 7: SASS

The darken Function in SASS

What does the darken($color, 20%) function do in SASS?

Answer options

  • Adds a 20% black background behind the element
  • Creates a shadow of the given color
  • Darkens the color by 20% lightness
  • Reduces the color saturation by 20%

You can check the correct answer by solving this task in the CodeWorlds game.