mirror of
https://github.com/mfocko/blog.git
synced 2024-12-22 11:41:25 +01:00
feat(css): switch to ‹JetBrains Mono›
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
751570be08
commit
3db5b21033
4 changed files with 21 additions and 1 deletions
|
@ -84,7 +84,7 @@ const config = {
|
|||
theme: {
|
||||
customCss: [
|
||||
require.resolve("./src/css/custom.scss"),
|
||||
require.resolve("./src/css/cascadia_code.css"),
|
||||
require.resolve("./src/css/jetbrains_mono.css"),
|
||||
],
|
||||
},
|
||||
}),
|
||||
|
|
20
src/css/jetbrains_mono.css
Normal file
20
src/css/jetbrains_mono.css
Normal file
|
@ -0,0 +1,20 @@
|
|||
@font-face {
|
||||
font-family: "JetBrains Mono";
|
||||
src: url("/fonts/JetBrainsMono[wght].woff2") format("woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "JetBrains Mono";
|
||||
font-style: italic;
|
||||
src: url("/fonts/JetBrainsMono-Italic[wght].woff2") format("woff2");
|
||||
}
|
||||
|
||||
[data-theme='dark'] pre,
|
||||
[data-theme='dark'] code,
|
||||
[data-theme='dark'] kbd,
|
||||
[data-theme='dark'] var,
|
||||
[data-theme='dark'] tt,
|
||||
[data-theme='dark'] text {
|
||||
font-weight: 350;
|
||||
}
|
||||
|
BIN
static/fonts/JetBrainsMono-Italic[wght].woff2
Normal file
BIN
static/fonts/JetBrainsMono-Italic[wght].woff2
Normal file
Binary file not shown.
BIN
static/fonts/JetBrainsMono[wght].woff2
Normal file
BIN
static/fonts/JetBrainsMono[wght].woff2
Normal file
Binary file not shown.
Loading…
Reference in a new issue