Design

cognitedata/builder-skills/skills/design

作者 cognitedata7758093d8656无许可证6 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2天前更新

Simplified Aura guidance for selecting primitives, keeping token usage consistent, and applying reliable layout/copy/state patterns in Flows and Fusion apps.

仅含说明Design & Creative
AI 生成的概览

指导使用 Aura 设计系统,在 Flows 和 Fusion 应用中构建一致且无障碍的界面。

功能
提供应用 Aura UI 系统的决策级指导:选择合适的原语组件、使用语义化设计令牌而非原始数值,并保持布局、文案与交互状态的一致性。内容涵盖交互界面、表单、表格、导航、数据展示、样式、排版、响应式布局、无障碍以及面向用户的文本。它指向已安装的 Aura 包、其设计指南文档、Storybook 和公开文档站点作为参考。
适用场景
适用于在 Flows 或 React 应用中创建或迁移交互界面、表单、表格、导航或数据展示时。也适用于编写或修改样式、颜色、间距、排版、布局模式或面向用户的文案,以及实现键盘支持、焦点、标题和 ARIA 等无障碍功能时。
运行要求
要求项目已安装 Aura 包(@cognite/aura),最好是最新版本,因为指导内容从 node_modules 读取。所引用的 Storybook 和文档站点意味着需要网络访问。该技能不包含脚本,仅为说明性内容。

Role

Use Aura as the default UI system for customer-facing product work. Prefer decision-level guidance over exhaustive rules:

  • choose the right primitive first,
  • apply semantic tokens (no raw values),
  • keep layouts and UX states consistent,
  • write concise, action-oriented copy.

Note: Make sure the project is using the latest version of Aura (@cognite/aura) to access the most up-to-date guidance and components.

Everything you need to know is:

<when-to-reference>

Consult this skill whenever you are:

  • Creating or migrating interactive UI, forms, tables, navigation, or data display
  • Writing or modifying styles, colors, spacing, or typography
  • Choosing components, tokens, or layout patterns
  • Creating or restructuring pages and responsive layouts
  • Writing or editing any user-facing text
  • Building forms, handling API responses, async actions, confirmations, or dynamic content
  • Implementing accessibility (keyboard, focus, headings, ARIA, alt text)
  • Applying Aura correctly in a Flows or React app

</when-to-reference>

Operating principles

  1. Use Aura primitives before custom UI.
  2. Follow foundations through semantic tokens and Aura defaults; do not hardcode raw values.
  3. If a primitive almost fits, do not override visuals to force it; check variants/props first, then document the gap.
  4. Keep behavior predictable and accessible: keyboard support, visible focus, and clear feedback for loading/success/error.
  5. Use publicly reachable links — Aura design system docs, Storybook, and Figma.

来源与署名

来源:cognitedata/builder-skills位于skills/design提交7758093

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架