Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix(storybook): fix typography page from not rendering

Gabe Kangas49ca9d03153a
diff --git a/web/.storybook/stories-category-doc-pages/Typography.mdx b/web/.storybook/stories-category-doc-pages/Typography.mdx
index 1e8ed1216a..a2b7f74504 100644
--- a/web/.storybook/stories-category-doc-pages/Typography.mdx
+++ b/web/.storybook/stories-category-doc-pages/Typography.mdx
@@ -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"