Skip to content

Commit

Permalink
feat: typo theme
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyouknow committed Sep 9, 2023
1 parent b2fff97 commit e656a3f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/styles/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { colors } from './colors';
// import { typos } from './typo';
import { typos } from './typo';

export const theme = {
colors,
// typos,
typos,
} as const;
64 changes: 64 additions & 0 deletions src/styles/typo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { css } from '@emotion/react';

export const typos = {
pretendard: {
subTitle1: css`
/* Pretendard/Subtitle Bold */
font-size: 32px;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 48px */
letter-spacing: -0.32px;
`,
subTitle2: css`
/* Pretendard/Subtitle 2 Bold */
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 150%; /* 30px */
letter-spacing: -0.2px;
`,
body1: css`
/* Pretendard/Body 1 Medium */
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 25.2px; /* 140% */
letter-spacing: -0.18px;
`,
},
decimal: {
title1: css`
/* Decimal/Title 1 */
font-size: 60px;
font-style: normal;
font-weight: 600;
line-height: 135%; /* 81px */
text-transform: capitalize;
`,
title2: css`
/* Decimal/Title 2 */
font-size: 40px;
font-style: normal;
font-weight: 600;
line-height: 135%; /* 54px */
text-transform: capitalize;
`,
subTitle1: css`
/* Decimal/Subtitle 1 */
font-size: 28px;
font-style: normal;
font-weight: 600;
line-height: 30px; /* 107.143% */
letter-spacing: -0.28px;
`,
body1: css`
/* Decimal/Body 1 */
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 25.2px; /* 140% */
letter-spacing: -0.18px;
`,
},
};

0 comments on commit e656a3f

Please sign in to comment.