@opensea/next-themes
TypeScript icon, indicating that this package has built-in type declarations

1.0.18 • Public • Published

@opensea/next-themes

npm version

@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>
}

Readme

Keywords

none

Package Sidebar

Install

npm i @opensea/next-themes

Weekly Downloads

43

Version

1.0.18

License

MIT

Unpacked Size

11.6 kB

Total Files

11

Last publish

Collaborators

  • meemaw
  • sunwrobert
  • ralxz
  • darnfish
  • royliu2
  • jallum
  • j-dubz
  • jakubkrehel
  • imfromthebay
  • agansley