adjust-hue function do in Sass?adjust-hue does to a color in Sass.The adjust-hue function rotates the hue of a color by the specified degrees, moving it around the color wheel. It does not affect brightness or saturation.
$base-color: #ff0000; $result: adjust-hue($base-color, 120deg);
$base-color: #ff0000; $result: adjust-hue($base-color, 120deg);
Rotating red (#ff0000) by 120 degrees on the hue wheel results in green (#00ff00).
Rotating red (#ff0000) by 240 degrees on the hue wheel results in blue (#0000ff).
adjust-hue in Sass?.btn {
background-color: adjust-hue(#ff0000, 180deg);
}The Sass code styles elements with the class btn. So the selector .btn matches those elements.
adjust-hue affect color contrast for accessibility?adjust-hue to rotate a color's hue, what should you check to maintain good accessibility?Rotating hue changes the color but may reduce contrast. Always verify contrast ratios to keep text readable and accessible.
