💄 load fonts locally and apply to html root

This commit is contained in:
Timur Ercan
2023-02-17 18:51:55 +01:00
parent d3391e71f7
commit 5f210d67ef
25 changed files with 30 additions and 179 deletions

View File

@ -1,6 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");
/* todo use "local" */
@tailwind base;
@tailwind components;
@tailwind utilities;
@ -9,7 +6,35 @@
min-height: 100%;
}
body {
font-family: montserrat;
}
@font-face {
font-family: "Qwigley";
src: url("/fonts/Qwigley-Regular.ttf");
}
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/montserrat.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/fonts/montserrat.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}