Optional bundled fonts (fixes #44). Style cleanups
This commit is contained in:
56
sass/fonts.scss
Normal file
56
sass/fonts.scss
Normal file
@ -0,0 +1,56 @@
|
||||
@font-face {
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
src: url("fonts/InterVariable.woff2") format("woff2");
|
||||
font-family: "Inter Variable";
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
src: url("fonts/InterVariable-Italic.woff2") format("woff2");
|
||||
font-family: "Inter Variable";
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
src: url("fonts/JetBrainsMono.woff2") format("woff2");
|
||||
font-family: "JetBrains Mono";
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-style: italic;
|
||||
font-weight: 100 900;
|
||||
src: url("fonts/JetBrainsMono-Italic.woff2") format("woff2");
|
||||
font-family: "JetBrains Mono";
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Inter Variable", var(--font-system-ui), var(--font-emoji);
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-weight: bold;
|
||||
font-family: "Inter Variable", var(--font-system-ui), var(--font-emoji);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: "JetBrains Mono", var(--font-monospace-code);
|
||||
}
|
Reference in New Issue
Block a user