CSS_NAMED_COLORS

const
Color

Set of the 148 CSS named colors plus the CSS-wide keywords (transparent, currentColor, inherit, initial, unset, revert). Used by isCssColor so consumers can pass color names like "red" or "transparent" directly without going through hex or rgb notation.

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.

Checking if a string is a CSS named color

typescript