Skip to content

feat: migrate to Tailwind CSS v4 - #32

Merged
samuelsonbrito merged 1 commit into
mainfrom
feat/tailwind-v4
Jul 25, 2026
Merged

feat: migrate to Tailwind CSS v4#32
samuelsonbrito merged 1 commit into
mainfrom
feat/tailwind-v4

Conversation

@samuelsonbrito

Copy link
Copy Markdown
Contributor

Summary

  • Executa o plano de docs/tailwind-v4-migration.md (docs: Tailwind CSS v4 migration plan #31): instala @tailwindcss/postcss, adiciona .postcssrc.json apontando pra ele, troca @tailwind base/components/utilities por @import "tailwindcss" em src/styles.css, e usa @config "../tailwind.config.js" como ponte pra manter darkMode: "class" e o content globbing existentes.
  • Remove autoprefixer (o v4 já faz vendor prefixing internamente).
  • Substitui o PR do Dependabot deps: bump tailwindcss from 3.4.1 to 4.3.3 #22 (que quebrava o build direto).

Test plan

  • npm run build -- --configuration production passa.
  • npm test (7/7 suites) passa.
  • Verificado visualmente via ng serve nos modos claro e escuro — layout, cores, cards e hover states idênticos ao antes, sem erros no console.

Follows docs/tailwind-v4-migration.md: installs @tailwindcss/postcss
and points Angular's PostCSS pipeline at it via .postcssrc.json, swaps
the @tailwind base/components/utilities directives in styles.css for
@import "tailwindcss", and bridges the existing tailwind.config.js
(darkMode: "class", content globs) via @config so nothing else needs
to change. Drops autoprefixer, which v4 now handles internally.

Verified with a production build, the full test suite, and a visual
check of the dev server in both light and dark mode.
@samuelsonbrito
samuelsonbrito merged commit f9cf7cb into main Jul 25, 2026
2 checks passed
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