-
-
+
+
+
Title / T1-24px(sb)
+ Title / T2-20px(sb)
+ Title / T3-16px(sb)
+ Title / T4-14px(sb)
+
+
+
body / b1-24px(m)
+
body / b2-20px(m)
+
body / b3-18px(m)
+
body / b4-14px(m)
+
+
+
body / b1-24px(R)
+
body / b2-20px(R)
+
body / b3-18px(R)
+
body / b4-14px(R)
+
+
+
caption / c1-12px(sb)
+
caption / c1-12px(m)
+
caption / c1-12px(r)
+
+
+
-
24년 01월 20일에 받은 편지
- >
+
),
};
diff --git a/src/styles/textStyles.ts b/src/styles/textStyles.ts
index 8c672a0a..1b11801c 100644
--- a/src/styles/textStyles.ts
+++ b/src/styles/textStyles.ts
@@ -1,51 +1,93 @@
import { css } from '@emotion/react';
import COLORS from '@/constants/colors';
-export type TextVariant =
- | 'heading'
- | 'thin'
- | 'button'
- | 'button-bold'
- | 'description';
-
-const textStyles = (variant: TextVariant) => {
- switch (variant) {
- case 'heading':
- return css`
- color: black;
- font-weight: 700;
- font-size: 1.25rem;
- line-height: 1.5rem;
- `;
- case 'thin':
- return css`
- color: black;
- font-weight: 400;
- font-size: 0.875rem;
- line-height: 1.25rem;
- `;
- case 'button':
- return css`
- color: black;
- font-weight: 500;
- font-size: 1rem;
- line-height: 1.5rem;
- `;
- case 'button-bold':
- return css`
- color: black;
- font-weight: 700;
- font-size: 0.875rem;
- line-height: 1.5rem;
- `;
- case 'description':
- return css`
- color: ${COLORS.gray4};
- font-weight: 400;
- font-size: 0.75rem;
- line-height: 1rem;
- `;
- }
+const textStyles = {
+ t1: css`
+ font-weight: 600;
+ font-size: 24px;
+ line-height: 32px;
+ `,
+ t2: css`
+ font-weight: 600;
+ font-size: 20px;
+ line-height: 28px;
+ `,
+ t3: css`
+ font-weight: 600;
+ font-size: 16px;
+ line-height: 24px;
+ `,
+ t4: css`
+ font-weight: 600;
+ font-size: 14px;
+ line-height: 24px;
+ `,
+ b1m: css`
+ font-weight: 500;
+ font-size: 24px;
+ line-height: 34px;
+ `,
+ b2m: css`
+ font-weight: 500;
+ font-size: 20px;
+ line-height: 28px;
+ `,
+ b3m: css`
+ font-weight: 500;
+ font-size: 16px;
+ line-height: 24px;
+ `,
+ b4m: css`
+ font-weight: 500;
+ font-size: 14px;
+ line-height: 24px;
+ `,
+ b1R: css`
+ font-weight: 400;
+ font-size: 24px;
+ line-height: 34px;
+ `,
+ b2R: css`
+ font-weight: 400;
+ font-size: 20px;
+ line-height: 28px;
+ `,
+ b3R: css`
+ font-weight: 400;
+ font-size: 16px;
+ line-height: 24px;
+ `,
+ b4R: css`
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 24px;
+ `,
+ c1sb: css`
+ font-weight: 600;
+ font-size: 12px;
+ line-height: 16px;
+ `,
+ c1m: css`
+ font-weight: 500;
+ font-size: 12px;
+ line-height: 16px;
+ `,
+ c1r: css`
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 16px;
+ `,
+ l1m: css`
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 20px;
+ `,
+ description: css`
+ color: ${COLORS.gray4};
+ font-weight: 400;
+ font-size: 0.75rem;
+ line-height: 1rem;
+ `,
};
export default textStyles;