Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 51f34ca

Browse files
committed
add storybook items
1 parent c9767ec commit 51f34ca

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

docs/Typography.stories.tsx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@ export const SmallScreenCSS: ComponentStory<typeof Text> = (...args) => {
458458
lineHeight: 'var(--typography-s-body-md-line-height)',
459459
fontWeight: 'var(--typography-s-body-md-font-weight)',
460460
},
461+
'BodyMD Medium': {
462+
fontFamily: 'var(--typography-s-body-md-medium-font-family)',
463+
fontSize: 'var(--typography-s-body-md-medium-font-size)',
464+
lineHeight: 'var(--typography-s-body-md-medium-line-height)',
465+
fontWeight: 'var(--typography-s-body-md-medium-font-weight)',
466+
},
461467
'BodyMD Bold': {
462468
fontFamily: 'var(--typography-s-body-md-bold-font-family)',
463469
fontSize: 'var(--typography-s-body-md-bold-font-size)',
@@ -470,6 +476,12 @@ export const SmallScreenCSS: ComponentStory<typeof Text> = (...args) => {
470476
lineHeight: 'var(--typography-s-body-sm-line-height)',
471477
fontWeight: 'var(--typography-s-body-sm-font-weight)',
472478
},
479+
'BodySM Medium': {
480+
fontFamily: 'var(--typography-s-body-sm-medium-font-family)',
481+
fontSize: 'var(--typography-s-body-sm-medium-font-size)',
482+
lineHeight: 'var(--typography-s-body-sm-medium-line-height)',
483+
fontWeight: 'var(--typography-s-body-sm-medium-font-weight)',
484+
},
473485
'BodySM Bold': {
474486
fontFamily: 'var(--typography-s-body-sm-bold-font-family)',
475487
fontSize: 'var(--typography-s-body-sm-bold-font-size)',
@@ -483,6 +495,13 @@ export const SmallScreenCSS: ComponentStory<typeof Text> = (...args) => {
483495
fontWeight: 'var(--typography-s-body-xs-font-weight)',
484496
letterSpacing: 'var(--typography-s-body-xs-letter-spacing)',
485497
},
498+
'BodyXS Medium': {
499+
fontFamily: 'var(--typography-s-body-xs-medium-font-family)',
500+
fontSize: 'var(--typography-s-body-xs-medium-font-size)',
501+
lineHeight: 'var(--typography-s-body-xs-medium-line-height)',
502+
fontWeight: 'var(--typography-s-body-xs-medium-font-weight)',
503+
letterSpacing: 'var(--typography-s-body-xs-medium-letter-spacing)',
504+
},
486505
};
487506

488507
const getCssVar = (variable) => {
@@ -568,6 +587,12 @@ export const LargeScreenCSS: ComponentStory<typeof Text> = (...args) => {
568587
lineHeight: 'var(--typography-l-body-md-line-height)',
569588
fontWeight: 'var(--typography-l-body-md-font-weight)',
570589
},
590+
'BodyMD Medium': {
591+
fontFamily: 'var(--typography-l-body-md-medium-font-family)',
592+
fontSize: 'var(--typography-l-body-md-medium-font-size)',
593+
lineHeight: 'var(--typography-l-body-md-medium-line-height)',
594+
fontWeight: 'var(--typography-l-body-md-medium-font-weight)',
595+
},
571596
'BodyMD Bold': {
572597
fontFamily: 'var(--typography-l-body-md-bold-font-family)',
573598
fontSize: 'var(--typography-l-body-md-bold-font-size)',
@@ -580,6 +605,12 @@ export const LargeScreenCSS: ComponentStory<typeof Text> = (...args) => {
580605
lineHeight: 'var(--typography-l-body-sm-line-height)',
581606
fontWeight: 'var(--typography-l-body-sm-font-weight)',
582607
},
608+
'BodySM Medium': {
609+
fontFamily: 'var(--typography-l-body-sm-medium-font-family)',
610+
fontSize: 'var(--typography-l-body-sm-medium-font-size)',
611+
lineHeight: 'var(--typography-l-body-sm-medium-line-height)',
612+
fontWeight: 'var(--typography-l-body-sm-medium-font-weight)',
613+
},
583614
'BodySM Bold': {
584615
fontFamily: 'var(--typography-l-body-sm-bold-font-family)',
585616
fontSize: 'var(--typography-l-body-sm-bold-font-size)',
@@ -593,6 +624,13 @@ export const LargeScreenCSS: ComponentStory<typeof Text> = (...args) => {
593624
fontWeight: 'var(--typography-l-body-xs-font-weight)',
594625
letterSpacing: 'var(--typography-l-body-xs-letter-spacing)',
595626
},
627+
'BodyXS Medium': {
628+
fontFamily: 'var(--typography-l-body-xs-medium-font-family)',
629+
fontSize: 'var(--typography-l-body-xs-medium-font-size)',
630+
lineHeight: 'var(--typography-l-body-xs-medium-line-height)',
631+
fontWeight: 'var(--typography-l-body-xs-medium-font-weight)',
632+
letterSpacing: 'var(--typography-l-body-xs-medium-letter-spacing)',
633+
},
596634
};
597635

598636
const getCssVar = (variable) => {

0 commit comments

Comments
 (0)