Skills.MD
# Vercel Design Guidelines
Review web interfaces against Vercel's comprehensive design guidelines and propose fixes.
## How It Works
1. Read the user's code (components, CSS, HTML)
2. Check against Vercel design guidelines (interactions, animations, layout, content, forms, performance, design, copywriting)
3. Report violations with specific line references
4. Propose concrete fixes with code examples
## Usage
When a user asks to review their UI or check against design guidelines:
1. Fetch the guidelines from both URLs below
2. Read the relevant source files (components, styles, HTML)
3. Analyze the code against each applicable guideline category
4. Report findings grouped by category with severity
**Guidelines URLs:**
- **Structured rules:** https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/refs/heads/main/AGENTS.md (MUST/SHOULD/NEVER directives)
- **Full details:** https://vercel.com/design/guidelines (rich explanations and examples)
Fetch both for comprehensive coverage — AGENTS.md for structured checklist, full site for context and examples.
## Audit Categories
### Interactions
- Keyboard accessibility
- Focus management
- Hit targets (minimum 24px, 44px on mobile)
- Loading states
- URL persistence
### Animations
- Reduced motion support (`prefers-reduced-motion`)
- GPU acceleration
- Easing functions
- Interruptibility
- No `transition: all`
### Layout
- Optical adjustment
- Alignment
- Responsive testing
- Safe areas
### Content
- Inline help
- Skeleton states
- Empty states
- Typography
- Accessibility
### Forms
- Labels (always associated with inputs)
- Validation
- Autocomplete
- Error handling
- Submit behavior
### Performance
- Re-renders
- Layout thrashing
- Virtualization
- Preloading
### Design
- Shadows
- Borders
- Border radii
- Contrast (APCA standards)
- Color accessibility
### Copywriting
- Active voice
- Title case
- Clarity
- Error messaging (show how to fix, not just what's wrong)
## Output Format
Present findings as:
````
## {Category} Issues
### {Severity}: {Guideline Name}
**File:** `path/to/file.tsx:42`
**Issue:** {Description of the violation}
**Guideline:** {Brief guideline reference}
**Fix:**
```{language}
{Proposed code fix}
````
```
Severity levels:
- **Critical**: Accessibility violations, broken functionality
- **Warning**: UX issues, performance concerns
- **Suggestion**: Polish, best practices
## Example Review
```
## Interactions Issues
### Critical: Keyboard Accessibility
**File:** `components/Modal.tsx:28`
**Issue:** Modal lacks focus trap - keyboard users can tab outside
**Guideline:** Implement focus traps per WAI-ARIA patterns
**Fix:**
```tsx
// Add focus trap using @radix-ui/react-focus-guards or similar
import { FocusScope } from "@radix-ui/react-focus-scope";
<FocusScope trapped>
<ModalContent>{children}</ModalContent>
</FocusScope>;
```
### Warning: Loading State Duration
**File:** `components/Button.tsx:15`
**Issue:** No minimum loading duration - causes flicker on fast responses
**Guideline:** Add 150-300ms delay and 300-500ms minimum visibility
**Fix:**
```tsx
const [isLoading, setIsLoading] = useState(false);
const minimumLoadingTime = 300;
async function handleClick() {
setIsLoading(true);
const start = Date.now();
await action();
const elapsed = Date.now() - start;
if (elapsed < minimumLoadingTime) {
await new Promise((r) => setTimeout(r, minimumLoadingTime - elapsed));
}
setIsLoading(false);
}
```
```
## Quick Checklist
For rapid reviews, check these high-impact items first:
- [ ] All interactive elements keyboard accessible
- [ ] Visible focus rings on focusable elements
- [ ] Hit targets ≥24px (44px on mobile)
- [ ] Form inputs have associated labels
- [ ] Loading states don't flicker
- [ ] `prefers-reduced-motion` respected
- [ ] No `transition: all`
- [ ] Errors show how to fix, not just what's wrong
- [ ] Color contrast meets APCA standards
- [ ] No zoom disabled
## Present Results to User
After reviewing:
```
# Design Guidelines Audit
Reviewed {N} files against Vercel design guidelines.
## Summary
- Critical: {N} issues
- Warning: {N} issues
- Suggestions: {N} items
{Detailed findings by category}
## Recommended Priority
1. {First critical fix}
2. {Second critical fix}
...
```
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「vercel-design-guidelines」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次