Skip to content

Commit

Permalink
[feat] #9 Add Pretendard font and update Tailwind configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
karnelll committed Oct 9, 2024
1 parent 5cf3302 commit 6c3bc81
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
Binary file removed fe/src/public/fonts/GeistMonoVF.woff
Binary file not shown.
Binary file removed fe/src/public/fonts/GeistVF.woff
Binary file not shown.
Binary file added fe/src/public/fonts/PretendardVariable.woff2
Binary file not shown.
29 changes: 8 additions & 21 deletions fe/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
@font-face {
font-family: 'Pretendard';
src: url('/fonts/PretendardVariable.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
font-family: 'Pretendard', sans-serif;
}
7 changes: 6 additions & 1 deletion fe/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Config } from "tailwindcss";
import type { Config } from 'tailwindcss';

const config: Config = {
content: [
Expand Down Expand Up @@ -94,6 +94,11 @@ const config: Config = {
300: '300',
},

// Pretendard 폰트 추가
fontFamily: {
'pretendard': ['Pretendard', 'sans-serif'],
},

// 모서리 반경 설정
borderRadius: {
'xxsmall': '4px',
Expand Down

0 comments on commit 6c3bc81

Please sign in to comment.