UNPKG

@premieroctet/next-admin

Version:

Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje

17 lines (16 loc) 519 B
import plugin_default from "tailwindcss/plugin"; const nextAdminPlugin = plugin_default.withOptions((options = { rootDark: "bg-slate-900", rootLight: "bg-slate-50/50" })=>({ addBase })=>{ addBase({ ".light .next-admin__root": { [`@apply ${options.rootLight}`]: "" }, ".dark .next-admin__root": { [`@apply ${options.rootDark}`]: "" } }); }); const src_plugin = nextAdminPlugin; export { src_plugin as default };