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

0.17.1 • Public • Published

@theme-ui/global

Wrapper around the Emotion Global component, made Theme UI theme-aware.

Note: This package is included in the main theme-ui package and a separate installation is not required unless you’re using @theme-ui/core.

npm i @theme-ui/global @theme-ui/core @emotion/react
import Global from '@theme-ui/global'

export default (props) => (
  <Global
    styles={{
      button: {
        m: 0,
        bg: 'primary',
        color: 'background',
        border: 0,
      },
    }}
  />
)

Dependencies (2)

Dev Dependencies (4)

Package Sidebar

Install

npm i @theme-ui/global

Weekly Downloads

22,136

Version

0.17.1

License

MIT

Unpacked Size

7.24 kB

Total Files

12

Last publish

Collaborators

  • jxnblk
  • johno
  • hasparus
  • lachlanjc