vaibhav375 2de1134dc4
fix(projects): precompile sample styles so they render offline (#584)
The three sample projects compiled Tailwind in the browser via the Play
CDN (cdn.tailwindcss.com), so without network they rendered unstyled,
and the CDN logged a "should not be used in production" warning on
every load. healthcare-dashboard also loaded chart.js unversioned from
jsDelivr, so its charts silently disappeared offline.

- Move each inline tailwind.config into tailwind.config.js and ship a
  precompiled, minified styles.css (Tailwind 3.4.19, matching the v3
  Play CDN). projects/build-styles.sh regenerates them.
- Vendor Chart.js 4.6.1 (MIT) as vendor/chart.umd.min.js.

Verified in Chromium at 1440px and 375px: every element's computed
style and bounding box matches the CDN build. Google Fonts are still
loaded remotely; offline they fall back to the declared system fonts.

Refs #573 (item A)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:04:54 +01:00
..