flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
31 lines (28 loc) • 1.05 kB
JavaScript
import { createTheme } from '../../helpers/create-theme.js';
import { twMerge } from '../../helpers/tailwind-merge.js';
import { dropdownTheme } from '../Dropdown/theme.js';
import { navbarTheme } from '../Navbar/theme.js';
const megaMenuTheme = createTheme({
...navbarTheme,
dropdown: {
base: "",
toggle: {
...dropdownTheme,
floating: {
...dropdownTheme.floating,
base: twMerge(dropdownTheme.floating.base, "mt-2 block"),
content: twMerge(dropdownTheme.floating.content, "text-gray-500 dark:text-gray-400"),
style: {
...dropdownTheme.floating.style,
auto: twMerge(dropdownTheme.floating.style.auto, "text-gray-500 dark:text-gray-400")
}
},
inlineWrapper: twMerge(dropdownTheme.inlineWrapper, "flex w-full items-center justify-between")
}
},
dropdownToggle: {
base: twMerge(navbarTheme.link.base, navbarTheme.link.active.off, "flex w-full items-center justify-between")
}
});
export { megaMenuTheme };
//# sourceMappingURL=theme.js.map