UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

1 lines 810 B
{"version":3,"file":"create-theme.cjs","sources":["../../src/helpers/create-theme.ts"],"sourcesContent":["import type { CustomFlowbiteTheme } from \"../types\";\n\n/**\n * Used to apply `tailwindcss` intellisense.\n * Creates a custom theme by accepting a theme object and returning it as is\n *\n * @template T - The type of the theme object, defaults to `CustomFlowbiteTheme`\n * @param {T} input - The theme object to be used\n * @returns {T} The provided theme object without modifications\n *\n * @example\n * ```ts\n * const myTheme = createTheme({\n * button: {\n * primary: 'bg-blue-500'\n * }\n * });\n * ```\n */\nexport function createTheme<T = CustomFlowbiteTheme>(input: T): T {\n return input;\n}\n"],"names":[],"mappings":";;AACO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,EAAE,OAAO,KAAK;AACd;;;;"}