import { Box, Card, CardContent, CardHeader, Stack, Typography, type TypographyVariant, useTheme } from '@mui/material'; import { toPairs } from 'ramda'; import { makeStyles } from 'tss-react/mui'; const useStyles = makeStyles()((theme) => ({ headerContainer: { alignItems: 'center', display: 'flex', justifyContent: 'space-between', margin: theme.spacing(3) }, itemContainer: { borderRadius: 1, margin: theme.spacing(3), textAlign: 'center' } })); const TypographyStory = (): JSX.Element => { const { classes } = useStyles(); const { typography } = useTheme(); const variants: Array = [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'button', 'caption', 'overline' ]; return ( {variants.map((typographyVariant) => ( {typographyVariant} {toPairs(typography[typographyVariant]).map(([key, value]) => ( {key} {value as string} ))} ))} ); }; export default TypographyStory;