IGradientStop

interface
Color & Intent

Single stop in a multi-stop gradient — pairs a color (TIntent alias or raw CSS color) with a percentage position in the [0..100] range.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

color
required
TIntent | string
Stop color — a TIntent name (resolved to its --origam-color__action--{intent}---bg token) or a raw CSS color string (hex, rgb, hsl, named).
position
required
number
Position of the stop as a percentage in the [0..100] range.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Building a 3-stop gradient with IGradientStop

typescript