feat(css): use ‹Cascadia Code PL› as the default font

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-07-17 21:46:03 +02:00
parent 4fe5d12ecb
commit 7ec27821cc
Signed by: mfocko
GPG key ID: 7C47D46246790496
6 changed files with 18 additions and 7 deletions

View file

@ -83,6 +83,7 @@ const config = {
theme: {
customCss: [
require.resolve("./src/css/custom.css"),
require.resolve("./src/css/cascadia_code.css"),
],
},
}),
@ -116,11 +117,11 @@ const config = {
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
{
href: "https://cdn.jsdelivr.net/npm/hack-font/build/web/hack.min.css",
type: "text/css",
crossorigin: "anonymous",
}
// {
// href: "https://cdn.jsdelivr.net/npm/hack-font/build/web/hack.min.css",
// type: "text/css",
// crossorigin: "anonymous",
// },
],
themeConfig:

View file

@ -1,6 +1,6 @@
#!/bin/sh
FONT="'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack', monospace"
FONT="'Iosevka', 'Cascadia Code PL', 'JetBrains Mono', 'Fira Code', 'Hack', monospace"
for pic in $(find ./static/files -name '*.dot' -print); do
SVG_NAME=".$(echo $pic | cut -d'.' -f2)"

10
src/css/cascadia_code.css Normal file
View file

@ -0,0 +1,10 @@
@font-face {
font-family: "Cascadia Code PL";
src: url("/fonts/CascadiaCodePL.woff2") format("woff2");
}
@font-face {
font-family: "Cascadia Code PL";
font-style: italic;
src: url("/fonts/CascadiaCodePLItalic.woff2") format("woff2");
}

View file

@ -27,7 +27,7 @@
}
pre, code, kbd, var, tt {
font-family: 'Iosevka', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Hack', monospace;
font-family: 'Iosevka', 'Cascadia Code PL', 'JetBrains Mono', 'Fira Code', 'Hack', monospace;
}
[data-theme='light'] img[src$='#gh-dark-mode-only'],

Binary file not shown.

Binary file not shown.