Open Design Tokens
    Preparing search index...

    Function isTokenOfType

    • Narrows a token to a specific $type. Checks the explicit $type only.

      Type Parameters

      • T extends
            | "number"
            | "color"
            | "dimension"
            | "fontFamily"
            | "fontWeight"
            | "duration"
            | "cubicBezier"
            | "strokeStyle"
            | "border"
            | "transition"
            | "shadow"
            | "gradient"
            | "typography"

      Parameters

      Returns token is TypedToken<T>