tengo esta configuracion el mi tailwind.config:// tailwind.config.js:
const {nextui} = require("@nextui-org/react");
/** @type {import('tailwindcss').Config} /
module.exports = {
content: ["./node_modules/@nextui-org/theme/dist/**/.{js,ts,jsx,tsx}"],
theme: {
borderWidth: {
DEFAULT: '1px',
'0': '0',
'1': '0.5px',
'2': '2px',
'4': '4px',
'6': '6px',
'8': '8px',
},
screens: {
'sm':'640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl':'1536px'
},
colors: {
},
fontFamily: {
poppins:[ 'var(--font-poppins)']
},
extend: {}
},
darkMode: "class",
plugins: [nextui({
themes: {
light: {
colors:{
primary: "#151525",
accent: "#121a2d",
secondary: "#9747ff",
bgPaginator: "#ffffff",
default: "#1f1f36",
grayLight: "#A89C9C",
selectedItem: "#eeeeee",
warning: "#BA3838",
success: "#65FEA2",
white: "#FFFFFF" }},
dark: {
colors: {
primary: "#151525",
accent: "#121a2d",
secondary: "#9747ff",
bgPaginator: "#060d18",
default: "#1f1f36",
grayLight: "#A89C9C",
selectedItem: "#1e2b4f",
warning: "#BA3838",
success: "#65FEA2",
white: "#FFFFFF"} } } })],};
pero cuando aplico en mi provider:<NextUIProvider >
<NextThemesProviders
attribute={'class'}
defaultTheme={'dark'}
>
<main className="dark">
<ToastContainer
autoClose={3000}
transition={Bounce}
theme={'dark'}/>
{children}
</main>
</NextThemesProviders>
</NextUIProvider>
cuando cree mi componente con un swich para cambiar el theme, no pasa los algunos cambian de blanco a negro el resto no se modifica, que hago mal?