@talves/itui-core
v0.3.0-alpha.0
Published
Core Emotion and JSX implementation for Theme UI uses an isolated context to return
Downloads
1
Readme
@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)