Fill Gradient Type
fill-gradient-type
Determines the gradient direction of fill=gradient.
Valid values are linear and radial. Defaults to linear when not specified.
| Value | Description |
|---|---|
linear (default) | Generates the gradient in a linear direction (ex: left to right). Colors can be controlled with fill-gradient-linear |
radial | Sets the gradient to have a radial direction (ex: from center outwards). Colors can be controlled with fill-gradient-radial |
Either type accepts 2 to 16 colors, positioned with fill-gradient-stops and interpolated in the color space set by fill-gradient-cs.