Typography: Use Source Code Pro for the monospace font

Grab variable woff2 files from GitHub.

https://github.com/adobe-fonts/source-code-pro/
This commit is contained in:
Eryn Wells 2024-08-02 16:10:28 -07:00
parent 1cc6ff0e78
commit 1ec5084c66
3 changed files with 17 additions and 1 deletions

View file

@ -11,10 +11,26 @@
# FONTS
********/
@font-face{
font-family: source-code-pro;
font-weight: 200 900;
font-style: normal;
font-stretch: normal;
src: url({{ (resources.Get "fonts/sourceCodePro-variable.woff2").Permalink }});
}
@font-face{
font-family: source-code-pro;
font-weight: 200 900;
font-style: italic;
font-stretch: normal;
src: url({{ (resources.Get "fonts/sourceCodePro-italic-variable.woff2").Permalink }});
}
:root {
--font-family-sans: system-ui, Arial, sans-serif;
--font-family-serif: Georgia, serif;
--font-family-monospace: monospace;
--font-family-monospace: source-code-pro, monospace;
--font-family-body: var(--font-family-sans);
--font-family-heading: var(--font-family-monospace);

Binary file not shown.

Binary file not shown.