Upgrade to Next.js 16 + React 19 + Tailwind CSS 4#2
Closed
MaxGhenis wants to merge 2 commits into
Closed
Conversation
- next ^14 → ^16, react/react-dom ^18 → ^19, tailwindcss ^3 → ^4 - @types/react and @types/react-dom → ^19 - Remove autoprefixer and postcss (built into Tailwind 4) - Delete tailwind.config.ts and postcss.config.js - Migrate globals.css: replace @tailwind directives with @import "tailwindcss" - Add @theme block with PE design system colors and fonts - Convert @layer utilities/components to @Utility and plain classes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Import tokens.css in globals.css and reference var(--pe-color-*) in @theme and :root - Replace inline style hex colors with `colors` import from design-system in TSX files - Replace Tailwind arbitrary hex classes (bg-[#hex], text-[#hex]) with theme classes - Add @policyengine/design-system as dependency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
|
Closing as stale (2 months without updates and likely conflicts with main). The framework upgrade goal here — Next 14 → 16, React 18 → 19, Tailwind 3 → 4 — is still valid and overlaps with the broader Next-modernization sweep happening across the org (see policyengine-ui-kit#28 → 0.8.0+0.9.0 and the consumer rollout). I'll re-open a fresh PR on top of current main when this repo's turn comes up. If you want it sooner, ping me. |
7 tasks
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
autoprefixerandpostcssdevDependencies (built into TW4)tailwind.config.tsandpostcss.config.jsglobals.cssto TW4 format:@import "tailwindcss"+@theme {}block with PE design tokens@layer utilitiesto@utilitydirectives per TW4 specTest plan
bun run buildpasses with zero errors