Range

What It Does

Creates a sequence of colors that transition smoothly between two endpoint colors. Perfect for generating color palettes, gradients, or stepping between design tokens with customizable interpolation.

Inputs

Name
Description
Type
Required

colorA

The starting color

Color

No

colorB

The ending color

Color

No

space

The color space to interpolate in

String

No

hue

How to interpolate the hue (shorter, longer, etc.)

String

No

steps

Number of colors to generate (including endpoints)

Number

No

progression

The interpolation curve (linear, quadratic, cubic)

String

No

Outputs

Name
Description
Type

colors

Array of colors transitioning from colorA to colorB

List

How to Use It

  1. Drag the Range node into your graph.

  2. Connect your starting color (like #3366FF) to the "colorA" input.

  3. Connect your ending color (like #FF6633) to the "colorB" input.

  4. Set the color "space" to interpolate in (like lab).

  5. Set "steps" to the number of colors you want (e.g., 5).

  6. Set the progression to define the interpolation (like linear).

  7. Run the graph—your output will be an array of colors that form a smooth transition.

Tips

  • Different color spaces produce different transitions. "Lab" and "Oklch" usually give the most perceptually uniform results.

  • The "progression" parameter controls the easing of the transition—try different options for varied effects.

See Also

Use Cases

  • Color Palettes: Generate a consistent palette with evenly spaced colors for data visualization.

  • Gradient Creation: Build multi-stop gradient definitions for backgrounds or UI elements.

  • Token Scales: Create a complete set of design tokens from light to dark for a design system.

Last updated