fixed #16847: changed font to local and added current font as fallback

This commit is contained in:
Andrew Gormley 2024-07-09 16:20:47 +01:00
parent 17e076e0d9
commit 0c0d1ad72f
11 changed files with 8 additions and 7 deletions

Binary file not shown.

Binary file not shown.

View File

@ -22,6 +22,7 @@
"validate:formatting:scripts": "prettier -c src/**/*.ts" "validate:formatting:scripts": "prettier -c src/**/*.ts"
}, },
"dependencies": { "dependencies": {
"@fontsource-variable/plus-jakarta-sans": "^5.0.21",
"@mdi/font": "7.4.47", "@mdi/font": "7.4.47",
"@tabler/core": "1.0.0-beta20", "@tabler/core": "1.0.0-beta20",
"bootstrap": "5.3.3", "bootstrap": "5.3.3",

View File

@ -1,7 +1,7 @@
// Global variables // Global variables
// Set base fonts // Set base fonts
$font-family-sans-serif: 'Inter'; $font-family-sans-serif: 'Plus Jakarta Sans Variable', 'Inter', system-ui, sans-serif;
// See https://github.com/tabler/tabler/issues/1812 // See https://github.com/tabler/tabler/issues/1812
$font-family-monospace: 'Roboto Mono'; $font-family-monospace: 'Roboto Mono';

View File

@ -6,4 +6,4 @@
// Fonts // Fonts
@import url("../node_modules/typeface-inter/inter.css"); @import url("../node_modules/typeface-inter/inter.css");
@import url("../node_modules/typeface-roboto-mono/index.css"); @import url("../node_modules/typeface-roboto-mono/index.css");
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap'); @import url("../node_modules/@fontsource-variable/plus-jakarta-sans/index.css");

View File

@ -5,11 +5,6 @@
font-variant-ligatures: none; font-variant-ligatures: none;
} }
// App font
:root {
--tblr-font-sans-serif: 'Plus Jakarta Sans';
}
// Restore default foreground & background colors for <pre> blocks // Restore default foreground & background colors for <pre> blocks
pre { pre {
background-color: transparent; background-color: transparent;

View File

@ -80,6 +80,11 @@
resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.2.tgz#d8bae93ac8b815b2bd7a98078cf91e2724ef11e5" resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.2.tgz#d8bae93ac8b815b2bd7a98078cf91e2724ef11e5"
integrity sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw== integrity sha512-J4yDIIthosAsRZ5CPYP/jQvUAQtlZTTD/4suA08/FEnlxqW3sKS9iAhgsa9VYLZ6vDHn/ixJgIqRQPotoBjxIw==
"@fontsource-variable/plus-jakarta-sans@^5.0.21":
version "5.0.21"
resolved "https://registry.yarnpkg.com/@fontsource-variable/plus-jakarta-sans/-/plus-jakarta-sans-5.0.21.tgz#3bb6e0d16add99f0b93981443d4d763ea85ad13b"
integrity sha512-VTQB+MnaYbjLNmfxQJ/Fc2rayLGlqTiZa6nZTpplS0lJF3XKcWPPItilGFMZW4lfwIiroo+FIfBewBOF3MrMPQ==
"@graphiql/plugin-explorer@2.0.0": "@graphiql/plugin-explorer@2.0.0":
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/@graphiql/plugin-explorer/-/plugin-explorer-2.0.0.tgz#d6869cba019ae6fac006ce61ae3470d8c8a83938" resolved "https://registry.yarnpkg.com/@graphiql/plugin-explorer/-/plugin-explorer-2.0.0.tgz#d6869cba019ae6fac006ce61ae3470d8c8a83938"