css-variables.d.ts 808 B

1234567891011121314
  1. export declare const token2CSSVar: (token: string, prefix?: string) => string;
  2. export declare const serializeCSSVar: <T extends Record<string, any>>(cssVars: T, hashId: string, options?: {
  3. scope?: string;
  4. }) => string;
  5. export type TokenWithCSSVar<V, T extends Record<string, V> = Record<string, V>> = {
  6. [key in keyof T]?: string | V;
  7. };
  8. export declare const transformToken: <V, T extends Record<string, V> = Record<string, V>>(token: T, themeKey: string, config?: {
  9. prefix?: string | undefined;
  10. ignore?: { [key in keyof T]?: boolean | undefined; } | undefined;
  11. unitless?: { [key_1 in keyof T]?: boolean | undefined; } | undefined;
  12. preserve?: { [key_2 in keyof T]?: boolean | undefined; } | undefined;
  13. scope?: string | undefined;
  14. } | undefined) => [TokenWithCSSVar<V, T>, string];