Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix Safari devtools rendering issue due to `color-mix` fallback ([#19069](https://github.com/tailwindlabs/tailwindcss/pull/19069))
- Suppress Lightning CSS warnings about `:deep`, `:slotted` and `:global` ([#19094](https://github.com/tailwindlabs/tailwindcss/pull/19094))

## [4.1.14] - 2025-10-01

Expand Down
11 changes: 11 additions & 0 deletions packages/@tailwindcss-node/src/optimize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ export function optimize(
let result = optimize(Buffer.from(input), map)
map = result.map?.toString()

result.warnings = result.warnings.filter((warning) => {
// Ignore warnings about unknown pseudo-classes as they are likely caused
// by the use of `:deep()`, `:slotted()`, and `:global()` which are not
// standard CSS but are commonly used in frameworks like Vue.
if (/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(warning.message)) {
return false
}

return true
})

// Because of `errorRecovery: true`, there could be warnings, so let's let the
// user know about them.
if (process.env.NODE_ENV !== 'test' && result.warnings.length > 0) {
Expand Down