moai-domain-uiux by modu-ai/moai-adk
npx skills add https://github.com/modu-ai/moai-adk --skill moai-domain-uiux核心 UI/UX 基础 - 企业级 UI/UX 基础,集成了设计系统(W3C DTCG 2025.10)、组件架构(React 19, Vue 3.5)、无障碍访问(WCAG 2.2)、图标库(200K+ 图标)和主题系统。
统一能力:
何时使用:
模块组织:
核心技术:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
快速决策指南:
对于设计令牌,使用 modules/design-system-tokens.md,配合 DTCG 2025.10 和 Style Dictionary 4.0。
对于组件模式,使用 modules/component-architecture.md,配合原子设计、React 19 和 shadcn/ui。
对于无障碍访问,使用 modules/accessibility-wcag.md,配合 WCAG 2.2、jest-axe 和键盘导航。
对于图标,使用 modules/icon-libraries.md,配合 Lucide、React Icons、Tabler 和 Iconify。
对于主题,使用 modules/theming-system.md,配合 CSS 变量和主题提供器。
对于实际示例,使用 examples.md,包含 React 和 Vue 实现。
步骤 1:通过创建包含 DTCG 模式 URL 的 JSON 文件来初始化设计令牌。使用类型 color 和值 primary 500 定义颜色令牌。使用类型 dimension 和值 md 为 1rem 定义间距令牌。
步骤 2:通过安装 Style Dictionary 包并运行构建命令来转换令牌。
步骤 3:通过从 tokens 目录导入颜色和间距来与组件集成。
完整令牌架构请参阅 modules/design-system-tokens.md。
步骤 1:通过运行初始化命令来初始化 shadcn/ui,然后添加按钮、表单和对话框组件。
步骤 2:建立原子设计结构,atoms 目录用于 Button、Input 和 Label 组件,molecules 目录用于 FormGroup 和 Card 组件,organisms 目录用于 DataTable 和 Modal 组件。
步骤 3:通过为交互元素添加 aria-label 属性来实现无障碍访问。
模式和示例请参阅 modules/component-architecture.md。
步骤 1:根据需求选择图标库。安装 lucide-react 用于通用目的,iconify/react 用于最大多样性,或 tabler/icons-react 用于仪表板优化。
步骤 2:通过导入特定图标并应用 className 来设置大小和颜色,实现类型安全的图标。
库比较和优化请参阅 modules/icon-libraries.md。
步骤 1:在根选择器中配置 CSS 变量,用于主色和背景色。定义 dark 类,包含用于暗色模式的反转值。
步骤 2:通过使用属性设置为 class 且 defaultTheme 设置为 system 来包装应用程序,实现主题提供器。
完整主题系统请参阅 modules/theming-system.md。
设计令牌优先:
默认无障碍访问:
组件组合:
性能优化:
必需实践:
所有颜色、间距和排版值都专门使用设计令牌。设计令牌提供单一事实来源,支持一致的主题、多平台支持和可扩展的设计系统。硬编码值会产生维护债务并破坏主题切换。
在所有纯图标交互元素上包含 ARIA 标签。屏幕阅读器无法在没有文本替代的情况下解释视觉图标。缺少 ARIA 标签违反 WCAG 2.2 AA 合规性。
单独导入图标,而不是使用命名空间导入。命名空间导入会捆绑整个库,破坏了摇树优化。每个图标库的包大小会增加 500KB-2MB。
在亮色和暗色模式下测试所有组件。主题切换会影响颜色对比度、可读性和无障碍访问合规性。
为所有交互组件实现键盘导航。仅使用键盘的用户需要 Tab、Enter、Escape 和方向键支持。
为所有可聚焦元素提供可见的焦点指示器。焦点指示器为导航和无障碍访问传达当前的键盘位置。
使用 Tailwind 工具类代替内联样式。Tailwind 提供一致的间距比例、响应式设计和自动清除功能,以实现最佳的包大小。
为所有异步操作包含加载状态。加载状态在数据获取期间提供反馈,防止用户不确定。
技能:
代理:
命令:
详细模块文档,请参阅 modules 目录。
实际代码示例,请参阅 examples.md。
外部文档链接,请参阅 reference.md。
官方资源:
最后更新:2026-01-11 状态:生产就绪 版本:2.0.0
每周安装
126
仓库
GitHub 星标
867
首次出现
Jan 21, 2026
安全审计
安装于
codex106
opencode103
gemini-cli101
cursor100
claude-code97
github-copilot91
Core UI/UX Foundation - Enterprise-grade UI/UX foundation integrating design systems (W3C DTCG 2025.10), component architecture (React 19, Vue 3.5), accessibility (WCAG 2.2), icon libraries (200K+ icons), and theming systems.
Unified Capabilities:
When to Use:
Module Organization:
Core Technologies:
Quick Decision Guide:
For design tokens, use modules/design-system-tokens.md with DTCG 2025.10 and Style Dictionary 4.0.
For component patterns, use modules/component-architecture.md with Atomic Design, React 19, and shadcn/ui.
For accessibility, use modules/accessibility-wcag.md with WCAG 2.2, jest-axe, and keyboard navigation.
For icons, use modules/icon-libraries.md with Lucide, React Icons, Tabler, and Iconify.
For theming, use modules/theming-system.md with CSS variables and Theme Provider.
For practical examples, use examples.md with React and Vue implementations.
Step 1: Initialize design tokens by creating a JSON file with DTCG schema URL. Define color tokens with type color and primary 500 value. Define spacing tokens with type dimension and md value of 1rem.
Step 2: Transform tokens with Style Dictionary by installing the package and running the build command.
Step 3: Integrate with components by importing colors and spacing from the tokens directory.
See modules/design-system-tokens.md for complete token architecture.
Step 1: Initialize shadcn/ui by running the init command, then add button, form, and dialog components.
Step 2: Set up Atomic Design structure with atoms directory for Button, Input, and Label components, molecules directory for FormGroup and Card components, and organisms directory for DataTable and Modal components.
Step 3: Implement with accessibility by adding aria-label attributes to interactive elements.
See modules/component-architecture.md for patterns and examples.
Step 1: Choose icon library based on needs. Install lucide-react for general purpose, iconify/react for maximum variety, or tabler/icons-react for dashboard optimization.
Step 2: Implement type-safe icons by importing specific icons and applying className for sizing and color.
See modules/icon-libraries.md for library comparison and optimization.
Step 1: Configure CSS variables in root selector for primary and background colors. Define dark class with inverted values for dark mode.
Step 2: Implement Theme Provider by wrapping the application with attribute set to class and defaultTheme set to system.
See modules/theming-system.md for complete theme system.
Design Token First:
Accessibility by Default:
Component Composition:
Performance Optimization:
Required Practices:
Use design tokens exclusively for all color, spacing, and typography values. Design tokens provide a single source of truth, enabling consistent theming, multi-platform support, and scalable design systems. Hardcoded values create maintenance debt and break theme switching.
Include ARIA labels on all icon-only interactive elements. Screen readers cannot interpret visual icons without text alternatives. Missing ARIA labels violate WCAG 2.2 AA compliance.
Import icons individually rather than using namespace imports. Namespace imports bundle entire libraries, defeating tree-shaking optimization. Bundle sizes increase by 500KB-2MB per icon library.
Test all components in both light and dark modes. Theme switching affects color contrast, readability, and accessibility compliance.
Implement keyboard navigation for all interactive components. Keyboard-only users require Tab, Enter, Escape, and Arrow key support.
Provide visible focus indicators for all focusable elements. Focus indicators communicate current keyboard position for navigation and accessibility.
Use Tailwind utility classes instead of inline styles. Tailwind provides consistent spacing scale, responsive design, and automatic purging for optimal bundle sizes.
Include loading states for all asynchronous operations. Loading states provide feedback during data fetching, preventing user uncertainty.
Skills:
Agents:
Commands:
For detailed module documentation, see the modules directory.
For practical code examples, see examples.md.
For external documentation links, see reference.md.
Official Resources:
Last Updated: 2026-01-11 Status: Production Ready Version: 2.0.0
Weekly Installs
126
Repository
GitHub Stars
867
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex106
opencode103
gemini-cli101
cursor100
claude-code97
github-copilot91
agentation - AI智能体可视化UI反馈工具,连接人眼与代码的桥梁
5,400 周安装
后端架构模式:整洁架构、六边形架构与领域驱动设计实战指南
11,000 周安装
Expo DOM组件教程:在React Native应用中无缝运行网页库和代码
11,200 周安装
Google Workspace CLI 日历事件创建命令 - gws calendar +insert 完整使用指南
11,500 周安装
Google Docs 追加文本命令 gws-docs-write | Google Workspace CLI 文档写入工具
12,300 周安装
Diátaxis 文档专家 | GitHub Copilot 智能文档撰写助手,遵循专业框架
12,900 周安装
Electron应用自动化指南:使用agent-browser通过CDP实现桌面应用自动化
14,100 周安装