UNPKG

tonami

Version:

Minimal CSS-in-JS library that promotes CSS best-practices and strongly-typed design systems.

8 lines (7 loc) 274 B
declare type Tokens<T> = T & { toStyleObject: () => Record<string, string>; Tokens: () => null; createDynamicTokens: <X>(fn: (props: X) => T) => (props: X) => null; }; export declare function createTokens<V extends object>(vars: V): Tokens<V>; export {};