fix: add Tailwind v4 import directive to index.css

Critical bug fix (P0): Tailwind CSS classes were not being compiled.

Root Cause:
- Tailwind v4 requires explicit @import tailwindcss in CSS file
- File was missing this directive, causing all utility classes to be ignored
- CSS bundle was only 4KB instead of expected 30KB+

Fix:
- Added @import tailwindcss; at the top of src/index.css
- Verified build now generates 30KB+ CSS bundle with all utility classes
- Confirmed classes like text-3xl, bg-indigo-600, max-w-7xl are present

Safety First:
- Build passes successfully
- No breaking changes to existing styles
- Incremental fix before UI refactoring

Refs: Tailwind v4 migration guide
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-03 15:43:40 +02:00
parent 976dd95dc8
commit 6b5261f760

View File

@@ -1,3 +1,5 @@
@import "tailwindcss";
:root {
--text: #6b6375;
--text-h: #08060d;