⬆️ feat(fonts): use woff2 & update fonts

⬆️ Update Source Serif to latest version
 Update Inter font to v4 beta
📸 Update screenshots to reflect font changes
main
welpo 2 years ago
parent 85a32e263f
commit 1c06c99047
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 240 KiB

@ -1,16 +1,16 @@
@font-face { @font-face {
/* Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */ /* Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Inter'; font-family: 'Inter';
src: local('Inter'), src: local('Inter'),
url('fonts/Inter.ttf'); url('fonts/Inter4.0-beta8.woff2') format("woff2");
font-display: swap; font-display: swap;
} }
@font-face { @font-face {
/* Copyright 2014, 2015, 2016 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */ /* Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name Source.adobe.com/). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Source Serif Pro'; font-family: 'Source Serif';
src: local('Source Serif Pro'), src: local('Source Serif'),
url('fonts/SourceSerifPro-Regular.ttf'); url('fonts/SourceSerif4Variable-Roman.otf.woff2') format("woff2");
font-display: swap; font-display: swap;
} }
@ -18,7 +18,7 @@
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */ /* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
font-family: 'Cascadia Code'; font-family: 'Cascadia Code';
src: local('Cascadia Code'), src: local('Cascadia Code'),
url('fonts/CascadiaCode.ttf'); url('fonts/CascadiaCode.woff2') format("woff2");
font-display: swap; font-display: swap;
} }
@ -44,7 +44,7 @@
--small-layout-width: 200px; --small-layout-width: 200px;
--sans-serif-font: 'Inter', Helvetica, Arial, sans-serif; --sans-serif-font: 'Inter', Helvetica, Arial, sans-serif;
--serif-font: 'Source Serif Pro', 'Georgia', serif; --serif-font: 'Source Serif', 'Georgia', serif;
--code-font: 'Cascadia Code'; --code-font: 'Cascadia Code';
font-family: var(--sans-serif-font); font-family: var(--sans-serif-font);

@ -78,7 +78,7 @@ header {
.meta { .meta {
color: var(--meta-color); color: var(--meta-color);
letter-spacing: -0.5px; letter-spacing: -0.4px;
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 300; font-weight: 300;
padding: 0; padding: 0;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save