Skip to content
Next.js Styling & UI Performance logo

Next.js Styling & UI Performance

Zero-runtime CSS strategies (Tailwind) and RSC compatibility.

ngxtm/devkit0installs8stars

SKILL.md

Full skill instructions

Styling & UI Performance

Priority: P1 (HIGH)

Prioritize Zero-Runtime CSS for Server Components.

Library Selection

LibraryVerdictReason
Tailwind / shadcnPreferred (P1)Zero-runtime, RSC compatible. Best for App Router.
CSS ModulesRecommendedScoped, zero-runtime.
MUI / Chakra (Runtime)AvoidForces use client widely. Degrades performance.

Patterns

  1. Dynamic Classes: Use clsx + tailwind-merge (cn utility).
  2. Font Optimization: Use next/​font to prevent Cumulative Layout Shift (CLS).
  3. CLS Prevention: Always specify width/height on images.