TOKEN_INTENT_STATES

Color
stable

A frozen Set of intent / state modifier strings recognised by the origam token-name grammar. A path segment matching one of these values is emitted with the "--" modifier separator in the CSS variable name rather than treated as a BEM child ("__") or a property ("---").

API

Signature

Full TypeScript signature sourced from the util file.

typescript

TOKEN_INTENT_STATES is a module-level constant, not a function. It is documented here because it lives in a *.util.ts file and is exported from the origam package.

API

Return value

The value returned by this util.

Read-only Set containing: "primary", "secondary", "ghost", "success", "warning", "danger", "info", "error", "selected", "outlined", "elevated", "filter", "hover", "active", "disabled", "focus".

Usage

Examples

Ready-to-paste usage snippets.

Guard a path segment

typescript