import { Title, Meta, Typeset } from "@storybook/blocks"; Typography export const typography = { type: { heading: "Overpass, sans-serif", body: "Inter, sans", }, weight: { regular: "400", medium: "500", bold: "700", }, size: { heading: { lg: { SP: 72, H1: 48, H2: 40, H3: 36, H4: 24, H5: 20, }, md: { SP: 48, H1: 40, H2: 36, H3: 28, H4: 20, H5: 20, }, sm: { SP: 40, H1: 40, H2: 32, H3: 24, H4: 20, H5: 18, }, }, body: { T1: 24, T2: 20, T3: 18, T4: 16, T5: 14, caotion: 12, }, }, }; export const SampleText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; ## Heading **fontFamily:** Inter、Overpass \ **breakpoint:** sm、md、lg ### SP **fontWeight:** bold ```html

SP

``` `${typography.size.heading[key].SP}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ### H1 **fontWeight:** medium、bold ```html

h1

h1

``` `${typography.size.heading[key].H1}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ### H2 **fontWeight:** medium、bold ```html

h2

h2

``` `${typography.size.heading[key].H2}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ### H3 **fontWeight:** medium、bold ```html

h3

h3

h3

``` `${typography.size.heading[key].H3}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ### H4 **fontWeight:** medium、bold ```html

h4

h4

h4

``` `${typography.size.heading[key].H4}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ### H5 **fontWeight:** medium、bold ```html
h5
h5
``` `${typography.size.heading[key].H5}px`) .reverse()} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.heading} /> ## Body **fontFamily:** Inter \ **fontWeight:** medium、bold(t3、t4、t5) 名稱排列對應文字範例排序 ```html

T1

T2

T3

T4

T5

Caotion

``` `${typography.size.body[key]}px`, )} fontWeight={typography.weight.medium} sampleText={SampleText} fontFamily={typography.type.body} />