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

0.16.2 • Public • Published

@theme-ui/typography

Utilities for integrating Typography.js themes with Theme UI

import { ThemeUIProvider } from 'theme-ui'
import { toTheme } from '@theme-ui/typography'
import wordpress2016 from 'typography-theme-wordpress-2016'

const theme = toTheme(wordpress2016)

export default (props) => (
  <ThemeUIProvider theme={theme}>{props.children}</ThemeUIProvider>
)

Readme

Keywords

Package Sidebar

Install

npm i @theme-ui/typography

Weekly Downloads

1,940

Version

0.16.2

License

MIT

Unpacked Size

38.8 kB

Total Files

17

Last publish

Collaborators

  • jxnblk
  • johno
  • hasparus
  • lachlanjc