0
0
SASSmarkup~5 mins

sass:color module - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the sass:color module used for?
It provides functions to manipulate colors in Sass, like adjusting brightness, saturation, or mixing colors.
Click to reveal answer
beginner
How do you lighten a color by 20% using sass:color?
Use the color.lighten($color, 20%) function to make the color 20% lighter.
Click to reveal answer
intermediate
What does the mix($color1, $color2, $weight) function do?
It blends two colors together. The $weight controls how much of $color1 is in the mix.
Click to reveal answer
intermediate
How can you change the alpha (opacity) of a color using sass:color?
Use the color.adjust_alpha($color, $amount) function to increase or decrease transparency.
Click to reveal answer
advanced
What is the difference between darken() and adjust-lightness()?
darken() reduces lightness by a percentage, while adjust-lightness() can increase or decrease lightness by a positive or negative amount.
Click to reveal answer
Which function from sass:color would you use to make a color more transparent?
Aadjust-alpha()
Blighten()
Cmix()
Dsaturate()
What does mix(red, blue, 50%) return?
AA color halfway between red and blue
BPure red
CPure blue
DBlack
Which function would you use to increase the saturation of a color?
Aadjust-alpha()
Bdesaturate()
Cdarken()
Dsaturate()
If you want to make a color 10% darker, which function is best?
Alighten($color, 10%)
Bmix($color, black, 10%)
Cdarken($color, 10%)
Dadjust-alpha($color, 10%)
What does grayscale($color) do?
AMakes the color fully transparent
BConverts the color to shades of gray
CIncreases the color's brightness
DMixes the color with white
Explain how you can use the sass:color module to adjust the brightness and transparency of a color.
Think about making colors lighter or darker and more or less see-through.
You got /4 concepts.
    Describe the difference between mix() and saturate() functions in the sass:color module.
    One combines colors, the other changes color intensity.
    You got /3 concepts.