Skip to content

Commit

Permalink
feat(typography): add typography story
Browse files Browse the repository at this point in the history
  • Loading branch information
noahluftyang committed Nov 11, 2024
1 parent 1ac435a commit 2d1b9ae
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion packages/typography/src/Typography.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,48 @@ export default meta;

type Story = StoryObj<typeof meta>;

export const Basic: Story = {};
export const Basic: Story = {
render() {
return (
<section>
<Typography asChild={true} size={32} weight="bold">
<h1>Weight</h1>
</Typography>
<Typography weight="regular">
[기본 값] regular(400) - 사이프 디자인 시스템
</Typography>
<Typography weight="medium">
medium(500) - 사이프 디자인 시스템
</Typography>
<Typography weight="semiBold">
semiBold(600) - 사이프 디자인 시스템
</Typography>
<Typography weight="bold">bold(700) - 사이프 디자인 시스템</Typography>

<Typography asChild={true} size={32} weight="bold">
<h1>Size</h1>
</Typography>
<Typography size={12}>12 - 사이프 디자인 시스템</Typography>
<Typography size={14}>[기본 값] 14 - 사이프 디자인 시스템</Typography>
<Typography size={16}>16 - 사이프 디자인 시스템</Typography>
<Typography size={18}>18 - 사이프 디자인 시스템</Typography>
<Typography size={20}>20 - 사이프 디자인 시스템</Typography>
<Typography size={24}>24 - 사이프 디자인 시스템</Typography>
<Typography size={28}>28 - 사이프 디자인 시스템</Typography>
<Typography size={32}>32 - 사이프 디자인 시스템</Typography>
<Typography size={36}>36 - 사이프 디자인 시스템</Typography>
<Typography size={48}>48 - 사이프 디자인 시스템</Typography>

<Typography asChild={true} size={32} weight="bold">
<h1>Line Height</h1>
</Typography>
<Typography lineHeight="regular">
[기본 값] regular(1.5) - 사이프 디자인 시스템
</Typography>
<Typography lineHeight="compact">
compact(1.3) - 사이프 디자인 시스템
</Typography>
</section>
);
},
};

0 comments on commit 2d1b9ae

Please sign in to comment.