Skip to content

Commit

Permalink
fix: load spoqa font with webfontloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna922 committed May 16, 2024
1 parent b115408 commit 0dcc24e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/style/globalStyle/GlobalStyle.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
import { createGlobalStyle } from 'styled-components';
import WebFont from 'webfontloader';

WebFont.load({
custom: {
families: ['Spoqa Han Sans Neo'],
urls: ['//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css'],
},
});

export const GlobalStyles = createGlobalStyle`
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Spoqa Han Sans Neo', 'sans-serif';
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Spoqa Han Sans Neo', 'sans-serif';
}
`;

0 comments on commit 0dcc24e

Please sign in to comment.