Skip to content

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

Open
MaxGhenis wants to merge 2 commits intomainfrom
upgrade-next-16-tw4
Open

Upgrade to Next.js 16 + React 19 + Tailwind CSS 4#2
MaxGhenis wants to merge 2 commits intomainfrom
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>
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