tailwindcss/packages
Jordan Pittman 79f21a8f45
Prevent not-* from being used with variants with multiple sibling rules (#15689)
Variants like this can't be easily negated by our current system:

```css
@custom-variant dark {
  &.is-dark {
    @slot;
  }
  @media (prefers-color-scheme: dark) {
    @slot;
  }
}
```

Right now it produces the following CSS which is logically incorrect:

```css
.utility-name {
  &:not(.is-dark) {
    /* ... */
  }

  @media not (prefers-color-scheme: dark) {
    /* ... */
  }
}
```

The correct CSS is this which requires moving things around:
```css
.utility-name {
  @media not (prefers-color-scheme: dark) {
    &:not(.is-dark) {
      /* ... */
    }
  }
}
```

We're opting to disable this instead of generating incorrect CSS for
now. I'd like to bring this back in the future for simpler cases in the
future.
2025-01-21 10:38:32 -05:00
..
@tailwindcss-browser Update h3 1.13.0 → 1.13.1 (patch) (#15661) 2025-01-20 15:39:26 +01:00
@tailwindcss-cli Write to stdout when --output is omitted (#15656) 2025-01-17 15:23:34 +00:00
@tailwindcss-node Prepare v4.0.0-beta.9 release (#15583) 2025-01-09 17:04:34 +00:00
@tailwindcss-postcss Remove @property fallbacks for Firefox (#15622) 2025-01-14 15:51:44 +01:00
@tailwindcss-standalone Upgrade lightningcss to 1.29.1 in standalone package (#15641) 2025-01-16 16:06:08 +01:00
@tailwindcss-upgrade Implement @variant (#15663) 2025-01-21 10:20:35 -05:00
@tailwindcss-vite Prepare v4.0.0-beta.9 release (#15583) 2025-01-09 17:04:34 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Prevent not-* from being used with variants with multiple sibling rules (#15689) 2025-01-21 10:38:32 -05:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00