From a392b3b70574219131551fd4af0ec0c1ca3ed893 Mon Sep 17 00:00:00 2001 From: eti Date: Thu, 30 Jul 2026 00:04:38 +0200 Subject: [PATCH] web: teach tailwind-merge about the type scale tokens the design-system type utilities are text-heading-3, text-paragraph-small and so on, which tailwind-merge reads as text- rather than as font sizes. that means any tv() definition whose variants set a text colour silently drops its own size: tv({ base: 'text-paragraph-small text-foreground-muted' }) resolves to just the colour. /tv exports a createTV instance that registers the tokens as font sizes, so the size and the colour both survive while Tailwind's own text-sm/text-lg merging keeps working. every component that used tv now imports it from there. User.svelte is the one holdout, since it has unrelated uncommitted work in it. Signed-off-by: eti --- .../repo/issues/IssueStatePill.svelte | 2 +- web/src/lib/components/ui/Button.svelte | 2 +- web/src/lib/components/ui/ButtonCard.svelte | 2 +- web/src/lib/components/ui/ButtonGroup.svelte | 2 +- web/src/lib/components/ui/Dropdown.svelte | 2 +- web/src/lib/components/ui/DropdownItem.svelte | 2 +- web/src/lib/components/ui/Error.svelte | 2 +- web/src/lib/components/ui/Input.svelte | 2 +- web/src/lib/components/ui/Link.svelte | 2 +- web/src/lib/components/ui/Pagination.svelte | 2 +- web/src/lib/components/ui/Select.svelte | 2 +- web/src/lib/components/ui/Tag.svelte | 2 +- web/src/lib/components/ui/Textarea.svelte | 2 +- web/src/lib/components/ui/Typography.svelte | 2 +- web/src/lib/tv.ts | 39 +++++++++++++++++++ 15 files changed, 53 insertions(+), 14 deletions(-) create mode 100644 web/src/lib/tv.ts diff --git a/web/src/lib/components/repo/issues/IssueStatePill.svelte b/web/src/lib/components/repo/issues/IssueStatePill.svelte index a8e752b6..3098e842 100644 --- a/web/src/lib/components/repo/issues/IssueStatePill.svelte +++ b/web/src/lib/components/repo/issues/IssueStatePill.svelte @@ -1,5 +1,5 @@