Skip to content

Commit 0dce342

Browse files
Add change log
1 parent 2e4430f commit 0dce342

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- _Experimental_: Add `user-valid` and `user-invalid` variants ([#12370](https://github.com/tailwindlabs/tailwindcss/pull/12370))
1313

14+
### Changed
15+
16+
- Don't include theme variables that aren't used in compiled CSS ([#16211](https://github.com/tailwindlabs/tailwindcss/pull/16211), [#16676](https://github.com/tailwindlabs/tailwindcss/pull/16676))
17+
1418
### Fixed
1519

1620
- Remove invalid `!important` on CSS variable declarations ([#16668](https://github.com/tailwindlabs/tailwindcss/pull/16668))
@@ -43,9 +47,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4347
### Fixed
4448

4549
- Revert change to no longer include theme variables that aren't used in compiled CSS ([#16403](https://github.com/tailwindlabs/tailwindcss/pull/16403))
46-
47-
### Fixed
48-
4950
- Upgrade: Don't migrate `blur` to `blur-sm` when used with Next.js `<Image placeholder="blur" />` ([#16405](https://github.com/tailwindlabs/tailwindcss/pull/16405))
5051

5152
## [4.0.5] - 2025-02-08

packages/tailwindcss/src/ast.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,13 @@ export function optimizeAst(
490490
continue next
491491
}
492492
}
493+
}
493494

494-
// Remove unused keyframes
495-
for (let keyframe of keyframes) {
496-
if (!usedKeyframeNames.has(keyframe.params)) {
497-
let idx = atRoots.indexOf(keyframe)
498-
atRoots.splice(idx, 1)
499-
}
495+
// Remove unused keyframes
496+
for (let keyframe of keyframes) {
497+
if (!usedKeyframeNames.has(keyframe.params)) {
498+
let idx = atRoots.indexOf(keyframe)
499+
atRoots.splice(idx, 1)
500500
}
501501
}
502502

0 commit comments

Comments
 (0)