Function: getGradientForColor()
function getGradientForColor(color, deg?): MantineGradient;Defined in: shared/src/constants/colors.ts:9
Generates a suitable gradient based on a MantineColor
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
color | DefaultMantineColor | undefined | The base color for the gradient |
deg | number | 135 | The direction of the gradient in degrees (default: 135) |
Returns
Section titled “Returns”MantineGradient
A MantineGradient object with from, to, and deg