Revert tailwindcss v4 bump (#62) — restore production map rendering#73
Merged
wmtorode merged 1 commit intoMay 18, 2026
Merged
Conversation
8 tasks
Grol-DBT
added a commit
that referenced
this pull request
May 18, 2026
Tailwind v4 migration + CSS-output CI gate (follow-up to #73)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reverts the
tailwindcss3.4.19 → 4.3.0upgrade merged in #62. Production at https://www.roguewar.org/warmap is currently rendering as a black page because Tailwind utilities are no longer being emitted into the bundle, which collapses the Konva<Stage>container to 0×0.Why this is a hotfix, not a forward migration
Tailwind v4 is a major release with breaking syntax that the codebase still uses in v3 form:
src/index.cssuses@tailwind base; @tailwind components; @tailwind utilities;— v4 requires@import "tailwindcss";.postcss.config.jsusestailwindcss: {}as the PostCSS plugin — v4 split that into a separate@tailwindcss/postcsspackage.@material-tailwind/react@^2.1.10is a v3-era component lib and is unlikely to work against v4 without changes.With v4 installed against v3 syntax, PostCSS silently produces a stylesheet with no Tailwind utilities. CI (
.github/workflows/test.yml) runs lint + typecheck + vitest only — no CSS-output check — so the regression shipped silently.A proper v4 migration should be a separate, audited PR (CSS imports, postcss plugin swap,
@material-tailwind/reactcompatibility check, visual regression).What this PR changes
Single revert commit. Only
package.jsonandyarn.lockchange —tailwindcssreturns to^3.4.12.Test plan
yarn install && yarn buildsucceeds locally.yarn testpasses.