resolveBracketBorderColor

Bracket
stable

Resolve a bracket borderColor value (intent token or raw CSS colour) into a concrete CSS colour string. 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 (resolved to its foreground token), a raw CSS colour string, or a falsy value (returns null).

API

Return value

The value returned by this util.

The resolved CSS colour string for use in border-color, or null when the input is falsy or unresolvable.

Usage

Examples

Ready-to-paste usage snippets.

Resolve intent and raw colour

typescript