CSS_COLOR_REGEX

const
Color

Regular expression that matches CSS functional color notations such as rgb(), rgba(), hsl() and hsla(). Captures two named groups: fn (the function name) and values (the comma-separated channel arguments). Used by parseColor to dispatch to the right COLOR_MAPPERS entry.

TypeScript

Definition

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

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Matching a CSS color string

typescript