npm.io
0.3.0-alpha.0 • Published 6 years ago

@talves/itui-core

Licence
MIT
Version
0.3.0-alpha.0
Deps
3
Size
40 kB
Vulns
0
Weekly
0

@talves/itui-core

Core Emotion and JSX implementation for Theme UI uses an isolated context to return

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

yarn add @talves/itui-core

API

  • ThemeProvider
  • createThemeProvider
const IsolatedContext = createContext() // 
const {
  Context,
  ThemeProvider,
  useIsolatedThemeUI,
  ColorModeProvider,
  useColorMode,
} = createThemeProvider(IsolatedContext)