Back to skills
SKILL.md
Styling
ASecurityZero-runtime CSS strategies (Tailwind) and RSC compatibility.
- 8 stars
- 0 votes
- 0 copies
- 2 views
- Added September 8, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add ngxtm/devkit --skill styling --agent claude-codeAre you the author of Styling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ngxtm-styling)---
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
1. **Dynamic Classes**: Use `clsx` + `tailwind-merge` (`cn` utility).
- _Reference_: [Dynamic Classes & Button Example](references/implementation.md)
2. **Font Optimization**: Use `next/font` to prevent Cumulative Layout Shift (CLS).
- _Reference_: [Font Setup](references/implementation.md)
3. **CLS Prevention**: Always specify `width`/`height` on images.
Files in this skill
- SKILL.md
- references/implementation.md
Attribution
Comments
Loading comments…