tailwind-knowledge-patch
Tailwind CSS Knowledge Patch
Covers Tailwind CSS 4.1 (2025-04-03). Claude Opus 4.6 knows Tailwind CSS through 3.x. It is unaware of the features below.
Index
| Topic | Reference | Key features |
|---|---|---|
| New utilities | references/utilities.md | Text shadows, masks, overflow-wrap, colored drop shadows, alignment |
| New variants | references/variants.md | Pointer device, details-content, inverted-colors, noscript, user-valid/user-invalid |
| Configuration | references/configuration.md | @source not, @source inline() |
New Utility Classes (4.1)
Text Shadow
| Class | Effect |
|---|---|
text-shadow-{2xs,xs,sm,md,lg} |
Text shadow at size |
text-shadow-<color> |
Shadow color |
text-shadow-lg/50 |
Size with opacity modifier |
<p class="text-shadow-md text-shadow-blue-500">Shadowed text</p>
<p class="text-shadow-lg/30">30% opacity shadow</p>
Composable Mask Utilities
Direction-based linear masks and radial masks. Multiple masks compose together.
| Pattern | Purpose |
|---|---|
mask-{t,r,b,l}-from-<value> |
Linear mask start (direction) |
mask-{t,r,b,l}-to-<value> |
Linear mask end (direction) |
mask-radial-from-<value> |
Radial mask start |
mask-radial-to-<value> |
Radial mask end |
mask-radial-at-<position> |
Radial mask position |
<div class="mask-b-from-50% bg-[url(/img/photo.jpg)]"></div>
<div class="mask-r-from-80% mask-b-from-80% mask-radial-from-70%"></div>
Overflow Wrap
| Class | CSS |
|---|---|
wrap-break-word |
overflow-wrap: break-word |
wrap-anywhere |
overflow-wrap: anywhere |
Use wrap-anywhere inside flex containers instead of min-w-0 hacks:
<div class="flex">
<div class="wrap-anywhere">
<p>long.email@example.com</p>
</div>
</div>
Colored Drop Shadows
drop-shadow-<color> and drop-shadow-<color>/<opacity> to color filter drop shadows:
<svg class="drop-shadow-xl drop-shadow-cyan-500/50">...</svg>
Alignment
items-baseline-last/self-baseline-last— align to the last line of text baseline in flex/grid- Safe alignment — append
-safeto fall back tostarton overflow:justify-center-safe,items-center-safe, etc.
<ul class="flex justify-center-safe gap-2">...</ul>
New Variants (4.1)
| Variant | Purpose |
|---|---|
pointer-fine |
Primary pointer is fine (mouse) |
pointer-coarse |
Primary pointer is coarse (touch) |
any-pointer-fine |
Any available pointer is fine |
any-pointer-coarse |
Any available pointer is coarse |
details-content |
Targets content container of <details> |
inverted-colors |
Matches OS inverted-colors mode |
noscript |
Applies when JS is disabled |
user-valid |
Validation styling after user interaction |
user-invalid |
Validation styling after user interaction |
<!-- Responsive touch targets -->
<label class="p-2 pointer-coarse:p-4">Option</label>
<!-- Validation after interaction (no error flash on page load) -->
<input
type="email"
required
class="border user-valid:border-green-500 user-invalid:border-red-500"
/>
<!-- Progressive enhancement fallback -->
<div class="hidden noscript:block">Please enable JavaScript.</div>
<!-- Style details content -->
<details class="details-content:p-4 details-content:bg-gray-50">
<summary>Expand</summary>
<p>Styled content area.</p>
</details>
Configuration (4.1)
@source not — Exclude paths from class scanning
@source not "./src/components/legacy";
@source inline() — Safelist replacement
Force-generate classes with brace expansion:
@source inline("{hover:,}bg-red-{50,{100..900..100},950}");
@source not inline("container"); /* prevent generation */
Reference Files
| File | Contents |
|---|---|
| utilities.md | Text shadows, masks, overflow-wrap, colored drop shadows, alignment utilities |
| variants.md | Pointer device, details-content, inverted-colors, noscript, user-valid/invalid variants |
| configuration.md | @source not, @source inline() directives |
More from nevaberry/nevaberry-plugins
rust-knowledge-patch
Rust changes since training cutoff (latest: 1.94.0) \u2014 Rust 2024 Edition, async closures, trait upcasting, new std APIs, cargo resolver v3. Load before working with Rust.
20react-knowledge-patch
React changes since training cutoff (latest: 19.2.0) — Activity component, cacheSignal, Partial Pre-rendering, prerender/resume APIs, eslint-plugin-react-hooks v6. Load before working with React.
5arch-knowledge-patch
Arch Linux changes since training cutoff (latest: 2025.12) — pacman 7.0 alpm user, Valkey replacing Redis, Plasma 6.4 Wayland-only, NVIDIA 590 open modules, Dovecot 2.4, linux-firmware split. Load before working with Arch Linux.
4rhel-knowledge-patch
RHEL changes since training cutoff (latest: 10.1) — Valkey replaces Redis, Podman v5 with pasta networking, post-quantum crypto, ISC Kea DHCP, stricter TLS/FIPS policies. Load before working with RHEL.
4stripe-knowledge-patch
Stripe changes since training cutoff (latest: 2026-03-25.dahlia) -- named API versions, stripe-node v21 Decimal type, stripe-python v15 dict removal, Billing Mode, Accounts v2, Event Destinations. Load before working with Stripe.
4sqlx-knowledge-patch
SQLx changes since training cutoff (latest: 0.9.0-alpha.1) — SqlSafeStr, owned Arguments, sqlx.toml config, begin_with transactions, SQLite hooks, PgBindIter. Load before working with SQLx.
4