Stops in order, spread evenly from the first to the last.
Which way the run goes — a named edge-to-edge direction, or explicit endpoints.
A straight run between two points.
Stops in order, from the centre outwards.
Optionaldirection?: GradientDirectionUnused for a radial gradient, which always runs centre to corner.
A run outward from the node's centre, reaching the corners.
Optionalat?: { x?: number | `${number}%`; y?: number | `${number}%` }The point the sweep turns about, as a fraction of the box or a percentage of it. CSS
at <position>.
Optionalx?: number | `${number}%`Distance from the left edge — 0.25 and '25%' mean the same thing.
Optionaly?: number | `${number}%`Distance from the top edge.
Stops in order, spread evenly around the sweep. The first and last meet at the seam.
Optionalfrom?: numberWhere the sweep starts, in degrees clockwise from twelve o'clock. CSS from <angle>.
A sweep around a centre, the stops running clockwise from twelve o'clock.
A gradient, as a background fill or as the alpha of a Mask.
Colours are spread evenly from the first to the last; a single colour sits at the midpoint. A radial gradient runs from the node's centre to the corner, so it covers the whole box, and a conic gradient sweeps clockwise from twelve o'clock, as CSS does.