0
0
SASSmarkup~5 mins

Color values and manipulation in SASS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are the common color formats supported in Sass?
Sass supports several color formats including named colors (like red), hexadecimal (like #ff0000), RGB (like rgb(255, 0, 0)), RGBA (with alpha transparency), HSL (hue, saturation, lightness), and HSLA (HSL with alpha).
Click to reveal answer
beginner
How does the lighten() function work in Sass?
The lighten($color, $amount) function makes a color lighter by increasing its lightness by the given percentage amount. For example, lighten(#0000ff, 20%) makes blue 20% lighter.
Click to reveal answer
beginner
What does the rgba() function do in Sass?
The rgba() function creates a color with red, green, blue, and alpha (opacity) values. Alpha controls transparency from 0 (fully transparent) to 1 (fully opaque). Example: rgba(255, 0, 0, 0.5) is semi-transparent red.
Click to reveal answer
intermediate
Explain the difference between darken() and desaturate() in Sass.
darken($color, $amount) reduces the lightness of a color, making it darker. desaturate($color, $amount) reduces the saturation, making the color less intense or more gray.
Click to reveal answer
intermediate
How can you mix two colors in Sass?
Use the mix($color1, $color2, $weight) function. It blends two colors together. The optional $weight (0% to 100%) controls how much of $color1 is in the mix. For example, mix(red, blue, 50%) creates purple.
Click to reveal answer
Which Sass function would you use to make a color more transparent?
Alighten()
Bsaturate()
Crgba()
Ddarken()
What does the desaturate($color, 30%) function do?
AReduces the color's saturation by 30%
BMakes the color 30% lighter
CMakes the color 30% darker
DIncreases the color's saturation by 30%
If you want to blend 70% red and 30% blue, which function and weight would you use?
Amix(red, blue, 70%)
Bmix(blue, red, 70%)
Clighten(red, 70%)
Ddarken(blue, 30%)
Which color format includes transparency in Sass?
AHSL
Bnamed colors (like red)
Chexadecimal (#rrggbb)
DRGBA
What happens if you use darken($color, 50%)?
AThe color becomes 50% lighter
BThe color becomes 50% darker
CThe color becomes 50% more saturated
DThe color becomes 50% less saturated
Describe how you can change a color's brightness and transparency in Sass.
Think about functions that adjust lightness and opacity.
You got /5 concepts.
    Explain how to blend two colors in Sass and control the mix ratio.
    Consider how to combine colors with a function.
    You got /4 concepts.