AI UI Atlas
Mapping interface systems
给 coding agent 时可以直接复制下面这段,作为 UI 风格约束。
# Editorial 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 **Editorial Design** design language. 从杂志和平面出版借鉴大标题、跨栏布局、图文节奏和强主次,用于内容型产品和品牌叙事。Treat information architecture, scan paths, and component grouping as the main design material.## Aliases- 杂志化设计- publication layout## 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** `#fffaf0`- **reference-2** `#111827`- **reference-3** `#b91c1c`- **reference-4** `#facc15`- **reference-5** `#64748b`### Seed Tokens- **colorBgBase** `#fffaf0` - 页面基础背景.- **colorBgContainer** `#f7f2e9` - 卡片、面板与容器.- **colorFillSecondary** `#ece8e0` - 次级填充与弱状态.- **colorPrimary** `#facc15` - 品牌主操作与选中态.- **colorTextBase** `#111827` - 正文、图标与高对比轮廓.### Primary Scale- **primary-1** `#fff5da`- **primary-2** `#fef0c0`- **primary-3** `#fde9a1`- **primary-4** `#fce27e`- **primary-5** `#fbd952`- **primary-6** `#facc15`- **primary-7** `#deb617`- **primary-8** `#c2a119`- **primary-9** `#a68b1b`- **primary-10** `#86721e`### Neutral Scale- **neutral-1** `#fffaf0`- **neutral-2** `#f5f1e8`- **neutral-3** `#ece8e0`- **neutral-4** `#d9d6d0`- **neutral-5** `#bcbbb8`- **neutral-6** `#9b9b9c`- **neutral-7** `#75777b`- **neutral-8** `#54575f`- **neutral-9** `#323843`- **neutral-10** `#111827`### Semantic Tokens- **colorSuccess** `#16a34a` - 成功、在线、已完成.- **colorSuccessBg** `#e3f0dc` - 成功状态浅背景.- **colorWarning** `#d97706` - 警告、待确认、需关注.- **colorWarningBg** `#faead4` - 警告状态浅背景.- **colorError** `#b91c1c` - 错误、危险、阻断.- **colorErrorBg** `#f8e4db` - 错误状态浅背景.- **colorInfo** `#facc15` - 信息、链接、进行中.- **colorInfoBg** `#fef4d6` - 信息状态浅背景.### Alias Tokens- **colorBgLayout** `#faf6ec` - 应用整体画布.- **colorBgElevated** `#f8f3ea` - 弹层、浮层与菜单.- **colorBgSpotlight** `#323843` - Tooltip 与强提示.- **colorBorder** `#d9d6d0` - 控件与容器边框.- **colorBorderSecondary** `#ece8e0` - 轻分隔线.- **colorText** `#111827` - 一级文本.- **colorTextSecondary** `#5d6067` - 二级文本.- **colorTextTertiary** `#88898c` - 辅助说明.- **colorTextDisabled** `#aeadac` - 禁用文本.- **colorPrimaryHover** `#fbd952` - 主操作 Hover.- **colorPrimaryActive** `#deb617` - 主操作 Active.- **colorPrimaryBorder** `#fce27e` - 主色边框.- **colorPrimaryBg** `#fff5da` - 主色浅背景.- **colorLink** `#facc15` - 链接与可跳转文本.- **colorFocus** `#fce27e` - 键盘焦点环.- **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 restrained system sans or editorial serif/sans pairing only when the product explicitly benefits from publication-like rhythm.- Headlines can be large, but body copy must stay calm: 16-18px on desktop, 15-17px on mobile, line-height around 1.55-1.75.- Use weight changes sparingly; rely on size, spacing, and alignment before adding decoration.## Layout And Spacing- Use generous whitespace: 24-32px section gaps on mobile, 48-96px on desktop depending on content density.- Keep reading widths controlled; avoid full-width paragraphs.- Let spacing create hierarchy before adding borders, shadows, or accent blocks.- 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 reinforce the primary information structure rather than introduce a separate decorative style.- 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 **Editorial 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- editorial- magazine- typography- story## Agent Prompt SnippetImplement the UI in the **Editorial 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: 任务型系统、后台工具或需要快速批量录入的页面。