From 7fd398bd015c05ac15f5bb333213acfa2f0a6c49 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 3 Jul 2024 07:42:22 -0700 Subject: [PATCH] Typography: Declare Merriweather @font-faces --- assets/css/010_typography.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/assets/css/010_typography.css b/assets/css/010_typography.css index 3c4270f..32ee0e9 100644 --- a/assets/css/010_typography.css +++ b/assets/css/010_typography.css @@ -19,6 +19,21 @@ @import url("https://use.typekit.net/fji8aoy.css"); +{{ with resources.Get "fonts/merriweather.woff2" -}} + @font-face { + font-family: "merriweather"; + src: url("{{ .Permalink }}"); + } +{{- end }} + +{{ with resources.Get "fonts/merriweather-italic.woff2" -}} + @font-face { + font-family: "merriweather"; + font-style: italic; + src: url("{{ .Permalink }}"); + } +{{- end }} + :root { --font-family-body: system-ui, Arial, sans-serif; /* --font-family-heading: "rockwell", serif; */