-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add typography variants (#786)
* feat: add font variants * feat: for temp use only * feat: adjust base fontSize * feat: adjust variants based on 16px * feat: add stories to check variants * fix: code styles, rename stories
- Loading branch information
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// ThemeTypography.stories.tsx | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import { Typography } from '@mui/material'; | ||
|
||
const meta: Meta<typeof Typography> = { | ||
title: 'Common/TypographyVariants', | ||
component: Typography, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof Typography>; | ||
|
||
export const Variants: Story = { | ||
render: () => ( | ||
<> | ||
<Typography variant='display'>Display</Typography> | ||
<Typography variant='h1'>H1</Typography> | ||
<Typography variant='h2'>H2</Typography> | ||
<Typography variant='h3'>H3</Typography> | ||
<Typography variant='h4'>H4</Typography> | ||
<Typography variant='h5'>H5</Typography> | ||
<Typography variant='h6'>H6</Typography> | ||
<Typography variant='body1'>body</Typography> | ||
<Typography variant='label'>label</Typography> | ||
<Typography variant='note'>note</Typography> | ||
</> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters