Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Improve font legibility

François Zaninottobc922eaa22aa
diff --git a/package-lock.json b/package-lock.json
index a51746a0..e31dcdca 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,7 @@
"name": "atomic-crm",
"version": "0.1.0",
"dependencies": {
+ "@fontsource-variable/inter": "^5.2.8",
"@hello-pangea/dnd": "^18.0.1",
"@nivo/bar": "^0.99.0",
"@radix-ui/react-accordion": "^1.2.12",
@@ -2629,6 +2630,15 @@
"integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",
"license": "MIT"
},
+ "node_modules/@fontsource-variable/inter": {
+ "version": "5.2.8",
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.2.8.tgz",
+ "integrity": "sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
"node_modules/@hello-pangea/dnd": {
"version": "18.0.1",
"resolved": "https://registry.npmjs.org/@hello-pangea/dnd/-/dnd-18.0.1.tgz",
diff --git a/package.json b/package.json
index da3f0f52..af6ac87a 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"prepare": "husky"
},
"dependencies": {
+ "@fontsource-variable/inter": "^5.2.8",
"@hello-pangea/dnd": "^18.0.1",
"@nivo/bar": "^0.99.0",
"@radix-ui/react-accordion": "^1.2.12",
@@ -94,9 +95,9 @@
"zod": "^4.1.12"
},
"devDependencies": {
- "@storybook/react-vite": "^9.1.19",
"@eslint/js": "^9.22.0",
"@inquirer/prompts": "^8.2.0",
+ "@storybook/react-vite": "^9.1.19",
"@types/dompurify": "^3.0.5",
"@types/faker": "^5.5.9",
"@types/jsonexport": "^3.0.5",
@@ -117,9 +118,9 @@
"glob": "^11.1.0",
"globals": "^16.3.0",
"husky": "^9.1.7",
+ "playwright": "^1.55.0",
"prettier": "^3.6.2",
"shadcn": "^3.5.0",
- "playwright": "^1.55.0",
"storybook": "^9.1.19",
"typescript": "~5.8.3",
"typescript-eslint": "^8.35.1",
diff --git a/src/index.css b/src/index.css
index e5a76d4d..e3d464a3 100644
--- a/src/index.css
+++ b/src/index.css
@@ -1,9 +1,11 @@
@import "tailwindcss";
@import "tw-animate-css";
+@import "@fontsource-variable/inter";
@custom-variant dark (&:is(.dark *));
@theme inline {
+ --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
@@ -177,6 +179,10 @@ input[type="time"] {
@apply border-border outline-ring/50;
}
body {
- @apply bg-background text-foreground;
+ @apply bg-background text-foreground font-sans;
}
}
+
+body {
+ font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
+}