tailwindcss/packages
Hugo van Rijswijk 9fef2bde50
Add :host rule to @theme layer (#15975)
Resolves #15799
Resolves #14478
Part-of #15005

Adds a `:host` selector for the `@theme` layer. This is necessary for
the `@theme` layer to work correctly in shadow DOM.

Also updates the snapshots for the tests that were affected by this
change (in a separate commit).

## Test plan

Tested via the Vite playground:

<img width="1121" alt="Screenshot 2025-01-29 at 15 06 49"
src="https://github.com/user-attachments/assets/a7908135-5ff8-472f-a053-d2c6d5c81e1b"
/>

Additionally made sure that `@property` defaults also work across
Firefox, Chrome, and Safari (the `@property` definition from the root is
pulled in) and added a UI spec.

---------

Co-authored-by: Philipp Spiess <hello@philippspiess.com>
2025-01-29 17:20:29 +01:00
..
@tailwindcss-browser Ensure browser package does not pollute global namespace (#15978) 2025-01-28 16:58:08 +01:00
@tailwindcss-cli Prepare v4.0.0 release (#15693) 2025-01-21 20:58:59 +00:00
@tailwindcss-node Prepare v4.0.0 release (#15693) 2025-01-21 20:58:59 +00:00
@tailwindcss-postcss Add :host rule to @theme layer (#15975) 2025-01-29 17:20:29 +01:00
@tailwindcss-standalone Revert "Update bun 1.1.43 → 1.2.0 (minor) (#15922)" 2025-01-28 17:03:17 +01:00
@tailwindcss-upgrade Correctly migrate leading-* classes (#16004) 2025-01-29 15:22:13 +01:00
@tailwindcss-vite Prepare v4.0.0 release (#15693) 2025-01-21 20:58:59 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Add :host rule to @theme layer (#15975) 2025-01-29 17:20:29 +01:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00