feat: 🩹 use custom properties to set font-family

This commit is contained in:
Sebin Nyshkim 2024-10-17 20:31:23 +02:00
parent 453331f3dd
commit 1afcf222d7

View file

@ -5,7 +5,13 @@
@tailwind utilities;
:root {
font-family: 'Encode Sans', sans-serif;
--font-copy: 'Encode Sans', sans-serif;
--font-heading: 'Tilt Warp', sans-serif;
--font-monospace: 'M PLUS 1 Code', monospace;
}
body {
font-family: var(--font-copy);
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
@ -17,11 +23,11 @@ h3,
h4,
h5,
h6 {
font-family: 'Tilt Warp', sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-variation-settings: 'XROT' 0, 'YROT' 0;
font-family: var(--font-heading)
}
pre, code {
font-family: var(--font-monospace);
}
a:not(nav a, .button) {