@theme-ui/color-modes
Adds support for user-controlled color modes
Last updated 6 years ago by jxnblk .
MIT · Repository · Bugs · Original npm
$ cnpm 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
  • InitializeColorMode

Current Tags

  • 0.4.0-highlight.0                                ...           highlight (5 years ago)
  • 0.3.1                                ...           latest (6 years ago)
  • 0.4.0-alpha.3                                ...           next (5 years ago)

6 Versions

  • 0.6.0-alpha.8                                ...           4 years ago
  • 0.14.5                                ...           3 years ago
  • 0.15.0-develop.5                                ...           3 years ago
  • 0.4.0-alpha.3                                ...           5 years ago
  • 0.3.1                                ...           6 years ago
  • 0.4.0-highlight.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org