create typography stories
This commit is contained in:
parent
cf722489c4
commit
3de3b363ba
5 changed files with 51 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ export const parameters = {
|
|||
['Intro', '*'],
|
||||
'SCSS',
|
||||
['Intro', '*'],
|
||||
'Typography',
|
||||
['Intro', '*'],
|
||||
'Actions',
|
||||
['Intro', '*'],
|
||||
'Contributing',
|
||||
|
|
|
|||
35
src/docs/typography/intro.stories.mdx
Normal file
35
src/docs/typography/intro.stories.mdx
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import { Meta } from '@storybook/addon-docs';
|
||||
import { parameters } from '$docs/utils/docsPage.js';
|
||||
|
||||
import Typeset from './typeset.png';
|
||||
import TypeGuides from './type-guides.png'
|
||||
|
||||
<Meta title="Typography/Intro" parameters={{ ...parameters }} />
|
||||
|
||||

|
||||
|
||||
# Typography
|
||||
|
||||
Our design system includes a typographic scale based on the scale of fifths to create six harmonic levels of font sizes. These will guide the basic sizing of headlines, body text and spacing in a graphics page.
|
||||
|
||||
The typographic scale is set using the CSS variable in the theme component. You can customise them if you need a bespoke typesetting for your project.
|
||||
|
||||
## The type system
|
||||
|
||||
<img
|
||||
className="feature"
|
||||
src={Typeset}
|
||||
width="100%"
|
||||
style={{ margin: '3rem 0' }}
|
||||
/>
|
||||
|
||||
<img
|
||||
className="feature"
|
||||
src={TypeGuides}
|
||||
width="100%"
|
||||
style={{ margin: '3rem 0' }}
|
||||
/>
|
||||
|
||||
## How it works
|
||||
|
||||
Somthing about the base sizes and derived scale coupled with other styles
|
||||
BIN
src/docs/typography/type-guides.png
Normal file
BIN
src/docs/typography/type-guides.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 171 KiB |
BIN
src/docs/typography/typeset.png
Normal file
BIN
src/docs/typography/typeset.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
14
src/docs/typography/using-styles.stories.mdx
Normal file
14
src/docs/typography/using-styles.stories.mdx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { Meta } from '@storybook/addon-docs';
|
||||
import { parameters } from '$docs/utils/docsPage.js';
|
||||
|
||||
|
||||
<Meta title="Typography/Using text styles" parameters={{ ...parameters }} />
|
||||
|
||||

|
||||
|
||||
# Applying typographic styles
|
||||
|
||||
In your projects, you will use the typographic as per the function –
|
||||
- Page title, subheads and section titles
|
||||
- Body copy
|
||||
- Graphic descriptions, captions and other notes
|
||||
Loading…
Reference in a new issue