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

0.17.1 • 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,024

Version

0.17.1

License

MIT

Unpacked Size

38.9 kB

Total Files

16

Last publish

Collaborators

  • jxnblk
  • johno
  • hasparus
  • lachlanjc