Linear gradient (linear-gradient)

A straight gradient through two to four colours, like CSS linear-gradient().

{
  "$schema": "https://aurora.goatsoft.io/schema/v1.json",
  "format": "aurora",
  "version": 1,
  "name": "Linear gradient starter",
  "palette": [
    "oklch(0.16 0.05 275)",
    "oklch(0.32 0.11 295)",
    "oklch(0.55 0.16 330)",
    "oklch(0.78 0.13 60)"
  ],
  "layers": [
    {
      "type": "linear-gradient"
    }
  ]
}

This is presets/starters/linear-gradient.aurora: the generator alone, with its defaults.

Colours

A layer’s colors picks 4 palette colours, in the order below. To recolour part of the background, change the palette colour in that position.

PositionPaintsDefault
0Start of the gradientoklch(0.16 0.05 275)
1Second stopoklch(0.32 0.11 295)
2Third stop (with three or more stops)oklch(0.55 0.16 330)
3Fourth stop (with four stops)oklch(0.78 0.13 60)

Parameters

Every parameter is optional; one you leave out uses its default.

NameLabelDefaultRangeWhat it does
angleAngle180 deg0 to 360Direction, as in CSS: 0 points up, 90 right, 180 down.
stopsStops32 to 4How many palette colours the gradient runs through, in order.
stop2Stop 20.50 to 1Where the second colour sits along the gradient.
stop3Stop 30.750 to 1Where the third colour sits, with four stops.
driftDrift0 deg/s-30 to 30Turns the gradient slowly; 0 keeps it still.