- معرفی
- الگوهای Design SystemDesign System Patterns
- چند Design System در Next.jsMulti Design System
- دسترسپذیری و استاندارد WCAGAccessibility Compliance
- راهنمای رابط کاربری وبWeb Interface Guidelines
- سئو برای سایت فارسیpersian-seo
- طراحی تعاملInteraction Design
- طراحی واکنشگراResponsive Design
- نمودار فارسی و راستچینRTL Charts
- Open Graph و پیشنمایش لینکOpen Graph & Social Preview
طراحی واکنشگرا
کمک میکند رابط کاربری از موبایل تا دسکتاپ درست رفتار کند و چیدمان، اندازهها و فاصلهها در هر اندازه صفحه طبیعی باقی بمانند.
کاربردها
- طراحی Mobile-first
- جلوگیری از بههمریختن چیدمان در اندازههای مختلف
- ساخت Grid و Layoutهای واکنشگرا
- کنترل بهتر Typography و فاصلهها
- سازگار کردن کامپوننتها با موبایل و دسکتاپ
مثال
بهجای ساختن یک Layout دسکتاپ و کوچک کردن آن برای موبایل، ابتدا ساختار مناسب موبایل را در نظر میگیرد و سپس برای اندازههای بزرگتر توسعه میدهد.
فایل مهارت
---
name: responsive-design
description: >
Implement modern responsive layouts using container queries, fluid typography,
CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive
interfaces, implementing fluid layouts, or creating component-level responsive
behavior.
---
# Responsive Design
Master modern responsive design techniques to create interfaces that adapt
seamlessly across all screen sizes and device contexts.
## When to Use This Skill
- Implementing mobile-first responsive layouts
- Using container queries for component-based responsiveness
- Creating fluid typography and spacing scales
- Building complex layouts with CSS Grid and Flexbox
- Designing breakpoint strategies for design systems
- Implementing responsive images and media
- Creating adaptive navigation patterns
- Building responsive tables and data displays
## Best Practices
1. **Mobile-First**: Start with mobile styles, enhance for larger screens
2. **Content Breakpoints**: Set breakpoints based on content, not devices
3. **Fluid Over Fixed**: Use fluid values for typography and spacing
4. **Container Queries**: Use for component-level responsiveness
5. **Test Real Devices**: Simulators don't catch all issues
6. **Performance**: Optimize images, lazy load off-screen content
7. **Touch Targets**: Maintain 44×44px minimum on mobile
8. **Logical Properties**: Use inline/block for internationalization (RTL-friendly)
## Common Issues
- **Horizontal Overflow**: Content breaking out of viewport
- **Fixed Widths**: Using px instead of relative units
- **Viewport Height**: `100vh` issues on mobile browsers — prefer `dvh`/`svh`
- **Font Size**: Text too small on mobile
- **Touch Targets**: Buttons too small to tap accurately
- **Aspect Ratio**: Images squishing or stretching
- **Z-Index Stacking**: Overlays breaking on different screens
## Quick patterns
### Fluid type
```css
:root {
--text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
--text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.5rem);
}
```
### Auto-fit grid
```css
.grid-auto {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
gap: 1.5rem;
}
```
### Container queries
```css
.card-container {
container-type: inline-size;
container-name: card;
}
@container card (min-width: 400px) {
.card {
display: grid;
grid-template-columns: 200px 1fr;
}
}
```
## Source
Adapted from [wshobson/agents — responsive-design](https://github.com/wshobson/agents/tree/main/plugins/ui-design/skills/responsive-design).
نصب
راهنمای کامل در نحوه نصب.
نصب سریع با CLI
npx farsiui@latest add responsive-designنصب دستی
فایل را دانلود کنید یا خودتان بسازید و در یکی از مسیرهای زیر بگذارید:
Claude Code.claude/skills/responsive-design/SKILL.md
Cursor.cursor/skills/responsive-design/SKILL.md
Codex.agents/skills/responsive-design/SKILL.md