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:
parent
1cc6ff0e78
commit
1ec5084c66
3 changed files with 17 additions and 1 deletions
|
@ -11,10 +11,26 @@
|
||||||
# FONTS
|
# 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 {
|
:root {
|
||||||
--font-family-sans: system-ui, Arial, sans-serif;
|
--font-family-sans: system-ui, Arial, sans-serif;
|
||||||
--font-family-serif: Georgia, 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-body: var(--font-family-sans);
|
||||||
--font-family-heading: var(--font-family-monospace);
|
--font-family-heading: var(--font-family-monospace);
|
||||||
|
|
BIN
assets/fonts/sourceCodePro-italic-variable.woff2
Normal file
BIN
assets/fonts/sourceCodePro-italic-variable.woff2
Normal file
Binary file not shown.
BIN
assets/fonts/sourceCodePro-variable.woff2
Normal file
BIN
assets/fonts/sourceCodePro-variable.woff2
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue