adjustHue
functionAdjust the hue of a color. Rotates the hue on the color wheel.
Import
import { adjustHue } from '@modular/sdk/theme';Notes
- returns
- The adjusted color as hex or rgba string
- throws
- Error if the color format is invalid
- example
- ```ts adjustHue('#ff0000', 120) // Red to green adjustHue('#ff0000', 240) // Red to blue adjustHue('#ff0000', -60) // Red to yellow-orange ```