[](https://bundlephobia.com/package/@theme-ui/core)
npm install @theme-ui/core
@theme-ui/core provides minimal React support for lightweight usage.
``sh`
npm i @theme-ui/core @emotion/react
`js
/* @jsxImportSource @theme-ui/core /
import { ThemeProvider } from '@theme-ui/core'
export function App() {
return (
Hello
)
}
`
If you already use theme-ui package, the batteries-included version of Theme@theme-ui/core
UI, you don't need to install separately — it's already in yourtheme-ui
node_modules, and reexports everything from it.
- jsx — JSX function to create React elements supporting sx propThemeProvider
- — a context provideruseThemeUI
- — a hook to access your thememerge
- — an utility function to deeply merge themes together
Note that @theme-ui/core doesn’t add global or root styles to/
. Refer to the
Global Styles docs for how to add
global styles.JSX Runtime
As
@theme-ui/core defines jsx function and types for it, you can use it to
configure JSX runtime without installing theme-ui package.$3
-
jsx
- jsxs$3
-
jsxDEV`