Skip to content

Frontend & UI

#css

7 posts tagged #css on DiCodeWeb, from fundamentals to production, newest first.

7 postsUpdated Sep 21, 2026

Posts

The View Transitions API: Page Transitions and Shared Elements Without a Library

How View Transitions snapshot the page and build a pseudo-element tree, startViewTransition in an SPA, transitions between documents, view-transition-name, view-transition-class and types, a list-to-detail shared element, reduced motion, performance traps, and using React's ViewTransition component in Next.js 16.

Frontend & UI8 min

Cascade Layers and @scope: Ending Specificity Wars in Large Codebases

Why CSS in large projects always drifts toward !important, how @layer changes who wins the cascade, traps like unlayered styles and the !important inversion, @scope with donut scopes and proximity, native nesting gotchas, and a step-by-step path for moving a legacy codebase into layers.

Frontend & UI8 min

Web Fonts Done Right: Fast, Stable and Correct for Vietnamese

How fonts affect LCP and CLS, choosing font-display, preloading the critical font, subsetting with unicode-range for Vietnamese, variable fonts, self-hosting versus CDNs, fallback metric overrides and next/font in Next.js.

Performance8 min

A Mental Model for CSS Layout: From Normal Flow to Flexbox and Grid

Normal flow, block vs inline, flexbox (one dimension, content-out) vs grid (two dimensions, layout-in), intrinsic sizing, and why min-width: 0 rescues overflowing flex items — so you write layout from understanding instead of trying properties until it works.

Frontend & UI7 min
All tags