Skip to main content

Function: resolveUseByteColors()

resolveUseByteColors(useByteColors?, defaultUseByteColors?): boolean

Defined in: lib/color/normalize-byte-colors.ts:13

Resolves whether semantic colors should be interpreted as byte-style 0..255 values.

Parameters​

useByteColors?​

boolean

Explicit color interpretation flag.

defaultUseByteColors?​

boolean = true

Fallback value when useByteColors is omitted.

Returns​

boolean

true when semantic colors should be normalized from bytes, otherwise false.