Neolithic Programming Machine

    @theme-ui/color-modes
    TypeScript icon, indicating that this package has built-in type declarations

    0.14.7 • Public • Published

    @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

    Keywords

    none

    Install

    npm i @theme-ui/color-modes

    DownloadsWeekly Downloads

    83,371

    Version

    0.14.7

    License

    MIT

    Unpacked Size

    102 kB

    Total Files

    16

    Last publish

    Collaborators

    • jxnblk
    • johno
    • hasparus
    • lachlanjc