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

1.0.16 • 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

1,556

Version

1.0.16

License

MIT

Unpacked Size

10.5 kB

Total Files

11

Last publish

Collaborators

  • royliu2
  • janclarin
  • jallum
  • coryhardman-opensea
  • ralxz
  • sunwrobert
  • meemaw