Skip to content
Prev Previous commit
Next Next commit
Update packages/tailwindcss/src/utilities.ts
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
  • Loading branch information
philipp-spiess and RobinMalfait committed Sep 11, 2025
commit a8409d5af9e2df8d4bf332a5e4e12dd7d4e09e9d
7 changes: 2 additions & 5 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,9 @@ export function createUtilities(theme: Theme) {
if (!value?.includes('/') && candidate.modifier) return
}

if (value === null && !negative && desc.staticValues) {
if (value === null && !negative && desc.staticValues && !candidate.modifier) {
let fallback = desc.staticValues[candidate.value.value]
if (fallback) {
if (candidate.modifier) return
return fallback
}
if (fallback) return fallback
}
}

Expand Down