AI UI Atlas
Mapping interface systems
给 coding agent 时可以直接复制下面这段,作为 UI 风格约束。
# Flat Design## UsageUse this DESIGN.md as a reusable design brief for an AI coding agent. Apply it when building a new page, restyling an existing interface, or keeping multiple screens visually consistent.## Design IntentYou are implementing an interface using the **Flat Design** design language. 去掉拟物阴影和复杂纹理,用纯色、图标、留白和清晰排版表达层级,强调效率和直接性。Treat surface, depth, light, and texture as the main carrier of brand expression.## Aliases- 扁平化设计## Category- 材质与表面## Target Platforms- 移动端- PC 端## Summary去掉拟物阴影和复杂纹理,用纯色、图标、留白和清晰排版表达层级,强调效率和直接性。## Visual DNA- 纯色块- 少阴影- 清晰图标- 高对比文字## Best Use Cases- 移动应用- 工具型网页- 品牌系统- 轻量后台## Avoid When用户需要强烈的可点击暗示,或品牌需要真实材质和高级质感。## Anatomy层级主要靠字号、颜色、间距和状态,不靠厚重阴影。## Color SystemUse a Seed → Map → Semantic → Alias token architecture. Components must consume named tokens instead of hard-coded colors.### Reference Palette- **reference-1** `#f8fafc`- **reference-2** `#22c55e`- **reference-3** `#0ea5e9`- **reference-4** `#f97316`- **reference-5** `#111827`### Seed Tokens- **colorBgBase** `#f8fafc` - 页面基础背景.- **colorBgContainer** `#f0f2f5` - 卡片、面板与容器.- **colorFillSecondary** `#e6e8eb` - 次级填充与弱状态.- **colorPrimary** `#f97316` - 品牌主操作与选中态.- **colorTextBase** `#111827` - 正文、图标与高对比轮廓.### Primary Scale- **primary-1** `#f8ede5`- **primary-2** `#f8dcc9`- **primary-3** `#f8c9a9`- **primary-4** `#f9b484`- **primary-5** `#f99956`- **primary-6** `#f97316`- **primary-7** `#dd6818`- **primary-8** `#c15d1a`- **primary-9** `#a5521c`- **primary-10** `#85461f`### Neutral Scale- **neutral-1** `#f8fafc`- **neutral-2** `#eff1f3`- **neutral-3** `#e6e8eb`- **neutral-4** `#d3d6da`- **neutral-5** `#b7bbc0`- **neutral-6** `#979ba3`- **neutral-7** `#727780`- **neutral-8** `#525763`- **neutral-9** `#313845`- **neutral-10** `#111827`### Semantic Tokens- **colorSuccess** `#22c55e` - 成功、在线、已完成.- **colorSuccessBg** `#def4e9` - 成功状态浅背景.- **colorWarning** `#f97316` - 警告、待确认、需关注.- **colorWarningBg** `#f8eae0` - 警告状态浅背景.- **colorError** `#f97316` - 错误、危险、阻断.- **colorErrorBg** `#f8ede5` - 错误状态浅背景.- **colorInfo** `#0ea5e9` - 信息、链接、进行中.- **colorInfoBg** `#dcf0fa` - 信息状态浅背景.### Alias Tokens- **colorBgLayout** `#f4f6f8` - 应用整体画布.- **colorBgElevated** `#f1f3f6` - 弹层、浮层与菜单.- **colorBgSpotlight** `#313845` - Tooltip 与强提示.- **colorBorder** `#d3d6da` - 控件与容器边框.- **colorBorderSecondary** `#e6e8eb` - 轻分隔线.- **colorText** `#111827` - 一级文本.- **colorTextSecondary** `#5b606b` - 二级文本.- **colorTextTertiary** `#858992` - 辅助说明.- **colorTextDisabled** `#a9adb4` - 禁用文本.- **colorPrimaryHover** `#f99956` - 主操作 Hover.- **colorPrimaryActive** `#dd6818` - 主操作 Active.- **colorPrimaryBorder** `#f9b484` - 主色边框.- **colorPrimaryBg** `#f8ede5` - 主色浅背景.- **colorLink** `#f97316` - 链接与可跳转文本.- **colorFocus** `#f9b484` - 键盘焦点环.- **colorMask** `#0c111c` - Modal 遮罩基础色.Color rules:- Use the palette as design tokens, not random decorative swatches.- Keep primary text and primary actions at accessible contrast.- Use primary-1 through primary-10 for interaction states instead of inventing new brand colors.- Use semantic tokens consistently for success, warning, error, and info; pair color with iconography or text.- Map component styles to Alias Tokens so theme changes do not require component-level color edits.## Typography- Use a modern system sans-serif stack by default; only introduce a custom font when the brand direction requires it.- Headings should be confident but not ornamental; body text must remain readable across mobile and desktop.- Keep labels short, high-contrast, and aligned to the component structure.## Layout And Spacing- Use an 8px spacing base; reserve 4px for micro-gaps and 32px+ for major layout separation.- Keep cards, panels, controls, and lists dimensionally stable across responsive breakpoints.- On mobile, reduce column count before reducing legibility.- Recommended radius: 0-6px radius; favor crisp edges and deliberate geometry.- Elevation and shadow: Use shadows sparingly; prefer whitespace, borders, and typography for hierarchy.## Component Rules- Components should make the surface logic visible: panels, buttons, inputs, and overlays need consistent material treatment.- Primary actions must be visually obvious and reachable; secondary actions should be quieter but still discoverable.- Cards need a clear title, supporting text or metric, state, and one obvious next action when action is expected.- Forms and filters should use familiar controls, stable dimensions, clear labels, and visible focus states.- Empty, loading, error, and success states must use the same visual language, not generic placeholders.## Interaction And Motion- Use subtle 120-220ms transitions for hover, focus, open, close, and selection states.- Motion should clarify state changes rather than decorate the page.- Respect reduced-motion preferences.## Implementation Recipe1. Start with the real user workflow and page structure; do not make a generic landing page unless explicitly requested.2. Establish layout zones first: navigation, content, controls, feedback, and primary action.3. Apply the color tokens to semantic roles: canvas, surface, text, border, accent, danger, and success.4. Build reusable components that express this style: buttons, cards, inputs, tabs, filters, modals, empty states, and status badges.5. Verify mobile and desktop breakpoints before adding decorative polish.6. Check that the final screen still communicates 纯色块, 少阴影, 清晰图标 without relying on a single color or effect.## Quality Checklist- The screen is immediately recognizable as **Flat Design**, not a generic Tailwind layout.- The design uses surface, spacing, typography, and component shape together; it does not rely only on colors.- Primary actions and navigation are clear on both mobile and desktop.- Text is readable, controls are stable, and content does not overlap or shift unexpectedly.- Empty, loading, hover, focus, selected, disabled, success, and error states are styled in the same language.- The implementation avoids the known failure mode: 用户需要强烈的可点击暗示,或品牌需要真实材质和高级质感。## Anti-Patterns- Do not paste this palette onto an unrelated layout and call it finished.- Do not overuse decorative effects where the user needs to read, compare, or act quickly.- Do not mix this style with unrelated visual languages unless the product explicitly requires a hybrid.- Do not hide important state behind low contrast, blur, tiny text, or animation.## Keywords- flat- simple- icon- solid color## Agent Prompt SnippetImplement the UI in the **Flat Design** design language. Prioritize 纯色块, 少阴影, 清晰图标. Use the color roles, typography guidance, spacing rules, component rules, and anti-patterns from this DESIGN.md as hard constraints. The result should feel purpose-built for 移动应用, 工具型网页, 品牌系统, while avoiding: 用户需要强烈的可点击暗示,或品牌需要真实材质和高级质感。