welcome-ui
Version:
Customizable design system with react, typescript, tailwindcss and ariakit.
16 lines (15 loc) • 400 B
TypeScript
export type FlatTokens = Record<string, string>;
export interface TokensStructure {
[key: string]: TokenNode;
}
type TokenNode = string | TokenValue | TokenWithType | {
[key: string]: TokenNode;
};
interface TokenValue {
$value: string;
}
type TokenWithType = TokensStructure & {
$type: string;
};
export declare const parseTokens: (tokens: TokensStructure) => FlatTokens;
export {};