Bỏ qua để vào nội dung chính

AI

AI tools for coding: Cursor, Copilot, Claude Code, v0, Bolt

Dark Mode Done Right: From CSS Variables to SSR Flicker Fix

Dark Mode Done Right: From CSS Variables to SSR Flicker Fix

A deep dive into implementing dark mode correctly in Next.js and Tailwind CSS — covering CSS custom properties architecture, system preference detection, localStorage persistence, and fixing the SSR hydration flicker with a blocking script and next-themes.

03 thg 4, 20269 phút đọc
Optimizing Core Web Vitals from 60 to 95: A Real Next.js Case Study

Optimizing Core Web Vitals from 60 to 95: A Real Next.js Case Study

A real-world deep dive into optimizing Core Web Vitals on a production Next.js 14 app — from a PageSpeed score of 60 to 95. Covers LCP, INP, CLS diagnostics, next/image, next/font, bundle splitting, ISR vs SSG, and React 18 performance patterns with before/after metrics.

03 thg 4, 20269 phút đọc