Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

jxnblk/typography-mdx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED See https://theme-ui.com

typography-mdx

Create MDX components from Typography.js themes

npm i typography-mdx
import React from 'react'
import typographyMDX from 'typography-mdx'
import { MDXProvider } from '@mdx-js/tag'
import { GoogleFont } from 'react-typography'
import wordpress2016 from 'typography-theme-wordpress-2016'
import Doc from './doc.mdx'

export default props => {
  const { Root, typography, ...components } = typographyMDX(wordpress2016)

  return (
    <MDXProvider components={components}>
      <GoogleFont typography={typography} />
      <Root>
        <Doc />
      </Root>
    </MDXProvider>
  )
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published