Skip to content

Function: getGradientForColor()

function getGradientForColor(color, deg?): MantineGradient;

Defined in: shared/src/constants/colors.ts:9

Generates a suitable gradient based on a MantineColor

ParameterTypeDefault valueDescription
colorDefaultMantineColorundefinedThe base color for the gradient
degnumber135The direction of the gradient in degrees (default: 135)

MantineGradient

A MantineGradient object with from, to, and deg