Skip to content

Documentation / @ripl/core / GradientColorStop

Interface: GradientColorStop

Defined in: packages/core/src/gradient/types.ts:2

A single color stop within a gradient, consisting of a CSS color and an optional offset position.

Properties

PropertyTypeDescriptionDefined in
colorstringThe CSS color of the stop.packages/core/src/gradient/types.ts:4
offset?numberThe stop's position along the gradient (0–1). Inferred from neighbouring stops when omitted.packages/core/src/gradient/types.ts:6