ui-design-system by samhvw8/dot-claude
npx skills add https://github.com/samhvw8/dot-claude --skill ui-design-system为现代 Web 应用程序提供全面的 UI/UX 设计、评审和改进。
使用 TailwindCSS + Radix UI + shadcn/ui 和现代 React 模式实现生产就绪的实施方案。
第一层:TailwindCSS(样式基础)
第二层:Radix UI(行为与可访问性)
第三层:shadcn/ui(美观组件)
Application Layer
↓
shadcn/ui Components (Beautiful defaults, ready-to-use)
↓
Radix UI Primitives (Accessible behavior, unstyled)
↓
TailwindCSS Utilities (Design system, styling)
核心原则: 每一层都增强其下一层。从 Tailwind 开始处理样式,添加 Radix 以实现可访问行为,使用 shadcn/ui 获得完整组件。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对现有界面进行系统性评估:
创建生产就绪的界面设计:
增强现有实现:
与框架无关的样式方法:
示例场景: 英雄区域、网格布局、无交互卡片、文本样式
示例场景: 自定义日期选择器、独特导航模式、特殊模态框行为
示例场景: 管理仪表板、CRUD 应用程序、设置页面、数据表格
从简单开始,根据需要增强:
从简单、可复用的组件构建复杂 UI:
Radix UI 自动处理可访问性:
切勿覆盖可访问性功能 - 增强它们。
一致地使用 Tailwind 的设计系统:
始终以移动优先设计,向上扩展:
Tailwind 配置:
content 路径(扫描所有组件文件)class 策略启用深色模式tailwindcss-animate 插件CSS 变量(三层系统):
:root {
/* Tier 1: Primitives (immutable) */
--gray-50: 250 250 250;
--gray-900: 24 24 27;
--blue-500: oklch(0.55 0.22 264);
/* Tier 2: Semantics (theme-aware) */
--background: var(--gray-50);
--foreground: var(--gray-900);
--primary: var(--blue-500);
/* Tier 3: Components */
--button-height: 2.5rem;
--card-padding: 1.5rem;
}
.dark {
/* Only semantic tokens change */
--background: var(--gray-900);
--foreground: var(--gray-50);
}
色彩空间推荐:
令牌存储:
路径别名:
@/components 和 @/lib使用 shadcn/ui 组件作为基础,通过 Tailwind 类进行自定义:
从头开始构建自定义组件:
在代码库中修改 shadcn/ui 组件:
components/ui/ 中的组件文件组合多个基元以构建复杂 UI:
使用三层令牌系统构建可扩展、可维护的设计系统:
gray-50、spacing-4)background-primary、text-error)button-height、card-padding)现代色彩: 使用 OKLCH 色彩空间以获得感知均匀性和更好的可访问性计算。
📖 查看 DESIGN_TOKENS.md 了解:
移动优先方法: 从移动设备(0-639px)开始,通过 sm/md/lg/xl/2xl 断点向上扩展。
关键模式: 布局变换(列→行)、组件切换(Dialog→Drawer)、用于模块化响应式的容器查询。
📖 查看 RESPONSIVE_PATTERNS.md 了解:
策略: React Hook Form + Zod,用于具备类型推断和可访问错误处理的模式优先验证。
📖 查看 CUSTOMIZATION.md 了解:
核心策略: 代码分割(React.lazy)、Tailwind 优化(准确的内容路径)、虚拟化(@tanstack/react-virtual 用于长列表)。
📖 查看 PERFORMANCE_OPTIMIZATION.md 了解:
class,而非媒体查询).dark 类中📖 查看 CUSTOMIZATION.md 了解:
WCAG 2.1 AA 级(法定最低要求):
WCAG AAA 级(增强):
测量:
OKLCH 优势: 感知均匀的色彩空间使对比度计算比 HSL 更可靠和可预测。
aria-label、<label>)<button>、<nav>、<main>)避免这些常见问题:
📖 查看 PERFORMANCE_OPTIMIZATION.md 获取包含 10 多个常见问题及解决方案的完整故障排除指南。
核心概念:
实现参考:
激活用于: UI/UX 评审/审计 | 设计系统架构 | 可访问性审计(WCAG) | 设计令牌(三层系统) | 颜色系统(OKLCH) | 排版系统 | 间距/布局设计 | Tailwind/Radix/shadcn/ui 设置 | 响应式设计模式 | 深色模式主题 | 组件库设计
请勿激活用于: React/Next.js 架构(请使用 react-nextjs-expert) | 状态管理 | 服务器组件 | 后端 API | 数据库设计 | 基础设施/DevOps
核心理念: 以用户为中心 | 性能意识(核心 Web 指标) | 可访问性优先(WCAG AA) | 基于证据 | 可维护 | 类型安全
设计原则: 渐进增强 | 移动优先 | 原子设计 | 一致的令牌(三层) | 语义化 HTML | 全面的错误处理
代码质量: 组件组合 | 单一职责 | 正确的钩子使用 | 优化的渲染 | 全面的测试
评审: 理解上下文 → 系统性审计 → 识别问题 → 提供证据 → 推荐解决方案 → 确定优先级
设计: 收集需求 → 选择架构 → 设计令牌 → 组件结构 → 以可访问方式实现 → 包含状态 → 响应式 → 文档化
改进: 分析当前状态 → 识别瓶颈 → 规划改进 → 增量实施 → 衡量影响 → 文档化 → 测试
集成: 验证兼容性 → 遵循官方模式 → 最佳实践 → 类型安全 → 性能预算 → 错误边界
设置: 安装 Tailwind + shadcn/ui | 配置三层令牌 | 设置深色模式 | 创建 cn() 辅助函数
开发: 应用移动优先设计 | 实现深色模式 | 测试可访问性 | 验证 WCAG AA 对比度
生产: 验证 Tailwind 清除 | 测试所有状态 | 跨浏览器测试 | 性能审计
📖 详细清单请查看:
设计令牌: 三层系统 | OKLCH 色彩空间 | 目的驱动命名 可访问性: WCAG AA 最低要求(文本 4.5:1,UI 3:1) | 键盘导航 | 屏幕阅读器 性能: 代码分割 | 虚拟化 | Tailwind 优化 维护: 模块化组件 | 文档化 | 令牌版本控制
主要功能:
技术重点:
激活触发条件:
边界: ✅ 设计系统、样式、可访问性、设计令牌、UI 模式 ❌ React 架构(react-nextjs-expert)、状态管理、后端 API、基础设施
技能版本: 2.1.0 最后更新: 2025-11-15 增强功能: UI/UX 评审能力、设计系统架构、与框架无关的模式 权威来源: WCAG 2.1/2.2、OKLCH 色彩科学、行业设计系统(USWDS、Carbon、Polaris) 渐进式披露: 参考文件提供详细指南 ✅ 范围: 设计系统、样式、可访问性、UI/UX 模式(与框架无关) 配套技能: react-nextjs-expert(用于 React/Next.js 架构和状态管理)
每周安装
2.3K
仓库
GitHub 星标
10
首次出现
Jan 20, 2026
安全审计
安装于
opencode2.0K
gemini-cli2.0K
codex2.0K
github-copilot2.0K
kimi-cli1.9K
amp1.8K
Comprehensive UI/UX design, review, and improvement for modern web applications.
Production-ready implementations with TailwindCSS + Radix UI + shadcn/ui and modern React patterns.
Layer 1: TailwindCSS (Styling Foundation)
Layer 2: Radix UI (Behavior & Accessibility)
Layer 3: shadcn/ui (Beautiful Components)
Application Layer
↓
shadcn/ui Components (Beautiful defaults, ready-to-use)
↓
Radix UI Primitives (Accessible behavior, unstyled)
↓
TailwindCSS Utilities (Design system, styling)
Key Principle: Each layer enhances the one below. Start with Tailwind for styling, add Radix for accessible behavior, use shadcn/ui for complete components.
Systematic evaluation of existing interfaces:
Creating production-ready interface designs:
Enhancing existing implementations:
Framework-agnostic styling approaches:
Example scenarios: Hero sections, grid layouts, cards without interaction, text styling
Example scenarios: Custom date picker, unique navigation pattern, specialized modal behavior
Example scenarios: Admin dashboards, CRUD applications, settings pages, data tables
Start simple, enhance as needed:
Build complex UIs from simple, reusable components:
Radix UI handles accessibility automatically:
Never override accessibility features - enhance them.
Use Tailwind's design system consistently:
Always design mobile-first, scale up:
Tailwind Config:
content paths correctly (scan all component files)class strategytailwindcss-animate pluginCSS Variables (Three-Tier System):
:root {
/* Tier 1: Primitives (immutable) */
--gray-50: 250 250 250;
--gray-900: 24 24 27;
--blue-500: oklch(0.55 0.22 264);
/* Tier 2: Semantics (theme-aware) */
--background: var(--gray-50);
--foreground: var(--gray-900);
--primary: var(--blue-500);
/* Tier 3: Components */
--button-height: 2.5rem;
--card-padding: 1.5rem;
}
.dark {
/* Only semantic tokens change */
--background: var(--gray-900);
--foreground: var(--gray-50);
}
Color Space Recommendation:
Token Storage:
Path Aliases:
@/components and @/lib in tsconfigUse shadcn/ui components as base, customize with Tailwind classes:
Build custom components from scratch:
Modify shadcn/ui components in your codebase:
components/ui/Combine multiple primitives for complex UIs:
Use three-tier token system for scalable, maintainable design systems:
gray-50, spacing-4)background-primary, text-error)button-height, card-padding)Modern Color: Use OKLCH color space for perceptual uniformity and better accessibility calculations.
📖 SeeDESIGN_TOKENS.md for:
Mobile-first approach: Start with mobile (0-639px), scale up through sm/md/lg/xl/2xl breakpoints.
Key patterns: Layout shifts (column→row), component switching (Dialog→Drawer), container queries for modular responsiveness.
📖 SeeRESPONSIVE_PATTERNS.md for:
Strategy: React Hook Form + Zod for schema-first validation with type inference and accessible error handling.
📖 SeeCUSTOMIZATION.md for:
Core strategies: Code splitting (React.lazy), Tailwind optimization (accurate content paths), virtualization (@tanstack/react-virtual for long lists).
📖 SeePERFORMANCE_OPTIMIZATION.md for:
class, not media query).dark class📖 SeeCUSTOMIZATION.md for:
WCAG 2.1 Level AA (Legal Minimum):
WCAG Level AAA (Enhanced):
Measurement:
OKLCH Advantage: Perceptually uniform color space makes contrast calculations more reliable and predictable compared to HSL.
aria-label, <label>)<button>, <nav>, <main>)Avoid these frequent issues:
📖 SeePERFORMANCE_OPTIMIZATION.md for complete troubleshooting guide with 10+ common issues and solutions.
Core Concepts:
Implementation References:
Activate for: UI/UX review/audit | Design system architecture | Accessibility audit (WCAG) | Design tokens (3-tier system) | Color systems (OKLCH) | Typography systems | Spacing/layout design | Tailwind/Radix/shadcn/ui setup | Responsive design patterns | Dark mode theming | Component library design
Do NOT activate for: React/Next.js architecture (use react-nextjs-expert) | State management | Server Components | Backend APIs | Database design | Infrastructure/DevOps
Core Philosophy: User-centric | Performance-aware (Core Web Vitals) | Accessibility-first (WCAG AA) | Evidence-based | Maintainable | Type-safe
Design Principles: Progressive enhancement | Mobile-first | Atomic design | Consistent tokens (3-tier) | Semantic HTML | Comprehensive error handling
Code Quality: Component composition | Single responsibility | Proper hooks usage | Optimized rendering | Comprehensive testing
Review: Understand context → Systematic audit → Identify issues → Provide evidence → Recommend solutions → Prioritize
Design: Gather requirements → Choose architecture → Design tokens → Component structure → Implement accessibly → Include states → Responsive → Document
Improve: Analyze current state → Identify bottlenecks → Plan improvements → Implement incrementally → Measure impact → Document → Test
Integration: Verify compatibility → Follow official patterns → Best practices → Type safety → Performance budget → Error boundaries
Setup: Install Tailwind + shadcn/ui | Configure three-tier tokens | Set up dark mode | Create cn() helper
Development: Apply mobile-first design | Implement dark mode | Test accessibility | Verify WCAG AA contrast
Production: Validate Tailwind purging | Test all states | Cross-browser testing | Performance audit
📖 Detailed checklists available in:
Design Tokens: Three-tier system | OKLCH color space | Purpose-driven naming Accessibility: WCAG AA minimum (4.5:1 text, 3:1 UI) | Keyboard navigation | Screen readers Performance: Code splitting | Virtualization | Tailwind optimization Maintenance: Modular components | Documentation | Version control tokens
Primary Functions:
Technology Focus:
Activation Triggers:
Boundaries: ✅ Design systems, styling, accessibility, design tokens, UI patterns ❌ React architecture (react-nextjs-expert), state management, backend APIs, infrastructure
Skill Version: 2.1.0 Last Updated: 2025-11-15 Enhanced With: UI/UX review capabilities, design system architecture, framework-agnostic patterns Authoritative Sources: WCAG 2.1/2.2, OKLCH color science, industry design systems (USWDS, Carbon, Polaris) Progressive Disclosure: Reference files for detailed guides ✅ Scope: Design systems, styling, accessibility, UI/UX patterns (framework-agnostic) Companion Skills: react-nextjs-expert (for React/Next.js architecture and state management)
Weekly Installs
2.3K
Repository
GitHub Stars
10
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
opencode2.0K
gemini-cli2.0K
codex2.0K
github-copilot2.0K
kimi-cli1.9K
amp1.8K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
SVG Logo Designer - AI 驱动的专业矢量标识设计工具,生成可缩放品牌标识
1,200 周安装