banira
    Preparing search index...

    Function parseDesignTokens

    • Parses a W3C Design Tokens (DTCG) document into a flat list of CSS custom properties. Groups become dashed name segments, $type is inherited from ancestor groups, and {alias} references (whole-value and embedded) are resolved. Composite tokens (shadow, typography, …) whose value cannot be expressed as a single CSS string are skipped.

      Parameters

      • doc: unknown

      Returns ImportedToken[]

      Error if the document is not a JSON object, or a reference is circular.