feat: local fonts

This commit is contained in:
cymon 2023-06-23 13:38:51 +00:00
parent ca92a37bed
commit b52911cb51
6 changed files with 32 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +1,37 @@
@import "./mixins.scss";
@import "./vars.scss";
@import url("https://fonts.googleapis.com/css?family=Jaldi:400|JetBrains+Mono:400,700|IBM+Plex+Sans+Devanagari:400");
@font-face {
font-family: 'Jaldi';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/Jaldi-Regular.woff2") format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/JetBrainsMono-Regular.woff2") format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/fonts/JetBrainsMono-Bold.woff2") format('woff2');
}
@font-face {
font-family: 'IBM Plex Sans Devanagari';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/ibm-plex-sans-devanagari.woff2") format('woff2');
}
@tailwind base;
@tailwind components;

View File

@ -8,6 +8,6 @@ $color-alto: #d9d9d9;
$font-family-ibm-plex-sans-devanagari: "IBM Plex Sans Devanagari", sans-serif;
$font-family-jaldi: "Jaldi", sans-serif;
$font-family-jetbrains-mono: "JetBrains Mono", sans-serif;
$font-family-jetbrains-mono: "JetBrains Mono", monospace;
$transition-duration: 250ms;