@theme-ui/color-modes
Adds support for user-controlled color modes
Last updated 3 years 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 (a year ago)
  • 0.16.2-develop.5                                ...           develop (9 months ago)
  • 0.4.0-highlight.0                                ...           highlight (5 years ago)
  • 0.16.2                                ...           latest (9 months ago)
  • 0.6.0-alpha.8                                ...           next (4 years ago)

423 Versions

Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)

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