UNPKG

@baleada/tailwind-theme-utils

Version:

Utility functions for Tailwind config files.

19 lines (15 loc) 614 B
import { TailwindThemeColors } from 'tailwindcss/tailwind-config'; declare type Midfixable = { [suffix: string]: string; }; declare function rem(config: Midfixable): Midfixable; declare function em(config: Midfixable): Midfixable; declare function px(config: Midfixable): Midfixable; declare function screen(config: Midfixable): Midfixable; declare function withoutColorPalettes(colors: TailwindThemeColors): { [keyword: string]: string; }; declare function apply(classes: string): { [apply: `@apply ${string}`]: Record<never, never>; }; export { apply, em, px, rem, screen, withoutColorPalettes };