create typography stories

This commit is contained in:
Prasanta Kumar Dutta 2023-03-06 17:23:58 +05:30
parent cf722489c4
commit 3de3b363ba
5 changed files with 51 additions and 0 deletions

View file

@ -50,6 +50,8 @@ export const parameters = {
['Intro', '*'],
'SCSS',
['Intro', '*'],
'Typography',
['Intro', '*'],
'Actions',
['Intro', '*'],
'Contributing',

View 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 }} />
![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
# 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

View 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 }} />
![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
# 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