Skip to content

Commit

Permalink
Merge pull request #52 from dnd-side-project/feature/51
Browse files Browse the repository at this point in the history
[#51] ํฐํŠธ ์ˆ˜์ • & ํฐํŠธ ๊ด€๋ จ ์ปดํฌ๋„ŒํŠธ ์ˆ˜์ •
  • Loading branch information
vgihan authored Jul 31, 2022
2 parents 73c9d03 + 99a6b90 commit bbbca42
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 15 deletions.
12 changes: 12 additions & 0 deletions src/components/utils/Text/BodyText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ export const BodyText4 = styled.Text({
fontFamily: fonts[3].fontFamily,
lineHeight: fonts[3].lineHeight,
});

export const BodyText5 = styled.Text({
fontSize: fonts[4].size,
fontFamily: fonts[4].fontFamily,
lineHeight: fonts[4].lineHeight,
});

export const BodyText6 = styled.Text({
fontSize: fonts[5].size,
fontFamily: fonts[5].fontFamily,
lineHeight: fonts[5].lineHeight,
});
4 changes: 3 additions & 1 deletion src/components/utils/Text/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BodyText1, BodyText2, BodyText3, BodyText4} from './BodyText';
import {BodyText1, BodyText2, BodyText3, BodyText4, BodyText5, BodyText6} from './BodyText';
import {Headline1, Headline2, Headline3} from './Headline';
import {SubHeadline1, SubHeadline2, SubHeadline3} from './SubHeadline';

Expand All @@ -13,4 +13,6 @@ export {
BodyText2,
BodyText3,
BodyText4,
BodyText5,
BodyText6,
};
38 changes: 24 additions & 14 deletions src/styles/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,56 +62,66 @@ const theme: Theme = {
{
size: fontPercentage(28),
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(28) * 1.28,
lineHeight: fontPercentage(36),
},
{
size: fontPercentage(24),
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(24) * 1.3,
lineHeight: fontPercentage(32),
},
{
size: fontPercentage(22),
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(22) * 1.3,
lineHeight: fontPercentage(30),
},
],
SubHeadline: [
{
size: fontPercentage(20),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(20) * 1.3,
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(28),
},
{
size: fontPercentage(18),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(18) * 1.36,
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(24),
},
{
size: fontPercentage(14),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(14) * 1.36,
size: fontPercentage(16),
fontFamily: 'Pretendard-SemiBold',
lineHeight: fontPercentage(20),
},
],
Body: [
{
size: fontPercentage(16),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(16) * 1.36,
lineHeight: fontPercentage(22),
},
{
size: fontPercentage(16),
fontFamily: 'Pretendard-Regular',
lineHeight: fontPercentage(16) * 1.36,
lineHeight: fontPercentage(22),
},
{
size: fontPercentage(14),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(20),
},
{
size: fontPercentage(14),
fontFamily: 'Pretendard-Regular',
lineHeight: fontPercentage(14) * 1.4,
lineHeight: fontPercentage(20),
},
{
size: fontPercentage(12),
fontFamily: 'Pretendard-Medium',
lineHeight: fontPercentage(18),
},
{
size: fontPercentage(12),
fontFamily: 'Pretendard-Regular',
lineHeight: fontPercentage(12) * 1.4,
lineHeight: fontPercentage(18),
},
],
},
Expand Down

0 comments on commit bbbca42

Please sign in to comment.