Skip to content

Commit

Permalink
Feat: Add Pretendard font and typography
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Jul 19, 2024
1 parent 7a8edc2 commit 210f01b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

@font-face {
font-family: 'Pretendard';
src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
}
9 changes: 9 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ module.exports = {
mobile: '360px',
desktop: '769px',
},
fontFamily: {
pretendard: 'Pretendard',
},
fontSize: {
body1: ['16px', { lineHeight: '24px', fontWeight: '400' }],
body2: ['16px', { lineHeight: '24px', fontWeight: '500' }],
body3: ['14px', { lineHeight: '20px', fontWeight: '500' }],
title: ['24px', { lineHeight: '32px', fontWeight: '700' }],
},
},
},
plugins: [],
Expand Down

0 comments on commit 210f01b

Please sign in to comment.