intentTokenBase
Commons
stable
Maps a TIntent value to the CSS token namespace segment used in all intent-related var() expressions (e.g. "primary" → "action--primary", "danger" → "feedback--danger").
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- intentrequiredTIntent
- The semantic intent value. Neutral maps to action--secondary; success/warning/danger/info map to feedback--{intent}; primary/secondary/ghost map to action--{intent}.
API
Return value
The value returned by this util.
- The BEM namespace segment inserted into --origam-color__{base}---{slot} variable names.
Usage
Examples
Ready-to-paste usage snippets.
Resolve the token namespace for each intent