resolveBracketSurface

Bracket
stable

Resolve a bracket bgColor value (intent token, "transparent", or raw CSS colour) to a background-color CSS expression. Returns null for falsy inputs.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

value
required
TBracketColor
A TBracketColor value: a TIntent string (maps to its background token), "transparent", a raw CSS colour string, or a falsy value (returns null).

API

Return value

The value returned by this util.

The resolved background-color CSS value, or null when the input is falsy or unresolvable.

Usage

Examples

Ready-to-paste usage snippets.

Resolve intent, transparent, and raw colour

typescript