Darken colors relative to the chosen color

Because there isn’t a $darkness keyword we use a negative value on $lightness in order to darken a color. The result will be: #242424

.content {
  background: #333333;
  &:hover {
    background: scale_color(#333333, $lightness: -30%); 
  }
}

Add your comment