Skip to content

Commit

Permalink
design(font): @font-face로 폰트 지정한다 (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
leegwae authored and github-actions[bot] committed Oct 17, 2023
1 parent 34be8c6 commit cf48828
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');
@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 400;
src: url(/fonts/NotoSansKR-Regular.eot),
url(/fonts/NotoSansKR-Regular.woff2) format('woff2'),
url(/fonts/NotoSansKR-Regular.woff) format('woff'),
url(/fonts/NotoSansKR-Regular.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 500;
src: url(/fonts/NotoSansKR-Medium.eot),
url(/fonts/NotoSansKR-Medium.woff2) format('woff2'),
url(/fonts/NotoSansKR-Medium.woff) format('woff'),
url(/fonts/NotoSansKR-Medium.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 600;
src: url(/fonts/NotoSansKR-SemiBold.eot),
url(/fonts/NotoSansKR-SemiBold.woff2) format('woff2'),
url(/fonts/NotoSansKR-SemiBold.woff) format('woff'),
url(/fonts/NotoSansKR-SemiBold.ttf) format('truetype');
font-display: swap;
}

@font-face {
font-family: 'Noto Sans KR';
font-style: normal;
font-weight: 700;
src: url(/fonts/NotoSansKR-Bold.eot),
url(/fonts/NotoSansKR-Bold.woff2) format('woff2'),
url(/fonts/NotoSansKR-Bold.woff) format('woff'),
url(/fonts/NotoSansKR-Bold.ttf) format('truetype');
font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand All @@ -19,9 +62,8 @@ body,

body {
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui,
Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR',
'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
sans-serif;
Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic',
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
letter-spacing: -0.48px;
}

Expand Down

0 comments on commit cf48828

Please sign in to comment.