Typography updates

- Sets Recursive as the main typeface for code and text!
- Adjusts variable axes and sets stylistic alternates accordingly.
- Self hosts the font
This commit is contained in:
Henry Wilkinson 2023-04-06 23:28:23 -04:00
parent ab8088aec4
commit 8d60984760
4 changed files with 23 additions and 9 deletions

Binary file not shown.

View File

@ -3,17 +3,34 @@
--color-wr-darkred: #A2001D;
} */
/* Import monospaced recursive from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Recursive:MONO@1&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Recursive'); */
@font-face {
font-family: 'Recursive';
font-style: oblique 0deg 15deg;
font-weight: 300 1000;
src: url('../assets/fonts/Recursive_VF_1.084.woff2') format('woff2');
font-feature-settings: "ss12";
}
:root {
--md-code-font: "Recursive", monospace;
--md-text-font: "Recursive", "Helvetica", "Arial", sans-serif;
}
code, pre, kbd {
font-variation-settings: "MONO" 1;
font-variant-alternates: styleset(ss08)!important;
font-feature-settings: "ss01", "ss02", "ss08";
}
.md-typeset h1, h2, h3, h4, h5 {
color: var(--md-primary-fg-color--dark);
font-family: var(--md-code-font);
font-variation-settings: "MONO" 0.51;
}
.md-typeset h1, h2, h3 {
font-weight: 650 !important;
}
[data-md-color-scheme="webrecorder"] {
--md-primary-fg-color: #008873;
@ -23,7 +40,7 @@ code, pre, kbd {
--md-accent-fg-color: #01b297;
/* Typography Color Scheme */
--md-typeset-color: #003c32;
/* --md-typeset-color: #003c32; */
--md-typeset-a-color: #008873;
}

View File

@ -15,9 +15,6 @@ theme:
- navigation.tracking
- navigation-indexes
- navigation.footer
font:
text: Inter
code: Recursive
palette:
scheme: webrecorder
logo: assets/brand/btrix-logo.svg