Skip to content

Declarative linear and radial gradients

Declarative gradients map cleanly to design tokens and theme systems—see Lesson 17 — Gradient and pattern. Serialize stops to JSON for persistence.

Validate color stops in sRGB vs display-p3 when branding matters.

Interactive demo

Released under the MIT License.