-
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.
chore: declare fonts via linaria global styles
it's handy because provides an ability to use theme constants.
- Loading branch information
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { css } from '@linaria/core' | ||
import { Digital7Mono } from '@/theme/fonts' | ||
|
||
void css` | ||
@font-face { | ||
font-family: ${Digital7Mono}; | ||
src: url('./digital-7mono.woff2') format('woff2'); | ||
font-weight: normal; | ||
font-style: normal; | ||
font-display: block; | ||
} | ||
` |
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