Upgrade to Next.js 16 + React 19 + Tailwind CSS 4#2
Open
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>
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