fix(storybook): fix typography page from not rendering

This commit is contained in:
Gabe Kangas 2024-10-19 17:12:08 -07:00
parent a747aea71c
commit 78146f1ee3

View file

@ -14,7 +14,7 @@ export const SampleText = 'Lorem ipsum dolor sit amet, consectetur adipiscing el
These are the font families in use by Owncast.
***
---
export const bodyFont = {
type: {
@ -63,9 +63,16 @@ export const bodyFont = {
## Usage
<Canvas columns={2} withSource="open" withToolbar style={{ fontFamily: 'var(--theme-text-body-font-family)' }}>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-body-font-family')}
</Canvas>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-body-font-family')}
<Source
language="javascript"
dark
format={true}
code={`
getComputedStyle(document.documentElement).getPropertyValue('--theme-text-body-font-family')
`}
/>
<Source
language="css"
@ -123,9 +130,16 @@ export const displayFont = {
## Usage
<Canvas columns={2} withSource="open" withToolbarstyle={{ fontFamily: 'var(--theme-text-display-font-family)' }}>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-display-font-family')}
</Canvas>
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-display-font-family')}
<Source
language="javascript"
dark
format={true}
code={`
getComputedStyle(document.documentElement).getPropertyValue('--theme-text-display-font-family')
`}
/>
<Source
language="css"