-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display each font text with the corresponding font in theme set…
…tings (#1023) Co-authored-by: Diogo Correia <[email protected]>
- Loading branch information
1 parent
2c8e895
commit 7539694
Showing
3 changed files
with
41 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,42 +4,52 @@ import '../styles/themes/gruvbox.css'; | |
import '../styles/themes/nord.css'; | ||
import '../styles/themes/solarized.css'; | ||
|
||
const fonts = { | ||
export const fonts = { | ||
roboto: { | ||
cssFamily: 'Roboto, sans-serif', | ||
url: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap', | ||
displayName: 'Roboto (default)', | ||
}, | ||
comicNeue: { | ||
cssFamily: 'Comic Neue, sans-serif', | ||
url: 'https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap', | ||
displayName: 'Comic Neue', | ||
}, | ||
indieFlower: { | ||
cssFamily: 'Indie Flower, cursive', | ||
url: 'https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap', | ||
displayName: 'Indie Flower', | ||
}, | ||
nunito: { | ||
cssFamily: 'Nunito, sans-serif', | ||
url: 'https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap', | ||
displayName: 'Nunito', | ||
}, | ||
openDyslexic: { | ||
cssFamily: 'OpenDyslexicRegular, Roboto, sans-serif', | ||
url: 'https://cdn.jsdelivr.net/npm/[email protected]/open-dyslexic-regular.min.css', | ||
displayName: 'OpenDyslexic', | ||
}, | ||
openSans: { | ||
cssFamily: 'Open Sans, Roboto, sans-serif', | ||
url: 'https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap', | ||
displayName: 'Open Sans', | ||
}, | ||
cursive: { | ||
cssFamily: 'cursive', | ||
displayName: 'cursive (system)', | ||
}, | ||
monospace: { | ||
cssFamily: 'monospace', | ||
displayName: 'monospace (system)', | ||
}, | ||
sansSerif: { | ||
cssFamily: 'sans-serif', | ||
displayName: 'sans-serif (system)', | ||
}, | ||
serif: { | ||
cssFamily: 'serif', | ||
displayName: 'serif (system)', | ||
}, | ||
}; | ||
|
||
|