UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

20 lines (19 loc) 579 B
import type { CustomFlowbiteTheme } from "../types"; /** * Used to apply `tailwindcss` intellisense. * Creates a custom theme by accepting a theme object and returning it as is * * @template T - The type of the theme object, defaults to `CustomFlowbiteTheme` * @param {T} input - The theme object to be used * @returns {T} The provided theme object without modifications * * @example * ```ts * const myTheme = createTheme({ * button: { * primary: 'bg-blue-500' * } * }); * ``` */ export declare function createTheme<T = CustomFlowbiteTheme>(input: T): T;