2022-05-13 00:45:56 +03:00
|
|
|
import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
|
|
|
|
|
|
|
<Meta title="owncast/Style Guide/Typography" />
|
|
|
|
|
2022-07-11 03:28:03 +03:00
|
|
|
## Body
|
2022-05-13 00:45:56 +03:00
|
|
|
|
2022-07-11 03:28:03 +03:00
|
|
|
<div style={{ fontSize: '1.2rem', fontFamily: 'var(--theme-text-body-font-family)' }}>
|
|
|
|
The quick brown fox jumps over the lazy dog.
|
|
|
|
</div>
|
2022-05-13 00:45:56 +03:00
|
|
|
|
2022-07-11 03:28:03 +03:00
|
|
|
<Canvas
|
|
|
|
style={{ color: 'var(--theme-text-secondary)', fontFamily: 'var(--theme-text-body-font-family)' }}
|
|
|
|
>
|
|
|
|
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-body-font-family')}
|
|
|
|
</Canvas>
|
|
|
|
|
|
|
|
## Display
|
2022-05-13 07:27:21 +03:00
|
|
|
|
2022-07-11 03:28:03 +03:00
|
|
|
<div style={{ fontSize: '1.2rem', fontFamily: 'var(--theme-text-display-font-family)' }}>
|
|
|
|
The quick brown fox jumps over the lazy dog.
|
|
|
|
</div>
|
|
|
|
<Canvas
|
|
|
|
style={{
|
|
|
|
color: 'var(--theme-text-secondary)',
|
|
|
|
fontFamily: 'var(--theme-text-display-font-family)',
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{getComputedStyle(document.documentElement).getPropertyValue('--theme-text-display-font-family')}
|
2022-05-13 07:27:21 +03:00
|
|
|
</Canvas>
|