163-tailwind-v4-upgrade #166

Closed
priyanshu_bharti wants to merge 3 commits from priyanshu_bharti/flotilla:163-tailwind-v4-upgrade into dev
Contributor

PR description

Closes #163

This PR upgrades the project to Tailwind CSS v4 and updates the related styling stack to keep the UI behavior consistent.

What changed

Upgraded Tailwind CSS from v3 to v4.
Updated DaisyUI to v5 for Tailwind v4 compatibility.
Switched PostCSS integration to the new Tailwind v4 plugin setup.
Migrated global style/config patterns required by Tailwind v4.
Updated utility class usage across components for v4 compatibility.

Validation done

Lint passed.
Type check passed with zero errors/warnings.
Production build passed.
Local dev run verified.
Scope note

No intentional feature change.
Changes are focused on migration and compatibility cleanup only.

image.png

No intentional UI changes, visual sanity check only.

## PR description Closes #163 This PR upgrades the project to Tailwind CSS v4 and updates the related styling stack to keep the UI behavior consistent. ## What changed Upgraded Tailwind CSS from v3 to v4. Updated DaisyUI to v5 for Tailwind v4 compatibility. Switched PostCSS integration to the new Tailwind v4 plugin setup. Migrated global style/config patterns required by Tailwind v4. Updated utility class usage across components for v4 compatibility. ## Validation done Lint passed. Type check passed with zero errors/warnings. Production build passed. Local dev run verified. Scope note No intentional feature change. Changes are focused on migration and compatibility cleanup only. ![image.png](/attachments/52b069bd-0b4d-4bbb-973a-4c24baf5c151) No intentional UI changes, visual sanity check only.
Owner

Go ahead and rebase and fix conflicts.

Go ahead and rebase and fix conflicts.
priyanshu_bharti added 3 commits 2026-04-07 18:14:57 +00:00
priyanshu_bharti force-pushed 163-tailwind-v4-upgrade from 6722d5717f to 212a962fba 2026-04-07 18:14:57 +00:00 Compare
hodlbod reviewed 2026-04-07 19:47:20 +00:00
@@ -102,0 +106,4 @@
padding-top: var(--sait);
padding-right: var(--sair);
padding-bottom: var(--saib);
padding-left: var(--sail);
Owner

Why switch away from @apply here?

Why switch away from `@apply` here?
Author
Contributor

Hii @hodlbod
Tried reverting this block back to @apply, but Tailwind v4 fails with Cannot apply unknown utility class py-sai during build, so I kept explicit safe-area declarations here to keep the build stable.

The reason is Tailwind v4 fundamentally changed how @apply works. It can no longer apply custom CSS classes (like .py-sai) that are just written in standard CSS syntax inside a file. In v4, @apply is strictly meant for built-in Tailwind utilities (like bg-red-500) or utilities explicitly registered via the new v4 @utility directive.

Hii @hodlbod Tried reverting this block back to @apply, but Tailwind v4 fails with Cannot apply unknown utility class py-sai during build, so I kept explicit safe-area declarations here to keep the build stable. The reason is Tailwind v4 fundamentally changed how @apply works. It can no longer apply custom CSS classes (like .py-sai) that are just written in standard CSS syntax inside a file. In v4, @apply is strictly meant for built-in Tailwind utilities (like bg-red-500) or utilities explicitly registered via the new v4 @utility directive.
priyanshu_bharti marked this conversation as resolved
priyanshu_bharti requested review from hodlbod 2026-04-07 20:46:25 +00:00
Owner

Thanks for doing this, I had enough questions I went ahead and ran the migration myself (daisy apparently changed the default dark theme; I also wanted to migrate the important stuff as well). See 8e2dd8b2

Thanks for doing this, I had enough questions I went ahead and ran the migration myself (daisy apparently changed the default dark theme; I also wanted to migrate the important stuff as well). See 8e2dd8b2
hodlbod closed this pull request 2026-04-07 22:33:21 +00:00

Pull request closed

Sign in to join this conversation.