diff --git a/src/docs/docStyles.scss b/src/docs/docStyles.scss index 2e777cd9..ce351132 100644 --- a/src/docs/docStyles.scss +++ b/src/docs/docStyles.scss @@ -1,6 +1,22 @@ - img.feature { max-width: 100%; margin: 0 auto; display: block; -} \ No newline at end of file +} + +div.type-system-demo { + // @TODO import type mixins here to apply styles to demos... + margin: 2rem auto; + background-color: #ededed; + padding: 15px 20px; + border: 1px solid #ccc; + border-radius: 4px; + + *:first-child { + margin-top: 0; + } + + *:last-child { + margin-bottom: 0; + } +} diff --git a/src/docs/typography/using-the-system.stories.mdx b/src/docs/typography/using-the-system.stories.mdx index 155f107b..186e35ba 100644 --- a/src/docs/typography/using-the-system.stories.mdx +++ b/src/docs/typography/using-the-system.stories.mdx @@ -33,6 +33,11 @@ Apply text styles to any element using CSS classes that correspond to each text

Sans-serif text...

``` +
+
Subhed
+

Sans-serif text...

+
+ The following text style elements and corresponding classes are available: | Style | class | mixin | CSS vars used from Theme | @@ -46,7 +51,16 @@ The following text style elements and corresponding classes are available: | Endnotes | `.font-note-2` | `font-note-2` | `--theme-font-size-note-2`, `--theme-font-family-note` , `--theme-colour-text-secondary` | | Footnotes | `.font-note-3` | `font-note-3` | `--theme-font-size-note-3`, `--theme-font-family-note` , `--theme-colour-text-secondary` | -TK Demo... +
+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+
### Type sizes @@ -61,11 +75,18 @@ The following classes apply specific text sizes to any element: | 5 | `.font-size-5` | `font-size-5` | `--theme-scale-size-5` | | 6 | `.font-size-6` | `font-size-6` | `--theme-scale-size-6` | +
+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+
+ > The text sizes are always a multiple of `size-base = 1.375`. On mobile > {max-width:510px}, levels 1, 2, 3, 4 scale down to `size-base-mobile = 1.125` -TK Demo... - ### Typefaces The following classes apply typefaces to any element: @@ -77,4 +98,9 @@ The following classes apply typefaces to any element: | Sans-serif font | `.typeface-sans-serif` | `typeface-sans-serif` | `--theme-typeface-sans-serif` | | Monospace font | `.typeface-monospace` | `typeface-monospace` | `--theme-typeface-monospace` | -TK Demo... +
+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+

Lorem ipsum dolor sit amet...

+