Skip to content

Commit

Permalink
[FE][Feat] : pretendard font 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
effozen committed Nov 5, 2024
1 parent ad0e76e commit d815544
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions FrontEnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@fontsource/pretendard": "^5.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
4 changes: 4 additions & 0 deletions FrontEnd/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
box-sizing: border-box; /* padding과 border를 box 크기에 포함 */
}

body {
font-family: 'Pretendard', sans-serif;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
Expand Down
10 changes: 10 additions & 0 deletions FrontEnd/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import './index.css';
import { App } from './App';
// 우선은 폰트 다 포함시켰는데, 나중에 사용할 것들만 따로 뺴자.
import '@fontsource/pretendard/100.css';
import '@fontsource/pretendard/200.css';
import '@fontsource/pretendard/300.css';
import '@fontsource/pretendard/400.css';
import '@fontsource/pretendard/500.css';
import '@fontsource/pretendard/600.css';
import '@fontsource/pretendard/700.css';
import '@fontsource/pretendard/800.css';
import '@fontsource/pretendard/900.css';

createRoot(document.getElementById('root')!).render(
<StrictMode>
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d815544

Please sign in to comment.