theme-ui-typography

0.1.7 • Public • Published

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>
)

Readme

Keywords

none

Package Sidebar

Install

npm i theme-ui-typography

Weekly Downloads

12

Version

0.1.7

License

MIT

Unpacked Size

77.6 kB

Total Files

13

Last publish

Collaborators

  • jxnblk