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