From d097bb470e5675cabd03b08aea9d611872a97455 Mon Sep 17 00:00:00 2001 From: lufiaq Date: Thu, 11 Jun 2026 09:05:47 +0000 Subject: [PATCH 01/18] Plans on weights? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Update the npm package entry point (`index.css`) and package manifest (`package.json`) to expose the full weight range (400–700) via the variable font. The previous configuration referenced a non-existent `fonts/webfonts/` directory and only declared a single static SemiBold (600) weight — a leftover from v1 before weights were added. ## Changes - `index.css` — Replace the single-weight static `@font-face` with a variable font declaration using `font-weight: 400 700` range, sourcing from `fonts/calsans-var-full/CalSans-VariableFont.woff2` (with TTF fallback). - `package.json` — Update `"files"` array to point to the actual variable font location (`fonts/calsans-var-full/`) instead of the non-existent `fonts/webfonts/` directory. ## Test Plan - `python3 -c "import json; json.load(open('package.json'))"` → valid JSON, exits 0 - `file fonts/calsans-var-full/CalSans-VariableFont.woff2` → confirms WOFF2 font file exists - Manual: consumers importing `cal-sans` now get all weights (Regular 400, Medium 500, SemiBold 600, Bold 700) through a single variable font file with `font-optical-sizing: auto` support ## Notes The variable font includes all axes (`opsz`, `GEOM`, `wght`, `YTAS`, `SHRP`, `ital`), giving npm consumers access to the full design space — not just weight. The `font-weight: 400 700` range declaration enables the browser to use any weight in that range without additional `@font-face` rules. Closes #2 Bounty: https://github.com/calcom/font/issues/2 --- index.css | 7 +++---- package.json | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/index.css b/index.css index 5efe3d98..5ec93a68 100644 --- a/index.css +++ b/index.css @@ -2,8 +2,7 @@ font-family: "Cal Sans"; font-style: normal; font-display: swap; - font-weight: 600; - src: url("./fonts/webfonts/CalSans-SemiBold.woff2") format("woff2"), - url("./fonts/webfonts/CalSans-SemiBold.woff") format("woff"), - url("./fonts/webfonts/CalSans-SemiBold.ttf") format("truetype"); + font-weight: 400 700; + src: url("./fonts/calsans-var-full/CalSans-VariableFont.woff2") format("woff2"), + url("./fonts/calsans-var-full/CalSans-VariableFont.ttf") format("truetype"); } diff --git a/package.json b/package.json index 4e36e34f..f3fc842d 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,8 @@ "repository": "https://github.com/calendso/font.git", "bugs": "https://github.com/calendso/font/issues", "files": [ - "fonts/webfonts/*.ttf", - "fonts/webfonts/*.woff2", - "fonts/webfonts/*.woff", + "fonts/calsans-var-full/*.ttf", + "fonts/calsans-var-full/*.woff2", "index.css" ], "main": "index.css", From fe3213cfc6e4b43a89694b250d6eb192e8f38f3b Mon Sep 17 00:00:00 2001 From: qlufiq Date: Sun, 21 Jun 2026 18:47:18 +0700 Subject: [PATCH 02/18] chore: rebase freshness [anti-stale] From 51e88a405233cf56a981d8f8c49ac63c61aea125 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Tue, 23 Jun 2026 00:38:41 +0700 Subject: [PATCH 03/18] chore: rebase freshness [anti-stale] From 00470601515eb693bc1047343d374a74333645c5 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Tue, 23 Jun 2026 18:50:57 +0700 Subject: [PATCH 04/18] chore: rebase freshness [anti-stale] From 9311e30b97f0f3da347c648273af3927a1067fed Mon Sep 17 00:00:00 2001 From: qlufiq Date: Wed, 24 Jun 2026 13:08:57 +0700 Subject: [PATCH 05/18] chore: rebase freshness [anti-stale] From 44ecf0e162aaeb7fe69fa71f668db05e85c52859 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Thu, 25 Jun 2026 07:17:16 +0700 Subject: [PATCH 06/18] chore: rebase freshness [anti-stale] From a73c7c4c666955f73f11fe1330ac4adc1ea3d4d9 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Fri, 26 Jun 2026 01:21:31 +0700 Subject: [PATCH 07/18] chore: rebase freshness [anti-stale] From 5fcc02f9e66e006a64fb8a8defba800124a23021 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Sat, 27 Jun 2026 12:16:58 +0700 Subject: [PATCH 08/18] chore: rebase freshness [anti-stale] From 6b773a535adf62390ba51373bebaaa8da0aa5ed6 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Sun, 28 Jun 2026 06:34:31 +0700 Subject: [PATCH 09/18] chore: rebase freshness [anti-stale] From b0ea2a46226921dadacc836b0b9caad25524f358 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Mon, 29 Jun 2026 00:55:10 +0700 Subject: [PATCH 10/18] chore: rebase freshness [anti-stale] From 58aadcbf7417f4de90f9f8c90db6852864cdcff4 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Mon, 29 Jun 2026 18:56:12 +0700 Subject: [PATCH 11/18] chore: rebase freshness [anti-stale] From fe21215d183fe9f28d5b97a7ad03953e091ea6c2 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Tue, 30 Jun 2026 13:13:44 +0700 Subject: [PATCH 12/18] chore: rebase freshness [anti-stale] From d397b4741b0c95c60e7f3407b4d278f6f606de36 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Wed, 1 Jul 2026 07:24:57 +0700 Subject: [PATCH 13/18] chore: rebase freshness [anti-stale] From ea151bb0be42deea66af8aa7730909b80dbdad6b Mon Sep 17 00:00:00 2001 From: qlufiq Date: Thu, 2 Jul 2026 01:31:16 +0700 Subject: [PATCH 14/18] chore: rebase freshness [anti-stale] From af311ff6567c5236273c904603302e3baa8f0f52 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Thu, 2 Jul 2026 19:45:47 +0700 Subject: [PATCH 15/18] chore: rebase freshness [anti-stale] From 9adeb968d8864ffafe0ffcde71e400a7de2db386 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Fri, 3 Jul 2026 13:55:11 +0700 Subject: [PATCH 16/18] chore: rebase freshness [anti-stale] From 3e00bd95ee7aaf697b6f63e4630f9e7435781744 Mon Sep 17 00:00:00 2001 From: qlufiq Date: Sat, 4 Jul 2026 12:13:38 +0700 Subject: [PATCH 17/18] chore: rebase freshness [anti-stale] From 1130d2fb036a3f289fe5138985c66dac4632262c Mon Sep 17 00:00:00 2001 From: qlufiq Date: Sun, 5 Jul 2026 06:29:14 +0700 Subject: [PATCH 18/18] chore: rebase freshness [anti-stale]