惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
🚀 What’s New in Tailwind CSS v4.3: Top Features with Code...
Tirtho Raj M · 2026-05-17 · via DEV Community

If you haven’t checked out the latest Tailwind CSS v4.3 release yet, you are missing out on some massive workflow upgrades. This update brings long-awaited layout properties natively into the framework, cutting down the need for custom CSS or third-party plugins.
Here is a breakdown of the most exciting features in Tailwind CSS v4.3, complete with practical code examples.

1. Native Scrollbar Styling (No Plugins Required!)

Historically, custom scrollbars meant writing complex, browser-specific CSS or importing extra plugins. Tailwind v4.3 resolves this by adding native utility support for width, color, and gutter properties.

📝 Code Example:

<!-- A modern, slim blue scrollbar container -->
<div class="h-48 overflow-y-scroll scrollbar-thin scrollbar-thumb-blue-500 scrollbar-track-slate-100">
  <p class="p-4">
    Scroll down to see the native custom scrollbar in action. 
    No extra CSS files or external plugins are required anymore!
  </p>
</div>

Enter fullscreen mode Exit fullscreen mode

2. Height-Aware Container Queries

Container queries are a game changer for component-driven design. While previous versions focused heavily on inline sizes (width), v4.3 introduces @container-size to target parent block-size (height).

📝 Code Example:

<!-- Parent container explicitly tracking size -->
<div class="@container/card h-[300px] border border-slate-200">
  <!-- Content changes color only if parent height exceeds 200px -->
  <p class="text-slate-600 @[block-size>200px]/card:text-emerald-600 font-semibold">
    My color shifts dynamically based on my container's height!
  </p>
</div>

Enter fullscreen mode Exit fullscreen mode

3. Dedicated zoom-* and tab-* Utilities

Two highly useful layout utility shortcuts have officially mapped to native CSS attributes. You can now quickly control browser-level element zooming and tab indentation sizes.

📝 Code Example:

<!-- Using zoom-* to scale UI previews -->
<div class="zoom-120 bg-slate-50 p-4 border rounded">
  Scaled preview box (120% magnification).
</div>

<!-- Using tab-* to fix code block formatting -->
<pre class="tab-2 bg-slate-900 text-white p-4 rounded mt-4">
function initTailwind() {
    console.log("Tab width is now precisely 2 spaces instead of 8!");
}
</pre>

Enter fullscreen mode Exit fullscreen mode

4. Multi-Layered CSS Formatting inside @variant

For design system maintainers, writing complex element states in pure HTML can look messy. Tailwind v4.3 allows you to combine stacked and compound states seamlessly directly inside your global CSS file using the @variant engine.

📝 Code Example (global.css):

/* Combining complex user interaction points into one custom utility */
@variant hover-focus (&:hover:focus, &:focus-within);

Enter fullscreen mode Exit fullscreen mode

📝 Code Example (index.html):

<!-- Cleaner class strings with pre-bundled behaviors -->
<button class="bg-gray-200 text-black hover-focus:bg-indigo-600 hover-focus:text-white transition">
  Interactive Button
</button>

Enter fullscreen mode Exit fullscreen mode

5. Smarter Fallbacks with --default(…) syntax

Creating reusable utility definitions on top of Tailwind just got safer. The new --default(…) syntax acts as a structural fallback, meaning your custom designs won't break if a specific design token configuration goes missing.

📝 Code Example (global.css):

@utility custom-alert-gap {
  /* Automatically falls back to 2rem (spacing-8) if no variable is provided */
  margin-top: --default(var(--spacing-8));
}

Enter fullscreen mode Exit fullscreen mode

📝 Code Example (index.html):

<!-- Safely uses the fallback structural styling automatically -->
<div class="custom-alert-gap bg-amber-50 p-4">
  This component stays perfectly spaced even without active theme flags.
</div>

Enter fullscreen mode Exit fullscreen mode

6. Frictionless Project Migrations

Upgrading your legacy applications to the modern v4 ecosystem is significantly cleaner. The built-in automated CLI conversion tool has an updated canonicalizer to prevent broken file paths and preserve raw style elements smoothly.

💻 Upgrade Terminal Command:

npx @tailwindcss/upgrade

Enter fullscreen mode Exit fullscreen mode