fix(storybook): fix typography page from not rendering
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user