Skip to main content

CSS Color Module Evolution

Modern CSS provides native support for OKLAB/OKLCH color spaces and explicit gradient interpolation control.

Gradient Interpolation Syntax

The modern gradient syntax allows explicit specification of interpolation color space.

Hue Interpolation Methods

When using OKLCH (polar coordinates), the hue can be interpolated in different directions around the color wheel.

Core-to-Core Gradient Patterns

When creating gradients between two Core Colors, you have three main options.

OKLCH vs OKLAB for color-mix

The choice between OKLCH and OKLAB in color-mix() depends on the use case.

Browser Support

CSS Implementation Examples

Decision Matrix

THE CENTER

Gradients as Visual Flow Indicators

In the Core-Flow system, gradients represent the “flow” of information between data points. A gradient from Blue (primary) to Green (success) might indicate a transition from “in progress” to “complete.”
The CSS gradient syntax linear-gradient(in oklab, ...) is not a hack - it is the correct way to create perceptually clean color transitions that communicate data relationships effectively.

Syntax Spectrum

File-type specific syntax highlighting colors