@opensea/next-themes
provides a seamless integration of @opensea/ui-kit
into a NextJS based project.
pnpm add @opensea/next-themes
import { ThemeProvider, ThemeVariant } from "@opensea/next-themes"
type Props = {
theme?: ThemeVariant // you might need this if you want to override theme in tests/storybook
children: React.ReactNode
}
const AppProviders = ({ theme }: Props) => {
return <ThemeProvider theme={theme}>{children}</ThemeProvider>
}