From 42e19b727024ffb104720bee7128958191925079 Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 12 May 2025 16:08:25 +0200 Subject: [PATCH] STYLE Add typography styles and font imports --- resources/css/base/typography.css | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/resources/css/base/typography.css b/resources/css/base/typography.css index e69de29..9c45f2a 100644 --- a/resources/css/base/typography.css +++ b/resources/css/base/typography.css @@ -0,0 +1,47 @@ +@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap'); + +body { + font-family: 'Nunito Sans', sans-serif; + @apply text-primary; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Fjalla One', sans-serif; + @apply text-primary; +} + +h1 { + @apply text-6xl; +} + +h2 { + @apply text-5xl; +} + +body.wp-admin h1:not(.editor-visual-editor h1), +body.wp-admin h2:not(.editor-visual-editor h2), +body.wp-admin h3:not(.editor-visual-editor h3), +body.wp-admin h4:not(.editor-visual-editor h4), +body.wp-admin h5:not(.editor-visual-editor h5), +body.wp-admin h6:not(.editor-visual-editor h6) { + font-family: unset !important; + font-style: unset !important; + font-size: unset !important; + line-height: unset !important; + letter-spacing: unset !important; + text-transform: unset !important; + text-align: unset !important; +} + +.nunito { + font-family: 'Nunito Sans', sans-serif; +} + +.fjalla { + font-family: 'Fjalla One', sans-serif; +}