Skip to content

Commit

Permalink
feat: 폰트 적용 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdgpdi committed Nov 19, 2024
1 parent fce2259 commit 18d2016
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Binary file not shown.
23 changes: 13 additions & 10 deletions frontend/techpick-extension/src/styles/reset.css.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
import { globalStyle } from '@vanilla-extract/css';
import { globalStyle, globalFontFace } from '@vanilla-extract/css';

globalStyle('*', {
boxSizing: 'border-box',
backgroundColor: 'transparent',
});

// Google Fonts를 직접 가져오기
globalStyle('@import', {
content: `url('https://fonts.googleapis.com/css2?family=Gothic+A1&display=swap')`,
});

globalStyle('*', {
fontFamily: '"Gothic A1", "sans-serif"',
});

globalStyle('*::-webkit-scrollbar', {
display: 'none',
});
Expand Down Expand Up @@ -81,3 +72,15 @@ globalStyle('a', {
textDecoration: 'none',
color: 'inherit',
});

export const gothicA1 = 'gothicA1';

globalFontFace(gothicA1, {
src: 'url("./../assets/GothicA1-Regular.ttf") format("truetype")',
fontWeight: 'normal',
fontStyle: 'normal',
});

globalStyle('body', {
fontFamily: gothicA1,
});

0 comments on commit 18d2016

Please sign in to comment.