mirror of
https://github.com/mfocko/blog.git
synced 2024-11-24 14:01:55 +01:00
feat(css): use ‹Cascadia Code PL› as the default font
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
4fe5d12ecb
commit
7ec27821cc
6 changed files with 18 additions and 7 deletions
|
@ -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:
|
||||
|
|
|
@ -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
10
src/css/cascadia_code.css
Normal 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");
|
||||
}
|
|
@ -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'],
|
||||
|
|
BIN
static/fonts/CascadiaCodePL.woff2
Normal file
BIN
static/fonts/CascadiaCodePL.woff2
Normal file
Binary file not shown.
BIN
static/fonts/CascadiaCodePLItalic.woff2
Normal file
BIN
static/fonts/CascadiaCodePLItalic.woff2
Normal file
Binary file not shown.
Loading…
Reference in a new issue