UNPKG

@primer/primitives

Version:

Typography, spacing, and color primitives for Primer design system

12 lines (11 loc) 423 B
import type { TransformedToken } from 'style-dictionary/types'; /** * jsonToFlat * @description creates a one dimensional json structure with either a single value or an token object as the value * @param token StyleDictionary.DesignToken * @param returnObject - boolean * @returns flat json three */ export declare const jsonToFlat: (tokens: TransformedToken[], returnObject?: boolean) => { [k: string]: any; };