upgrade tailwind

* moved to vite plugin for tailwind (it's recommended now)
* removed autoprefixer (v4 uses its own CSS thing now)
* postcss.config.js was used to wire up tailwind and autoprefixer, so
  it's gone
* tailwind.config.ts is gone, because v4 stores config in app.css using
  css variables
* fixed some renamed classes
This commit is contained in:
Markus Unterwaditzer
2026-04-24 01:42:33 +02:00
committed by Brad Warren
parent fe69dd1abf
commit 177262bc1d
15 changed files with 369 additions and 1058 deletions
+20 -3
View File
@@ -1,3 +1,20 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import 'tailwindcss';
@theme {
--color-rayhunter-blue: #4e4eb1;
--color-rayhunter-dark-blue: #3f3da0;
--color-rayhunter-green: #94ea18;
}
/* Preserve Tailwind v3's default border / divide color (gray-200) so the
* v4 upgrade does not visually change every bare `border` / `divide-x` in
* the codebase. Without this, those utilities use `currentColor` in v4. */
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}