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

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

value
requis
TBracketColor
A TBracketColor value: a TIntent string (resolved to its foreground token), a raw CSS colour string, or a falsy value (returns null).

API

Valeur de retour

La valeur retournée par cet util.

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

Usage

Exemples

Extraits de code prêts à coller.

Resolve intent and raw colour

typescript