Skip to content

Commit 9d8152d

Browse files
authored
Merge pull request #66 from oasisprotocol/kaja/text-xs-variant
add xsmall typography variant
2 parents c67396b + 361c8a0 commit 9d8152d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/typography/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export const typographyVariants = cva('', {
1313
p: 'text-sm leading-5 text-foreground',
1414
blockquote: 'mt-6 border-l-2 pl-6 italic',
1515
lead: 'text-xl text-muted-foreground',
16-
large: 'text-lg font-semibold',
17-
small: 'text-sm font-medium leading-none',
16+
large: 'text-lg leading-none',
17+
small: 'text-sm leading-none',
18+
xsmall: 'text-xs leading-none',
1819
},
1920
textColor: {
2021
muted: 'text-muted-foreground',

src/stories/Typography/Typography.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const meta: Meta<typeof Typography> = {
2121
argTypes: {
2222
variant: {
2323
control: 'select',
24-
options: ['h1', 'h2', 'h3', 'h4', 'p', 'blockquote', 'lead', 'large', 'small'],
24+
options: ['h1', 'h2', 'h3', 'h4', 'p', 'blockquote', 'lead', 'large', 'small', 'xsmall'],
2525
},
2626
textColor: {
2727
control: 'select',

0 commit comments

Comments
 (0)