Skip to content

Fix demo site styling on Vercel#12

Merged
anth-volk merged 1 commit intomainfrom
fix-demo-css-source
Mar 17, 2026
Merged

Fix demo site styling on Vercel#12
anth-volk merged 1 commit intomainfrom
fix-demo-css-source

Conversation

@anth-volk
Copy link
Contributor

Fixes #11

Summary

  • Add @source "../src/**/*.{ts,tsx}" to demo.css so Tailwind scans source components directly
  • The existing @source in tokens.css points to dist/ which only exists after a library build, not on Vercel

Test plan

  • bun run dev:demo still renders correctly locally
  • npx vite build --config vite.demo.config.ts produces 67KB+ CSS (not 3.5KB)
  • Vercel deploy at https://policyengine-ui-kit.vercel.app/ shows styled components

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-ui-kit Ready Ready Preview, Comment Mar 17, 2026 5:07pm

Request Review

@anth-volk anth-volk marked this pull request as ready for review March 17, 2026 17:09
@anth-volk anth-volk merged commit a0e1978 into main Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Demo site has no styling on Vercel

1 participant