Skip to content

Commit

Permalink
pretendard 폰트 적용 (#5)
Browse files Browse the repository at this point in the history
* pretendard 폰트 적용

* pretendard-dynamic-subset으로 변경

* @import -> link 방식으로 웹폰트 로딩 방식 변경
  • Loading branch information
hmu332233 authored May 6, 2022
1 parent 235082b commit c9d8104
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ function Document() {
`,
}}
/>
<link
rel="stylesheet"
as="style"
crossOrigin=""
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard-dynamic-subset.css"
/>
</Head>
<body>
<Main />
Expand Down
7 changes: 6 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
@tailwind components;
@tailwind utilities;

body {
font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
Pretendard, Roboto, 'Noto Sans KR', 'Segoe UI', 'Malgun Gothic',
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.container {
min-width: 360px;
Expand All @@ -10,4 +15,4 @@
margin: 0 auto;
padding-left: 20px;
padding-right: 20px;
}
}

1 comment on commit c9d8104

@vercel
Copy link

@vercel vercel bot commented on c9d8104 May 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.