-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: load spoqa font with webfontloader
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} | ||
`; |