feat(fonts): add Lexend

This commit is contained in:
Paul Makles 2022-01-15 14:42:35 +00:00
parent 56f2411652
commit 4996a4d785
3 changed files with 16 additions and 1 deletions

View file

@ -76,6 +76,7 @@
"@fontsource/inter": "^4.4.5",
"@fontsource/jetbrains-mono": "^4.4.5",
"@fontsource/lato": "^4.4.5",
"@fontsource/lexend": "^4.5.2",
"@fontsource/montserrat": "^4.4.5",
"@fontsource/noto-sans": "^4.4.5",
"@fontsource/open-sans": "^4.4.5",

View file

@ -54,7 +54,8 @@ export type Fonts =
| "Poppins"
| "Raleway"
| "Ubuntu"
| "Comic Neue";
| "Comic Neue"
| "Lexend";
export type MonospaceFonts =
| "Fira Code"
@ -144,6 +145,14 @@ export const FONTS: Record<Fonts, { name: string; load: () => void }> = {
await import("@fontsource/lato/400-italic.css");
},
},
Lexend: {
name: "Lexend",
load: async () => {
await import("@fontsource/lexend/300.css");
await import("@fontsource/lexend/400.css");
await import("@fontsource/lexend/700.css");
},
},
Montserrat: {
name: "Montserrat",
load: async () => {

View file

@ -1286,6 +1286,11 @@
resolved "https://registry.yarnpkg.com/@fontsource/lato/-/lato-4.5.0.tgz#c248b083be330daafade76995fed9088d5b76c04"
integrity sha512-Y1qluoF+5b2U6MWcEz70+euZwl4TEV+9v7nZCmuRgNHb5McYc3VmbNmYNEiLsnb1HHwlAHA70P/LktP9EJ61ag==
"@fontsource/lexend@^4.5.2":
version "4.5.2"
resolved "https://registry.yarnpkg.com/@fontsource/lexend/-/lexend-4.5.2.tgz#eb2949e46831b9a89ece254145d053ad52a3a637"
integrity sha512-8wcqpW5ohWGptW8T9HYT20MDrfBmaAkmI/eE/ytwaqRT7WmxZjido72WjSZmKf5F872HHoaIOQWmZbYMdgMdcg==
"@fontsource/montserrat@^4.4.5":
version "4.5.1"
resolved "https://registry.yarnpkg.com/@fontsource/montserrat/-/montserrat-4.5.1.tgz#64a33ffdb77bbc63484c0321710bed272cc5b16f"