Fusion Design

作者 equinore8fd6cfaf8edMIT2 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Looks up Fusion Design Guidelines and applies them to any frontend code in the Fusion ecosystem. USE FOR: layout, spacing, component usage, interaction patterns, any UI implementation decision. DO NOT USE FOR: backend changes, CI/CD, skill authoring, data layer logic.

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

查询 Fusion 设计指南并将其应用到 Fusion 生态系统的前端 UI 代码中。

功能
该技能是一份 Fusion 设计指南的查询参考。它指示代理阅读随附的参考文件,内容涵盖 EDS 排版、间距、导航、布局、操作、空状态、错误消息和上下文帮助,然后将这些规则应用到前端代码中。它还会检查本地 DESIGN.md 作为各应用权威来源,并在不存在时在其中记录布局决策。它产出符合指南的 UI 实现决策和代码。
适用场景
在编写或审查 Fusion 生态系统中的前端代码,且需要了解 UI 应如何呈现、行为或组织时使用。它面向布局、间距、组件用法和交互模式决策。不适用于后端更改、CI/CD、技能编写或数据层逻辑。
运行要求
无脚本;仅包含说明和参考文档。代理需要能够读取随附的参考文件以及目标应用中的本地 DESIGN.md。

Fusion Design

When to use

Any time you are writing or reviewing frontend code in the Fusion ecosystem and need to know how it should look, behave, or be structured.

Non-negotiable invariants

These apply to every file you write, regardless of the task — do not wait until you have read the references to honour them, and never emit a "placeholder" that violates them:

  • All text uses EDS <Typography>. Never write a bare <h1>–<h6>, <p>, or <span> for text — not even a temporary title or stub. A page title is <Typography variant="h1">, body text is <Typography variant="body_short">. See references/eds-typography.md.
  • All spacing uses EDS spacing variables. Never hardcode px in padding/margin/gap. See references/spacing.md.

Instructions

This skill is a lookup. Read all reference files before writing any code — they define mandatory requirements, not optional styling.

1. Read the references

TopicFile
EDS Typographyreferences/eds-typography.md
Navigation — Sidemenureferences/navigation-sidemenu.md
Navigation — Tabsreferences/navigation-tabs.md
Layout — Content area patternsreferences/layout.md
Layout — Centered contentreferences/layout-centered-content.md
Spacingreferences/spacing.md
Actions — Action bar, destructive actions, button placementreferences/actions.md
Empty statesreferences/empty-states.md
Error messagesreferences/error-messages.md
Contextual help (ℹ / ? icons, density)references/contextual-help.md

2. Check for a local DESIGN.md

If the app has a DESIGN.md at its root, read it first. It is the authoritative source for that app's design decisions and overrides or supplements the reference rules.

3. Apply

Implement the UI to match the rules. If no DESIGN.md exists and the task requires a layout decision, document it there.

来源与署名

来源:equinor/fusion-skills位于skills/.experimental/fusion-design提交e8fd6cf

许可证: MIT

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

举报或申请下架