Skip to content

Upgrade to Next.js 16 + React 19 + Tailwind CSS 4#2

Closed
MaxGhenis wants to merge 2 commits into
mainfrom
upgrade-next-16-tw4
Closed

Upgrade to Next.js 16 + React 19 + Tailwind CSS 4#2
MaxGhenis wants to merge 2 commits into
mainfrom
upgrade-next-16-tw4

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades Next.js 14 → 16, React 18 → 19, Tailwind CSS 3 → 4
  • Removes autoprefixer and postcss devDependencies (built into TW4)
  • Deletes tailwind.config.ts and postcss.config.js
  • Migrates globals.css to TW4 format: @import "tailwindcss" + @theme {} block with PE design tokens
  • Converts @layer utilities to @utility directives per TW4 spec
  • Updates CLAUDE.md to reflect new stack versions

Test plan

  • bun run build passes with zero errors
  • Verify slides render correctly on Vercel preview deploy
  • Spot-check PE theme colors (teal, amber, dark) and fonts (Inter, JetBrains Mono)

- 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>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-slides Ready Ready Preview, Comment Mar 7, 2026 1:51pm

Request Review

- 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>
@MaxGhenis
Copy link
Copy Markdown
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.

@MaxGhenis MaxGhenis closed this May 9, 2026
@MaxGhenis MaxGhenis deleted the upgrade-next-16-tw4 branch May 9, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant