function dynamic-shade public view code open_in_new
Calculates a dynamic shade of a color by adjusting its lightness in LCH color space.
Parameters
Name | Type | Default | Description |
---|---|---|---|
$color * | Color | - | The base color to shade. |
$lightness | Number | 50 | The target lightness value to move toward. |
$percentage | Number | 0.1 | The percentage to move toward the target lightness. |
$offset | Number | 10 | The offset added or subtracted based on direction. |