You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2022. It is now read-only.
@@ -54,6 +60,12 @@ For the full details, [check out the release notes](https://github.com/tailwindl
54
60
55
61
It's important to note that although this is a minor release and there are no breaking changes in the classic engine, **Just-in-Time mode is still in preview and v2.2 introduces a few very small changes that might impact you**, so make sure you read through the [changes and deprecations](https://github.com/tailwindlabs/tailwindcss/releases/tag/v2.2.0#changes-and-deprecations) in the release notes when upgrading.
56
62
63
+
When you're ready to upgrade, just install the latest version from npm and you're off to the races:
@@ -254,7 +266,7 @@ _This feature is only available in [Just-in-Time mode](https://tailwindcss.com/d
254
266
255
267
Instead of using utilities like `bg-opacity-50`, `text-opacity-25`, or `placeholder-opacity-40`, Tailwind CSS v2.2 gives you a new color opacity shorthand you can use to tweak the alpha channel of a color directly in the color utility itself:
256
268
257
-
```diff
269
+
```diff-html
258
270
- <div class="bg-red-500 bg-opacity-25">
259
271
+ <div class="bg-red-500/25">
260
272
```
@@ -363,7 +375,7 @@ Under the hood, this uses a new `screen()` function we've introduced that you ca
363
375
364
376
You probably won't need to use this yourself but it could be helpful if you're ever integrating Tailwind with another tool that understands `@media` but doesn't handle `@screen` properly.
365
377
366
-
```diff
378
+
```diff-css
367
379
- @screen sm { /* ... */ }
368
380
+ @media screen(sm) { /* ... */ }
369
381
```
@@ -421,7 +433,7 @@ _This feature is only available in [Just-in-Time mode](https://tailwindcss.com/d
421
433
422
434
The `transform`, `filter`, and `backdrop-filter` classes are no longer necessary to "enable" their respective set of composable utilities.
@@ -430,7 +442,7 @@ Now those features are automatically enabled any time you use any of the relevan
430
442
431
443
It's important to understand though that because these utilities aren't needed anymore, you can no longer expect transforms and filters to be "dormant" by default. If you were relying on conditionally "activating" transforms or filters by toggling these classes, you will want to make sure you are toggling the sub-utilities themselves instead:
0 commit comments