@opensea/next-themes
v1.0.16
Published
ui-kit + next-themes integration
Downloads
8,402
Keywords
Readme
@opensea/next-themes
@opensea/next-themes
provides a seamless integration of @opensea/ui-kit
into a NextJS based project.
Getting started
Install
pnpm add @opensea/next-themes
Usage
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>
}