-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(svg): use IBM Plex Mono for background text
ghstack-source-id: fa0526ebc5591fbfa8ee36db10adbd6b1ac0a6d8 Pull Request resolved: #23
- Loading branch information
Showing
8 changed files
with
86 additions
and
33 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,50 @@ | ||
import RedactedOtf from '../../assets/fonts/redacted/otf/RedactedScript-Bold.otf' | ||
import RedactedTtf from '../../assets/fonts/redacted/ttf/RedactedScript-Bold.ttf' | ||
import RedactedWoff2 from '../../assets/fonts/redacted/woff/RedactedScript-Bold.woff2' | ||
import IBMPlexMonoBoldWoff from '@ibm/plex/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Bold.woff' | ||
import IBMPlexMonoBoldWoff2 from '@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Bold.woff2' | ||
import IBMPlexMonoLightWoff from '@ibm/plex/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Light.woff' | ||
import IBMPlexMonoLightWoff2 from '@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Light.woff2' | ||
|
||
export const IBMPlexMono = () => ( | ||
<style jsx global> | ||
{` | ||
@font-face { | ||
font-family: 'IBM Plex Mono'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: | ||
local('IBM Plex Mono Bold'), | ||
local('IBMPlexMono-Bold'), | ||
url('${IBMPlexMonoBoldWoff2}') format('woff2'), | ||
url('${IBMPlexMonoBoldWoff}') format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'IBM Plex Mono'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: | ||
local('IBM Plex Mono Light'), | ||
local('IBMPlexMono-Light'), | ||
url('${IBMPlexMonoLightWoff2}') format('woff2'), | ||
url('${IBMPlexMonoLightWoff}') format('woff'); | ||
} | ||
`} | ||
</style> | ||
) | ||
|
||
export const RedactedFont = () => ( | ||
<style jsx global> | ||
{` | ||
@font-face { | ||
font-family: 'Redacted'; | ||
font-weight: bold; | ||
src: | ||
url('${RedactedOtf}') format('woff2'), | ||
url('${RedactedTtf}') format('opentype'), | ||
url('${RedactedWoff2}') format('truetype'); | ||
} | ||
`} | ||
</style> | ||
) |
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
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
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