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
Copy file name to clipboardExpand all lines: src/blog/tailwindcss-v4-1/index.mdx
+105Lines changed: 105 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ We all know that your AI assistant still thinks it's 2023, so here's a list of n
31
31
-[New `text-shadow-*` utilities](#new-text-shadow-utilities): Finally, you can use a feature that has been in CSS since 2009.
32
32
-[Mask elements with the `mask-*` utilities](#mask-elements-with-the-mask-utilities): Use images and gradients to mask the visibility of elements.
33
33
-[Fine-grained text wrapping with `overflow-wrap`](#fine-grained-text-wrapping-with-overflow-wrap): Even the longest German word can't break your layout.
34
+
-[Colored `drop-shadow` support](#colored-drop-shadow-support): Box and text shadows have colors, so why not drop shadows.
34
35
-[Target input devices with `pointer-*` and `any-pointer-*`](#target-input-devices-with-pointer-and-any-pointer): Touch targets just got easier to style.
35
36
-[Align items with `items-baseline-last`](#align-items-with-items-baseline-last): Align flex or grid items to the baseline of the last line of text.
36
37
-[Keep content visible with `safe` alignment](#keep-content-visible-with-safe-alignment): Safely align content without worrying about overflow.
@@ -390,6 +391,110 @@ There's not much more to it than that, but here's the [`overflow-wrap`](/docs/ov
390
391
391
392
---
392
393
394
+
## Colored `drop-shadow` support
395
+
396
+
While we were building out `text-shadow` support we thought we might as well add another feature we never got around to implementing: colored drop shadows.
397
+
398
+
Now you can use utilities like `drop-shadow-indigo-500` and `drop-shadow-cyan-500/50` to change the color of a drop shadow:
Using the opacity modifier like this is just a shorthand for setting `drop-shadow-xl` and `text-shadow-black/<opacity>` at the same time.
493
+
494
+
There isn't anything more to it but here's the `drop-shadow`[documentation](/docs/filter-drop-shadow) anyway.
495
+
496
+
---
497
+
393
498
## Target input devices with `pointer-*` and `any-pointer-*`
394
499
395
500
There's nothing worse than a touch target that is too small to hit with your finger. The new `pointer-*` and `any-pointer-*` variants let you target specific input devices, so you can style your interface elements accordingly.
0 commit comments