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
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- valuerequiredTBracketColor
- 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
Return value
The value returned by this util.
- The resolved foreground CSS colour string, or null when the input is falsy or unresolvable.
Usage
Examples
Ready-to-paste usage snippets.
Resolve intent and transparent values