AI UI Atlas
Mapping interface systems
给 coding agent 时可以直接复制下面这段,作为 UI 风格约束。
# Soft Gradient Surface## 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 **Soft Gradient Surface** design language. 用低对比多色渐变、柔和光斑和轻量卡片创造温和现代的表面层次,常见于消费级 App 和 AI 工具。Treat surface, depth, light, and texture as the main carrier of brand expression.## Aliases- 柔和渐变表面- pastel gradient UI## Category- 材质与表面## Target Platforms- 移动端- PC 端## Summary用低对比多色渐变、柔和光斑和轻量卡片创造温和现代的表面层次,常见于消费级 App 和 AI 工具。## Visual DNA- 柔和渐变- 低对比光斑- 轻卡片- 现代亲和## Best Use Cases- AI 工具- 效率应用- 欢迎页- 个人仪表盘## 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** `#fde2e4`- **reference-3** `#dbeafe`- **reference-4** `#c7f9cc`- **reference-5** `#334155`### Seed Tokens- **colorBgBase** `#f8fafc` - 页面基础背景.- **colorBgContainer** `#f1f4f6` - 卡片、面板与容器.- **colorFillSecondary** `#e8ebef` - 次级填充与弱状态.- **colorPrimary** `#dbeafe` - 品牌主操作与选中态.- **colorTextBase** `#334155` - 正文、图标与高对比轮廓.### Primary Scale- **primary-1** `#f5f8fc`- **primary-2** `#f2f6fc`- **primary-3** `#eef4fd`- **primary-4** `#e9f2fd`- **primary-5** `#e3eefd`- **primary-6** `#dbeafe`- **primary-7** `#c7d6ea`- **primary-8** `#b3c1d5`- **primary-9** `#9fadc1`- **primary-10** `#8796aa`### Neutral Scale- **neutral-1** `#f8fafc`- **neutral-2** `#f0f3f5`- **neutral-3** `#e8ebef`- **neutral-4** `#d8dce1`- **neutral-5** `#c1c6cd`- **neutral-6** `#a5acb6`- **neutral-7** `#868f9b`- **neutral-8** `#6a7584`- **neutral-9** `#4f5b6c`- **neutral-10** `#334155`### Semantic Tokens- **colorSuccess** `#16a34a` - 成功、在线、已完成.- **colorSuccessBg** `#ddf0e7` - 成功状态浅背景.- **colorWarning** `#d97706` - 警告、待确认、需关注.- **colorWarningBg** `#f4eade` - 警告状态浅背景.- **colorError** `#dc2626` - 错误、危险、阻断.- **colorErrorBg** `#f5e5e7` - 错误状态浅背景.- **colorInfo** `#dbeafe` - 信息、链接、进行中.- **colorInfoBg** `#f5f8fc` - 信息状态浅背景.### Alias Tokens- **colorBgLayout** `#f4f6f9` - 应用整体画布.- **colorBgElevated** `#f2f5f7` - 弹层、浮层与菜单.- **colorBgSpotlight** `#4f5b6c` - Tooltip 与强提示.- **colorBorder** `#d8dce1` - 控件与容器边框.- **colorBorderSecondary** `#e8ebef` - 轻分隔线.- **colorText** `#334155` - 一级文本.- **colorTextSecondary** `#727c8a` - 二级文本.- **colorTextTertiary** `#969ea9` - 辅助说明.- **colorTextDisabled** `#b5bbc3` - 禁用文本.- **colorPrimaryHover** `#e3eefd` - 主操作 Hover.- **colorPrimaryActive** `#c7d6ea` - 主操作 Active.- **colorPrimaryBorder** `#e9f2fd` - 主色边框.- **colorPrimaryBg** `#f5f8fc` - 主色浅背景.- **colorLink** `#dbeafe` - 链接与可跳转文本.- **colorFocus** `#e9f2fd` - 键盘焦点环.- **colorMask** `#252f3d` - 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: 6-12px radius by default; increase only for expressive or highly tactile components.- Elevation and shadow: Use shadows to separate interactive or elevated surfaces only; avoid stacking many shadow styles.## 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 slow, soft transitions for surface changes, highlights, and overlays.- Avoid constant background motion behind readable text.- Respect reduced-motion preferences and provide a static equivalent.## 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 **Soft Gradient Surface**, 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- soft gradient- pastel- surface- ai- friendly## Agent Prompt SnippetImplement the UI in the **Soft Gradient Surface** 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 AI 工具, 效率应用, 欢迎页, while avoiding: 需要严肃可信、强数据密度或品牌色非常固定的场景。