Skip to content

Commit

Permalink
🛠 fix : 폰트 미적용 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
seondal committed Jan 9, 2024
1 parent 81c3c47 commit 45a25d5
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 88 deletions.
89 changes: 89 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,92 @@
height: -webkit-fill-available;
}
}

/* Font */
@font-face {
font-family: 'Pretendard';
font-weight: 700;
src: url('/fonts/Pretendard-Bold.woff2') format('woff2');
}

@font-face {
font-family: 'Pretendard';
font-weight: 500;
src: url('/fonts/Pretendard-Medium.woff2') format('woff2');
}

@font-face {
font-family: 'Pretendard';
font-weight: 400;
src: url('/fonts/Pretendard-Regular.woff2') format('woff2');
}

/* Typography */
h1 {
font-weight: 700;
font-size: 3rem;
line-height: 3.75rem;
letter-spacing: -0.4px;
}
h2 {
font-weight: 700;
font-size: 2rem;
line-height: 3rem;
letter-spacing: -0.4px;
}
h3 {
font-weight: 700;
font-size: 1.5rem;
line-height: 2.25rem;
letter-spacing: -0.3px;
}
h4 {
font-weight: 700;
font-size: 1.25rem;
line-height: 1.875rem;
letter-spacing: -0.2px;
}

#subtitle-1 {
font-weight: 500;
font-size: 1rem;
line-height: 1.5rem;
letter-spacing: -0.2px;
}
#subtitle-2 {
font-weight: 500;
font-size: 0.875rem;
line-height: 1.375rem;
letter-spacing: -0.1px;
}
#subtitle-3 {
font-weight: 500;
font-size: 0.75rem;
line-height: 1.125rem;
letter-spacing: -0px;
}

h6 {
font-weight: 500;
font-size: 0.875rem;
line-height: 1.125rem;
letter-spacing: 0;
}

p {
font-weight: 400;
font-size: 1rem;
line-height: 1.5rem;
letter-spacing: -0.1px;
}

caption {
font-weight: 500;
font-size: 0.75rem;
line-height: 1.125rem;
letter-spacing: 0.4px;
}

button {
cursor: pointer;
}
2 changes: 0 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import './globals.css';
import '../../styles/font.css';
import '../../styles/typography.css';

import { Suspense } from 'react';

Expand Down
17 changes: 0 additions & 17 deletions styles/font.css

This file was deleted.

69 changes: 0 additions & 69 deletions styles/typography.css

This file was deleted.

0 comments on commit 45a25d5

Please sign in to comment.