CDP Frontend SDK
    Preparing search index...

    Function flattenTokensObject

    • Flattens a nested theme object into a single-level object with CSS variable representations.

      Type Parameters

      Parameters

      • tokensObject: T

        The nested tokens object to flatten.

      • OptionalcssVarPrefix: string = "cdp-web"

        An optional prefix for the generated CSS variables.

      Returns Flattened<T>

      A flattened theme object.