Skip to content

chore(web): migrate to Tailwind CSS v4 #85

Open

Description

@vianbas

Dependabot's #75 bumps tailwindcss from 3.4 to 4.x but cannot migrate the configuration, so vite build fails. Reproduced on its head:

[postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin … install @tailwindcss/postcss

Scope

  • Move to Tailwind v4 with the official @tailwindcss/upgrade tool, then review its output by hand:
    • The PostCSS plugin becomes @tailwindcss/postcss, and autoprefixer is dropped (v4 handles vendor prefixes itself).
    • @tailwind base/components/utilities becomes @import "tailwindcss".
    • The tailwind.config.ts theme moves to CSS-first @theme tokens, keeping the shadcn-compatible CSS variables and the .dark class strategy.
    • Utilities renamed in v4 are updated (e.g. shadow-sm, rounded-sm, outline-none), and the v3 defaults for border and ring colour are preserved.
    • components.json is kept consistent.
  • No visual change intended. Before/after screenshots of Login, Dashboard, Alerts and Rules are compared.

Acceptance criteria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions