Monorepo for Tangled forked from tangled.org/core

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-<colour> 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 <eti@eti.tf>


Author eti.tf
Committer dawn Date Commit Parent de4f3926 Change ID