@theme-ui/color-modes
Adds support for user-controlled color modes
Last updated a year ago by hasparus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @theme-ui/color-modes 
SYNC missed versions from official npm registry.

@theme-ui/color-modes

Adds support for user-controlled color modes

https://theme-ui.com

Note: This package is included in the main theme-ui package, and generally should not be used on its own.

npm i @theme-ui/color-modes
import { ThemeProvider } from '@theme-ui/core'
import { ColorModeProvider } from '@theme-ui/color-modes'
import theme from './theme'

export default (props) => (
  <ThemeProvider theme={theme}>
    <ColorModeProvider>{props.children}</ColorModeProvider>
  </ThemeProvider>
)

API

  • useColorMode
  • ColorModeProvider

Current Tags

  • 0.16.2-scale-tuples.0                                ...           canary (3 years ago)
  • 0.17.2-develop.1                                ...           develop (2 years ago)
  • 0.4.0-highlight.0                                ...           highlight (7 years ago)
  • 0.17.4                                ...           latest (a year ago)
  • 0.6.0-alpha.8                                ...           next (6 years ago)

432 Versions

Downloads
Total 448
Today 0
This Week 2
This Month 12
Last Day 0
Last Week 1
Last Month 406
Dependencies (3)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE