Skip to content

Commit

Permalink
Merge pull request #114 from flareseek/feat/font-opt
Browse files Browse the repository at this point in the history
feat: 폰트 사이즈 최적화
  • Loading branch information
flareseek authored Sep 23, 2024
2 parents a596a71 + 12fdb9b commit 6b731a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
6 changes: 4 additions & 2 deletions src/shared/styles/vars.css.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { createGlobalTheme, fontFace } from "@vanilla-extract/css";
import boldFont from "../../assets/fonts/subset-PyeongChangPeace-Bold.woff2";
import lightFont from "../../assets/fonts/subset-PyeongChangPeace-Light.woff2";

const pyeongChangBold = fontFace({
src: "url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/PyeongChangPeace-Bold.woff2') format('woff2');",
src: `url('${boldFont}') format('woff2');`,
fontWeight: 700,
fontStyle: "nomal",
});
const pyeongChangLight = fontFace({
src: "url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/PyeongChangPeace-Light.woff2') format('woff2');",
src: `url('${lightFont}') format('woff2');`,
fontWeight: 300,
fontStyle: "nomal",
});
Expand Down

0 comments on commit 6b731a1

Please sign in to comment.