The tools and the machineL-GATWAI
shadcn's `cn` reads a custom font size like `text-caption` as a colour and silently drops it
- What happened
- in Node, cn("text-caption", "text-muted-foreground") → "text-muted-foreground", cn("text-kpi", "text-positive-text", "text-display") → "text-positive-text text-display" and cn("p-card", "p-4") → "p-card p-4" (both kept, CSS order decides)…
- Rule
- If a custom --text- size vanishes when merged with a text colour, register it with createCn from "cn/config", and alias "cn" in tsconfig paths so shadcn's components use it too.
Meridian — Finance Dashboard Template for Next.js & shadcn/ui (Cash Flow, Live Investments, Invoicing) · Ramin Valadan ·