UNPKG

@awal-solution/tailwind-theming

Version:

<div align="left"> <h1>Tailwind theming</h1> <p>The <b>TailwindCSS Multi-Theming Plugin</b> is a utility for creating and managing multiple themes in your TailwindCSS-based projects. With this library, you can define, add, update, and remove themes dyn

18 lines (17 loc) 811 B
import { PluginAPI } from 'tailwindcss/types/config'; import { TailwindExtension } from '../../config'; import { ThemeConfig } from '../../types'; /** * @param themeExtension - the theme extension to convert to custom props * @param api - the tailwind plugin helpers * @return the theme extension resolved as custom props */ export declare const resolveThemeExtensionAsCustomProps: (themeExtension: TailwindExtension, api: PluginAPI) => { [key: string]: string; }; /** * @param themes - the themes to convert to a tailwind extension * @return the resolved tailwind extension from the given theme * @throws an {@link Error} if any callbacks are found in places not supported by tailwind */ export declare const resolveThemeExtensionsAsTailwindExtension: (themes: ThemeConfig[]) => TailwindExtension;