import { useEffect } from 'react' import Page from 'shared/components/wrappers/page.js' import useApp from 'site/hooks/useApp.js' import Popout from 'shared/components/popout.js' const TypographyPage = (props) => { const app = useApp() const { updateNavigation } = app useEffect(() => { updateNavigation( ['typography'], { __title: 'Typography', __linktitle: 'Typography', __slug: 'typography', __order: 'typography' }) }, [updateNavigation]) const p = (

This paragraph is here to show the vertical spacing between headings and paragraphs. In addition, let's make it a bit longer so we can see the line height as the text wraps.

) return (

This typography page shows an overview of different elements and how they are styled.

It's a good starting point for theme development.

Headings (this is h2)

{p}

This is h3

{p}

This is h4

{p}
This is h5
{p}
This is h6
{p}

Links and buttons

A regular link looks like this, whereas buttons look like this:

Main button styles

State button styles

Other button styles

Outlined button styles

Button sizes

Popouts

The Popout component is what powers various custom MDX components under the hood:

{['note', 'tip', 'warning', 'fixme', 'link', 'related', 'none'].map(type => { const props = {} props[type] = true return (

{type}

I am the {type} title
{p}
) })}
) } export default TypographyPage