Remove some global reset styles in favor of explicit border colors, restore button cursors

This commit is contained in:
Markus Unterwaditzer
2026-04-24 01:56:30 +02:00
committed by Brad Warren
parent 177262bc1d
commit 100d1de04c
5 changed files with 27 additions and 31 deletions
+5 -9
View File
@@ -6,15 +6,11 @@
--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. */
/* v4 dropped the v3 preflight rule that set `cursor: pointer` on buttons.
* Restore it so enabled buttons get the pointer cursor. */
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
button:not(:disabled),
[role='button']:not(:disabled) {
cursor: pointer;
}
}