()
| 6 | ); |
| 7 | |
| 8 | export function S2Typography() { |
| 9 | return ( |
| 10 | <> |
| 11 | <p className={style({font: 'body'})}>There are several different type scales.</p> |
| 12 | <ul> |
| 13 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 14 | <Strong>UI</Strong> – use within interactive UI components. |
| 15 | </li> |
| 16 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 17 | <Strong>Body</Strong> – use for the content of pages that are primarily text. |
| 18 | </li> |
| 19 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 20 | <Strong>Heading</Strong> – use for headings in content pages. |
| 21 | </li> |
| 22 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 23 | <Strong>Title</Strong> – use for titles within UI components such as cards or panels. |
| 24 | </li> |
| 25 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 26 | <Strong>Detail</Strong> – use for less important metadata. |
| 27 | </li> |
| 28 | <li className={style({font: 'body-lg', marginTop: 0, marginBottom: 8})}> |
| 29 | <Strong>Code</Strong> – use for source code. |
| 30 | </li> |
| 31 | </ul> |
| 32 | <p className={style({font: 'body'})}> |
| 33 | Each type scale has a default size, and several t-shirt size modifiers for additional sizes. |
| 34 | </p> |
| 35 | <div |
| 36 | className={style({ |
| 37 | display: 'grid', |
| 38 | gridTemplateColumns: { |
| 39 | default: '1fr', |
| 40 | sm: 'repeat(3, auto)', |
| 41 | md: 'repeat(6, auto)' |
| 42 | }, |
| 43 | justifyContent: 'space-between' |
| 44 | })}> |
| 45 | <ul className={style({padding: 0, listStyleType: 'none'})}> |
| 46 | <li className={style({font: 'ui-xs'})}>ui-xs</li> |
| 47 | <li className={style({font: 'ui-sm'})}>ui-sm</li> |
| 48 | <li className={style({font: 'ui'})}>ui</li> |
| 49 | <li className={style({font: 'ui-lg'})}>ui-lg</li> |
| 50 | <li className={style({font: 'ui-xl'})}>ui-xl</li> |
| 51 | <li className={style({font: 'ui-2xl'})}>ui-2xl</li> |
| 52 | <li className={style({font: 'ui-3xl'})}>ui-3xl</li> |
| 53 | </ul> |
| 54 | <ul className={style({padding: 0, listStyleType: 'none'})}> |
| 55 | <li className={style({font: 'body-2xs'})}>body-2xs</li> |
| 56 | <li className={style({font: 'body-xs'})}>body-xs</li> |
| 57 | <li className={style({font: 'body-sm'})}>body-sm</li> |
| 58 | <li className={style({font: 'body'})}>body</li> |
| 59 | <li className={style({font: 'body-lg'})}>body-lg</li> |
| 60 | <li className={style({font: 'body-xl'})}>body-xl</li> |
| 61 | <li className={style({font: 'body-2xl'})}>body-2xl</li> |
| 62 | <li className={style({font: 'body-3xl'})}>body-3xl</li> |
| 63 | </ul> |
| 64 | <ul className={style({padding: 0, listStyleType: 'none'})}> |
| 65 | <li className={style({font: 'heading-2xs'})}>heading-2xs</li> |
nothing calls this directly
no outgoing calls
no test coverage detected