Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

improvement(web): switch to upstream Inter and enable disambiguating glyphs (#107)

Croff16486873640b
diff --git a/apps/web/package.json b/apps/web/package.json
index 026cb126..479a4f4d 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -18,7 +18,6 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
- "@fontsource-variable/inter": "^5.2.8",
"@radix-ui/react-checkbox": "^1.3.7",
"@radix-ui/react-context-menu": "^2.3.3",
"@radix-ui/react-dialog": "^1.1.19",
@@ -52,6 +51,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.4.0",
+ "inter-ui": "^4.1.1",
"isomorphic-dompurify": "^3.19.0",
"lowlight": "^3.3.0",
"lucide-react": "^0.474.0",
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index 6a190aad..e9b13e95 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -1,12 +1,16 @@
@import 'tailwindcss';
@import 'tw-animate-css';
-@import '@fontsource-variable/inter';
+/* The upstream Inter build, not the Fontsource one: Google Fonts strips the
+ character variants, and cv05/cv08/zero are what make l, I, 1 and 0 tell
+ apart at the 12–14px this UI is mostly set in. It also carries the opsz
+ axis, so small text gets the wider-spaced optical master. */
+@import 'inter-ui/inter-variable.css';
@custom-variant dark (&:is(.dark *));
@theme inline {
--font-heading: var(--font-sans);
- --font-sans: 'Inter Variable', sans-serif;
+ --font-sans: 'InterVariable', sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
@@ -255,6 +259,10 @@
}
html {
@apply font-sans;
+ font-feature-settings:
+ 'cv05' 1,
+ 'cv08' 1,
+ 'zero' 1;
}
}
diff --git a/bun.lock b/bun.lock
index 3cf7bd09..c4e26630 100644
--- a/bun.lock
+++ b/bun.lock
@@ -67,7 +67,6 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
- "@fontsource-variable/inter": "^5.2.8",
"@radix-ui/react-checkbox": "^1.3.7",
"@radix-ui/react-context-menu": "^2.3.3",
"@radix-ui/react-dialog": "^1.1.19",
@@ -101,6 +100,7 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.4.0",
+ "inter-ui": "^4.1.1",
"isomorphic-dompurify": "^3.19.0",
"lowlight": "^3.3.0",
"lucide-react": "^0.474.0",
@@ -495,8 +495,6 @@
"@floating-ui/vue": ["@floating-ui/[email protected]", "", { "dependencies": { "@floating-ui/dom": "^1.7.4", "@floating-ui/utils": "^0.2.10", "vue-demi": ">=0.13.0" } }, "sha512-BfNqNW6KA83Nexspgb9DZuz578R7HT8MZw1CfK9I6Ah4QReNWEJsXWHN+SdmOVLNGmTPDi+fDT535Df5PzMLbQ=="],
- "@fontsource-variable/inter": ["@fontsource-variable/[email protected]", "", {}, "sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ=="],
-
"@grammyjs/types": ["@grammyjs/[email protected]", "", {}, "sha512-Z8lDLTvOlo12e5Vnly/vQh3JC9ppaitS1dGZ3w068gNitOd/y8tTSiib+Xm38aBGbtYGmUZwOc6afYrLs2CSTg=="],
"@headlessui/tailwindcss": ["@headlessui/[email protected]", "", { "peerDependencies": { "tailwindcss": "^3.0 || ^4.0" } }, "sha512-xNe42KjdyA4kfUKLLPGzME9zkH7Q3rOZ5huFihWNWOQFxnItxPB3/67yBI8/qBfY8nwBRx5GHn4VprsoluVMGw=="],
@@ -1673,6 +1671,8 @@
"inherits": ["[email protected]", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],
+ "inter-ui": ["[email protected]", "", {}, "sha512-451h0J29HyOmA+JXgSi/6M12tL7ZCZ8arYKZUXiOXTJpJbAKqJvFh3k5SiV3x7tKe0C0KyrKUUiQIvvZ2PQDcA=="],
+
"internal-slot": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.2", "side-channel": "^1.1.0" } }, "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw=="],
"internmap": ["[email protected]", "", {}, "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg=="],