resolveBracketForeground

Bracket
stable

Resolve a bracket color value to its text/foreground CSS colour. Intent strings yield the subtle foreground token; raw CSS colours are returned as-is; null/falsy inputs return null.

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 (maps to its fg-subtle token), "transparent", a raw CSS colour string, or a falsy value (returns null).

API

Valeur de retour

La valeur retournée par cet util.

The resolved foreground CSS colour string, or null when the input is falsy or unresolvable.

Usage

Exemples

Extraits de code prêts à coller.

Resolve intent and transparent values

typescript