From 2810efbdc608f27e8ecc33ae35f921e0d12d576d Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Tue, 17 Mar 2026 18:07:26 +0100 Subject: [PATCH] Fix demo CSS: add @source for source components on Vercel The existing @source in tokens.css points to dist/ which doesn't exist on Vercel (only the demo build runs, not the library build). Co-Authored-By: Claude Opus 4.6 --- changelog.d/fix-demo-source.fixed.md | 1 + demo/demo.css | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 changelog.d/fix-demo-source.fixed.md diff --git a/changelog.d/fix-demo-source.fixed.md b/changelog.d/fix-demo-source.fixed.md new file mode 100644 index 0000000..74917fe --- /dev/null +++ b/changelog.d/fix-demo-source.fixed.md @@ -0,0 +1 @@ +Fix demo site styling on Vercel by scanning source components for Tailwind classes diff --git a/demo/demo.css b/demo/demo.css index 153f872..f2db4a2 100644 --- a/demo/demo.css +++ b/demo/demo.css @@ -1,2 +1,5 @@ @import "tailwindcss"; @import "../src/theme/tokens.css"; + +/* Scan source components so Tailwind generates utility classes for them */ +@source "../src/**/*.{ts,tsx}";