nextjs-styling
Installation
SKILL.md
Styling & UI Performance
Priority: P1 (HIGH)
Prioritize Zero-Runtime CSS for Server Components.
Workflow: Set Up Styling
- Choose library — Tailwind/shadcn (preferred), CSS Modules (scoped), or Ant Design (with client wrappers).
- Create
cnutility — Combineclsx+tailwind-mergefor dynamic classes. - Configure fonts — Use
next/fontfor zero-CLS self-hosted fonts. - Set image dimensions — Always specify
width/heightorfillon<Image>.