ReferenceAPI
Oklch
A colour in OKLCH.
How this is generated
Source: lib/color/oklch.ts. Script: scripts/build-reference.mts. Command:
pnpm run generate.
Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.
Oklch
A colour in OKLCH. l 0 to 1, c unbounded, h in degrees.
| Kind | Declared in |
|---|---|
| interface | lib/color/oklch.ts |
export interface Oklch {
l: number
c: number
h: number
alpha?: number
}