chore(fonts.css): improve DM Sans implementation to use variable font files and proper italics
This commit is contained in:
parent
1812e42976
commit
41331cfd62
7 changed files with 8 additions and 8 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.1.1",
|
"version": "3.2.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.1.1",
|
"version": "3.2.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"html-minifier-terser": "7.2.0",
|
"html-minifier-terser": "7.2.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "coryd.dev",
|
"name": "coryd.dev",
|
||||||
"version": "3.1.1",
|
"version": "3.2.0",
|
||||||
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
"description": "The source for my personal site. Built using 11ty (and other tools).",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
BIN
src/assets/fonts/dm.woff2
Normal file
BIN
src/assets/fonts/dm.woff2
Normal file
Binary file not shown.
Binary file not shown.
BIN
src/assets/fonts/dmi.woff2
Normal file
BIN
src/assets/fonts/dmi.woff2
Normal file
Binary file not shown.
Binary file not shown.
|
@ -8,17 +8,17 @@
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "DM Sans";
|
font-family: "DM Sans";
|
||||||
src: url("/assets/fonts/dmr.woff2") format("woff2");
|
src: url("/assets/fonts/dm.woff2") format("woff2");
|
||||||
font-weight: 400;
|
font-weight: 100 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "DM Sans";
|
font-family: "DM Sans";
|
||||||
src: url("/assets/fonts/dmb.woff2") format("woff2");
|
src: url("/assets/fonts/dmi.woff2") format("woff2");
|
||||||
font-weight: 700;
|
font-weight: 100 700;
|
||||||
font-style: normal;
|
font-style: italic;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue