theme-ui-typography
v0.1.7
Published
Utilities for integrating Typography.js themes with Theme UI
Downloads
79
Readme
theme-ui-typography
Utilities for integrating Typography.js themes with Theme UI
import React from 'react'
import { ThemeProvider } from 'theme-ui'
import { toTheme } from 'theme-ui-typography'
import wordpress2016 from 'typography-theme-wordpress-2016'
const theme = toTheme(wordpress2016)
export default props => (
<ThemeProvider theme={theme}>{props.children}</ThemeProvider>
)