nextjs-styling-ui-performance
maintained by HoangNguyen0403
star
143
account_tree
48
verified_user
MIT License
name: Next.js Styling & UI Performance description: Zero-runtime CSS strategies (Tailwind) and RSC compatibility. metadata: labels: [nextjs, styling, tailwind, css] triggers: files: ['/*.css', 'tailwind.config.ts', '/components/ui/*.tsx'] keywords: [tailwind, css modules, styled-components, clsx, cn]
Styling & UI Performance
Priority: P1 (HIGH)
Prioritize Zero-Runtime CSS for Server Components.
Library Selection
| Library | Verdict | Reason |
|---|---|---|
| Tailwind / shadcn | Preferred (P1) | Zero-runtime, RSC compatible. Best for App Router. |
| CSS Modules | Recommended | Scoped, zero-runtime. |
| MUI / Chakra (Runtime) | Avoid | Forces use client widely. Degrades performance. |
Patterns
-
Dynamic Classes: Use
clsx+tailwind-merge(cnutility).- Reference: Dynamic Classes & Button Example
-
Font Optimization: Use
next/fontto prevent Cumulative Layout Shift (CLS).- Reference: Font Setup
-
CLS Prevention: Always specify
width/heighton images.
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
143
GitHub Forks
48
Created
Jan 2026
Last Updated
8 months ago
tools
tools frontend
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!