fix: add Geist default font

This commit is contained in:
hrynevych.romann 2024-02-14 15:23:19 +02:00
parent 41660d36cd
commit 83657aa021
5 changed files with 14 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,13 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
@font-face {
font-family: "Geist";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../assets/GeistVariableVF.ttf") format("truetype"), url("../assets/GeistVariableVF.woff2") format("woff2");
}
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;

View File

@ -1,4 +1,5 @@
import tailwindcssAnimate from 'tailwindcss-animate' import tailwindcssAnimate from 'tailwindcss-animate'
import defaultTheme from 'tailwindcss/defaultTheme'
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
@ -13,6 +14,9 @@ export default {
}, },
}, },
extend: { extend: {
fontFamily: {
sans: ['Geist', ...defaultTheme.fontFamily.sans],
},
colors: { colors: {
border: 'hsl(var(--border))', border: 'hsl(var(--border))',
input: 'hsl(var(--input))', input: 'hsl(var(--input))',

View File

@ -48,6 +48,6 @@
"commit-msg": "pnpm commitlint --edit ${1}" "commit-msg": "pnpm commitlint --edit ${1}"
}, },
"lint-staged": { "lint-staged": {
"*": "eslint --fix" "*": "eslint --fix --ignore-path .gitignore --ignore-pattern '*.ttf' --ignore-pattern '*.woff' --ignore-pattern '*.woff2'"
} }
} }