[KongchangAI]

#CSS

17 related articles

Goodbye clamp() Magic Numbers: Fluid Typography with the CSS progress() Function
·3 min

Goodbye clamp() Magic Numbers: Fluid Typography with the CSS progress() Function

The CSS progress() function is now Baseline. Replace clamp()'s magic numbers with normalized progress values for readable, maintainable fluid typography, plus custom property techniques and a tan(atan2()) fallback.

Read more →
The Future of CSS: How Interop and New Features Are Reshaping Front-End Development
·2 min

The Future of CSS: How Interop and New Features Are Reshaping Front-End Development

An analysis of Josh W. Comeau's take on the future of CSS: how the Interop project drives browser compatibility, the real impact of container queries, :has(), cascade layers, and native nesting, plus contrasting views from Hacker News.

Read more →
Invoker Commands: A New Declarative HTML Alternative to JavaScript
·2 min

Invoker Commands: A New Declarative HTML Alternative to JavaScript

In-depth analysis of Invoker Commands: declaratively open dialogs and popovers in pure HTML, no JavaScript needed. Covers Interest Invokers hover previews, custom commands, browser support, and polyfill guide.

Read more →
Pure CSS Recreation of the GTA6 Website Scroll Effects: Scene Transitions and Gradient Text Explained
·3 min

Pure CSS Recreation of the GTA6 Website Scroll Effects: Scene Transitions and Gradient Text Explained

Recreate the GTA6 website scroll effects with pure CSS — learn how view-timeline, animation-range, and @property power scene cross-fades, subtle zoom, and flowing gradient text.

Read more →
View Transitions Major Update: Cross-Browser Support and Four New Features Explained
·3 min

View Transitions Major Update: Cross-Browser Support and Four New Features Explained

CSS Podcast details View Transitions updates: cross-browser support in Chrome/Safari/Firefox, view transition types, match-element, nested groups, and scoped transitions.

Read more →
CSS Developer Preferences Unpacked: Adam Argyle on His Favorite Colors, Units, and Properties
·2 min

CSS Developer Preferences Unpacked: Adam Argyle on His Favorite Colors, Units, and Properties

CSS expert Adam Argyle shares his favorite colors, formats, properties, and units in a rapid-fire Q&A, with community votes revealing OKLCH's rise, display and rem dominating, and grid still stumping developers.

Read more →
Pure CSS Card Expand Animation: A Deep Dive into details and Modern CSS Techniques
·2 min

Pure CSS Card Expand Animation: A Deep Dive into details and Modern CSS Techniques

Build smooth card expand animations with pure CSS — no JavaScript needed. Learn how details, ::details-content, interpolate-size, and @starting-style work together.

Read more →
Stop Using JavaScript: 6 Underrated Modern CSS Features
·3 min

Stop Using JavaScript: 6 Underrated Modern CSS Features

Kevin Powell highlights 6 modern CSS features — scroll-margin, scroll-snap, :user-valid, focus-visible, lh unit, and field-sizing — that replace JavaScript with one or two lines of code.

Read more →
Two New CSS Features: Say Goodbye to Magic Numbers in Textarea Styling
·1 min

Two New CSS Features: Say Goodbye to Magic Numbers in Textarea Styling

Two new CSS features for cleaner textarea styling: the lh unit ties height to line count so font-size changes never break your layout, and field-sizing:content auto-expands textareas without JavaScript.

Read more →
Getting Started with Shadow DOM: Understanding CSS Shadow Roots Through Interactive Examples
·1 min

Getting Started with Shadow DOM: Understanding CSS Shadow Roots Through Interactive Examples

Simon Willison generated an interactive Shadow DOM teaching tool using a single AI prompt. Explore how CSS Shadow Roots work, style isolation, ::part, ::slotted, and event retargeting.

Read more →
Fixing Fluid Typography: Combining Container Queries with @property
·2 min

Fixing Fluid Typography: Combining Container Queries with @property

Fix fluid typography issues — font sizes growing past max-width containers and inconsistent sizes across multiple containers — using container query units and @property.

Read more →
The Most-Used CSS Units in Production Websites — Ranked
·1 min

The Most-Used CSS Units in Production Websites — Ranked

Production CSS unit rankings revealed: px leads, em beats rem with 91.3% coverage, and degrees and seconds crack the top four. Here's what the data actually means.

Read more →
Has the CSS Zen Garden Dream Finally Come True? Revisiting the Separation of Content and Style
·2 min

Has the CSS Zen Garden Dream Finally Come True? Revisiting the Separation of Content and Style

A Hacker News post claims the CSS Zen Garden dream has finally shipped. We revisit the history of content-style separation and how modern CSS has — and hasn't — fulfilled that vision.

Read more →
After Leaving Tailwind, These CSS Color Palette Tools Are Worth Bookmarking
Tutorials
·2 min

After Leaving Tailwind, These CSS Color Palette Tools Are Worth Bookmarking

After returning to vanilla CSS from Tailwind, how do you choose a good color system? This article covers community-recommended CSS palette solutions including Reasonable Colours, Flexoki, uchū, and generator tools like tints.dev.

Read more →
CSS text-shadow Smooth Rendering Optimization: Say Goodbye to Jagged Edges and Unlock Text Effect Potential
Tutorials
·2 min

CSS text-shadow Smooth Rendering Optimization: Say Goodbye to Jagged Edges and Unlock Text Effect Potential

Major browsers have optimized the CSS text-shadow rendering engine for sub-pixel smoothing and GPU acceleration. Learn the improvements, neon effects, and performance best practices.

Read more →
HTML Description List <dl> Element: 4 Things You Didn't Know & Best Practices
Tutorials
·2 min

HTML Description List <dl> Element: 4 Things You Didn't Know & Best Practices

Deep dive into 4 little-known facts about the HTML <dl> element: multiple dd per dt, div wrapping rules, ARIA accessibility enhancements, and screen reader support status with best practice guidelines.

Read more →
Why Is CSS So Hard? Julia Evans' Deep Reflection
Expert Opinions
·2 min

Why Is CSS So Hard? Julia Evans' Deep Reflection

Julia Evans reflects on relearning CSS after migrating from Tailwind, revealing that CSS is complex because it solves inherently complex problems. Explore why CSS is underestimated and how modern CSS has evolved.

Read more →