feat: Inter font #16

Merged
matous-volf merged 2 commits from feat/inter-font into main 2024-08-23 16:58:55 +00:00
4 changed files with 21 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -3,6 +3,9 @@ module.exports = {
mode: "all",
content: ["./src/**/*.{rs,html,css}", "./dist/**/*.html"],
theme: {
fontFamily: {
sans: ["Inter", "sans-serif"],
},
extend: {},
},
plugins: [],

View File

@ -13,3 +13,21 @@ html, body, #main {
}
/* stylelint-enable */
@layer base {
@font-face {
font-family: Inter;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/inter_variable.woff2") format("woff2");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 100 900;
font-display: swap;
src: url("/fonts/inter_variable_italic.woff2") format("woff2");
}
}