Skip to content

Commit

Permalink
feat : 추가 스타일 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
ujinsim committed Jan 19, 2025
1 parent b7be37f commit 3ba6dd5
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions src/shared/Typography/TypographyStyles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import { css } from '@emotion/react';
import styled from '@emotion/styled';

export const typographyStyles = {
Title1: css`
font-size: 32px;
font-weight: bold;
`,
Title2: css`
font-size: 28px;
font-weight: bold;
`,
Title3: css`
font-size: 24px;
font-weight: bold;
`,
Subtitle1: css`
font-size: 22px;
font-weight: bold;
`,
Subtitle2: css`
font-size: 20px;
font-weight: semi-bold;
`,
Subtitle3: css`
font-size: 18px;
font-weight: semi-bold;
`,
Body1: css`
font-size: 16px;
font-weight: medium;
`,
Body2: css`
font-size: 14px;
font-weight: medium;
`,
Body3: css`
font-size: 12px;
font-weight: medium;
`,
Caption1: css`
font-size: 10px;
font-weight: regular;
`,
Caption2: css`
font-size: 8px;
font-weight: regular;
`,
ButtonTitle1: css`
font-size: 18px;
font-weight: bold;
`,
ButtonTitle2: css`
font-size: 14px;
font-weight: bold;
`,
};

export type TypographyVariant = keyof typeof typographyStyles;

export const StyledTypography = styled.p<{ variant: TypographyVariant }>`
${({ variant }) => typographyStyles[variant]}
`;

0 comments on commit 3ba6dd5

Please sign in to comment.