Repository navigation
Conversation
- tailwindcss 3.4 -> 4.3 via @tailwindcss/upgrade; the PostCSS plugin moves to @tailwindcss/postcss and autoprefixer is dropped (v4 handles vendor prefixes). - tailwind.config.ts is replaced by CSS-first @theme tokens in src/index.css; the shadcn CSS variables and the .dark class variant are kept, and components.json no longer points at a config file. - Renamed utilities: shadow-sm -> shadow-xs, outline-none -> outline-hidden. - v3 parity in base styles: border-border on pseudo-elements, a pointer cursor on enabled buttons, and gray-400 placeholders. - Login labels become block: v4's space-y-* puts margin-bottom on all but the last child, which inline labels ignore. Closes #85 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xzt3HRqVzoHnEyEUbTT3h9
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
This migrates the web app from Tailwind CSS 3.4 to 4.3. Dependabot's #75 bumps the package but cannot migrate the configuration, so its build fails:
This PR does the migration. Merging it makes #75 redundant, so #75 can be closed.
Closes #85
Architecture summary
@tailwindcss/upgradedid most of the work, and I reviewed its output by hand.postcss.config.jsnow uses@tailwindcss/postcss.autoprefixeris removed because v4 adds vendor prefixes itself.src/index.css,@tailwind base/components/utilitiesis replaced by@import "tailwindcss".tailwind.config.tsis replaced by CSS-first@themetokens that map onto the existing shadcnhsl(var(--…))variables, so:rootand.darkare unchanged.@custom-variant dark (&:is(.dark *)).shadow-smbecomesshadow-xs(chart tooltip), andoutline-nonebecomesoutline-hidden(button).@apply border-borderrule, now extended to pseudo-elements.gray-400placeholders (v4 usescurrentColorat 50%).block. In v4,space-y-*putsmargin-bottomon every child except the last, and inline<label>elements ignore vertical margins. Without this change the label-to-input gap disappeared.components.jsonno longer points at a Tailwind config file ("config": "").Security considerations
npm auditon this branch shows only the brace-expansion advisory, which already exists onmainand is fixed by Dependabot chore(deps): bump brace-expansion from 5.0.9 to 5.0.13 in /apps/web #83.Testing evidence
Visual regression check. I captured screenshots in headless Chromium against the real API and a fixed synthetic database: Login, Dashboard, Alerts and Rules as admin, at 1280×900 and 390×844, plus the open mobile menu. I compared v3 (
main) and v4 (this branch) pixel by pixel:green-600goes fromrgb(22,163,74)torgb(0,166,62).text-sm's own 20px. The label-to-input gap is the same as before. The placeholder grey differs slightly (OKLCH palette).There are no layout breaks, no missing borders and no changes to colour tokens. All shadcn token colours are identical.
Known limitations
Follow-up issues
Checklist
main; this PR targetsmain.git diff --checkis clean.