tailwindcss/packages
Philipp Spiess 9ef4aaa7d9
Create variants for aria, supports, and data JS config theme keys (#14407)
This PR adds support for the `aria`, `supports`, and `data` properties
found in JS config options. In v3, you could extend the theme to add
more variants by using an object syntax like this:

```ts
{
   theme: {
    extend: {
      aria: {
        polite: 'live="polite"',
      },
      supports: {
        'child-combinator': 'h2 > p',
      },
      data: {
        checked: 'ui~="checked"',
      },
    },
  }
}
```

Since we no longer rely on theme variables for these variants, the way
to make this work is by adding custom variants for each of these
manually added variants.

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2024-09-17 17:09:42 +02:00
..
@tailwindcss-cli Release v4.0.0-alpha.24 (#14395) 2024-09-12 16:10:56 +02:00
@tailwindcss-node Release v4.0.0-alpha.24 (#14395) 2024-09-12 16:10:56 +02:00
@tailwindcss-postcss Release v4.0.0-alpha.24 (#14395) 2024-09-12 16:10:56 +02:00
@tailwindcss-standalone Release v4.0.0-alpha.24 (#14395) 2024-09-12 16:10:56 +02:00
@tailwindcss-vite Release v4.0.0-alpha.24 (#14395) 2024-09-12 16:10:56 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
internal-postcss-fix-relative-paths Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
tailwindcss Create variants for aria, supports, and data JS config theme keys (#14407) 2024-09-17 17:09:42 +02:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00