frontend-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThis skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
本技能指导打造独特的生产级前端界面,避免通用的"AI slop"风格。实现可正常运行的真实代码,同时格外注重美学细节与创意选择。
Refactoring UI Operating Model
UI重构操作模型
Use this decision order before reaching for effects:
- Start with a feature, not a shell: Design the specific user task first. Navigation, chrome, and decorative structure should follow the needs of the feature, not the other way around.
- Establish hierarchy in grayscale: First make the interface clear using spacing, size, weight, contrast, and grouping. If it doesn't work in grayscale, color won't save it.
- Define systems before details: Use constrained scales for spacing, type, color, radius, and elevation. Limit choices to reduce decision fatigue and make the result feel intentional.
- Choose personality through concrete levers: Express tone through font choice, color temperature, border radius, and language — not random effects.
- Polish last: Add color, depth, decoration, motion, and finishing touches only after hierarchy and systems are already working.
CRITICAL: Hierarchy beats decoration. Systems beat one-off tweaking. Restraint beats trend-chasing.
在添加特效前,请遵循以下决策顺序:
- 从功能入手,而非框架外壳:首先设计具体的用户任务。导航栏、界面框架和装饰性结构应服从功能需求,而非本末倒置。
- 以灰度模式建立层级:首先通过间距、尺寸、字重、对比度和分组让界面清晰易懂。如果灰度模式下效果不佳,颜色也无法挽救。
- 先定义系统,再处理细节:为间距、字体、颜色、圆角和层级使用约束性尺度系统。限制选择范围以减少决策疲劳,让最终效果更具目的性。
- 通过具体维度塑造个性:通过字体选择、色温、圆角和语言表达风格基调——而非随机特效。
- 最后进行精细化打磨:仅在层级和系统已完善后,再添加颜色、深度、装饰、动效和收尾细节。
关键原则:层级优先于装饰,系统优先于单次调整,克制优先于追随时尚。
Context Gathering Protocol
上下文收集规则
Design skills produce generic output without project context. You MUST have confirmed design context before doing any design work.
Required context — every design skill needs at minimum:
- Target audience: Who uses this product and in what context?
- Use cases: What jobs are they trying to get done?
- Brand personality/tone: How should the interface feel?
Individual skills may require additional context — check the skill's preparation section for specifics.
CRITICAL: You cannot infer this context by reading the codebase. Code tells you what was built, not who it's for or what it should feel like. Only the creator can provide this context.
Gathering order:
- Check current instructions (instant): If your loaded instructions already contain a Design Context section, proceed immediately.
- Check .better-web-ui.md (fast): If not in instructions, read from the project root. If it exists and contains the required context, proceed.
.better-web-ui.md - Check legacy context files (fallback): If does not exist yet, read
.better-web-ui.mdand then.better-ui.mdfrom the project root. If either exists and contains the required context, proceed, but prefer migrating to.impeccable.mdwhen possible..better-web-ui.md - Run setup (REQUIRED): If neither source has context, you MUST run $setup NOW before doing anything else. Do NOT skip this step. Do NOT attempt to infer context from the codebase instead.
缺乏项目上下文时,设计技能会生成通用输出。在开展任何设计工作前,你必须确认设计上下文。
必备上下文——每个设计技能至少需要:
- 目标受众:谁会使用该产品?使用场景是什么?
- 使用场景:用户需要完成哪些任务?
- 品牌个性/风格基调:界面应呈现怎样的感受?
个别技能可能需要额外上下文,请查看该技能的准备部分了解详情。
关键提示:你无法通过阅读代码库推断这些上下文。代码只能告诉你已构建的内容,而非受众或预期风格。只有产品创建者才能提供这些上下文。
收集顺序:
- 检查当前指令(即时):如果已加载的指令包含设计上下文部分,立即开始工作。
- 检查.better-web-ui.md文件(快速):如果指令中没有,读取项目根目录下的文件。若该文件存在且包含必备上下文,即可开始工作。
.better-web-ui.md - 检查遗留上下文文件(备选):若文件不存在,读取项目根目录下的
.better-web-ui.md和.better-ui.md文件。若其中任意文件存在且包含必备上下文,可开始工作,但尽可能优先迁移至.impeccable.md格式。.better-web-ui.md - 运行setup(必填):若上述来源均无上下文,你必须立即运行$setup,不得跳过此步骤,也不得尝试通过代码库推断上下文。
Framework & Library Guidance
框架与库使用指南
This skill library is intentionally framework-agnostic and library-agnostic.
When implementation details matter, follow this precedence:
- Detect and match the existing project stack first
- Respect explicit user choices for new projects second
- Use the default matrix only when the project is new and unspecified
The full precedence order, framework-default matrix, problem shorthand, and caveats live in framework defaults. Use that reference whenever you need to decide styling, component libraries, form architecture, table architecture, or virtualization defaults.
When the project uses a specific frontend framework or meta-framework, consult framework official docs before making framework-specific implementation decisions.
For Next.js specifically, if the project includes bundled version-matched docs at , read the relevant local Next.js doc there before coding. Treat those bundled docs as the source of truth for the installed version instead of relying on stale memory.
node_modules/next/dist/docs/When React-based fallback defaults are relevant, use component and block strategy to decide when to compose from primitives, when blocks are an appropriate accelerator, and how to avoid shipping generic library output unchanged. Use react shadcn accelerators when the request maps to a curated community component such as theme controls, consent, text motion, testimonial patterns, wheel pickers, or slide actions.
shadcn/uiWhen the project does not have a mature component library and you need to build or refine primitives from scratch, use component anatomy for practical anatomy guidance on custom components such as buttons, cards, checkboxes, dropdowns, tabs, textareas, toasts, toggles, tooltips, accordions, avatars, badges, borders, breadcrumbs, iconography, lists, and submit actions.
The more focused component-pattern references in this folder — such as accordion, breadcrumb, carousel, slider, date input, date-time picker, navigation menu, feature comparison, configurator, and complex table guidance — follow the same default. They are primarily for custom primitives, headless compositions, or plain HTML / CSS / JavaScript implementations. If a mature component library already owns the primitive well, use those references mainly to decide whether the pattern fits, how it should be composed, what defaults and states it needs, and how it should behave responsively around the library component instead of rewriting strong upstream anatomy, semantics, or accessibility behavior.
本技能库刻意保持框架无关与库无关。
当需要明确实现细节时,请遵循以下优先级:
- 优先检测并匹配现有项目技术栈
- 其次尊重用户针对新项目的明确选择
- 仅当项目为全新且未指定时,使用默认矩阵
完整的优先级顺序、框架默认矩阵、问题简写和注意事项请查看framework defaults。每当你需要决定样式、组件库、表单架构、表格架构或虚拟化默认设置时,均可参考该文档。
当项目使用特定前端框架或元框架时,在做出框架相关实现决策前,请查阅framework official docs。
针对Next.js,如果项目包含位于的捆绑版对应版本文档,请在编码前阅读相关本地Next.js文档。将这些捆绑文档视为已安装版本的权威来源,而非依赖过时记忆。
node_modules/next/dist/docs/当需要基于React的备选默认设置时,请使用component and block strategy决定何时从基元进行组合、何时使用区块作为合适的加速器,以及如何避免直接输出通用库内容。当请求对应主题控件、授权同意、文本动效、推荐语模式、滚轮选择器或滑动操作等精选社区组件时,请使用react shadcn accelerators。
shadcn/ui当项目没有成熟的组件库且需要从零开始构建或优化基元时,请使用component anatomy获取自定义组件的实用结构指南,例如按钮、卡片、复选框、下拉菜单、标签页、文本域、提示框、切换按钮、工具提示、折叠面板、头像、徽章、边框、面包屑、图标、列表和提交操作。
此文件夹中更聚焦的组件模式参考——如折叠面板、面包屑、轮播图、滑块、日期输入框、日期时间选择器、导航菜单、功能对比、配置器和复杂表格指南——遵循相同的默认规则。它们主要用于自定义基元、无头组件组合或纯HTML/CSS/JavaScript实现。如果成熟组件库已很好地实现了该基元,请主要使用这些参考来判断模式是否合适、应如何组合、需要哪些默认值和状态,以及如何围绕库组件实现响应式行为,而非重写上游优秀的结构、语义或可访问性行为。
Design Direction
设计方向
Treat design direction as a deliberate constraint system, not a vague tone adjective.
- Feature first: Identify the primary workflow or moment this screen must support before designing the shell around it.
- Purpose: What problem does this interface solve? Who uses it?
- Brand fit: What should this feel like for this specific company, product, audience, and promise?
- Content fit: How much copy, proof, imagery, navigation, and product detail must this layout support?
- Constraints: Technical requirements, performance budget, accessibility, and maintenance cost.
- Differentiation: What makes this memorable without making it harder to use?
Follow design directions when choosing or preserving a style.
That reference defines the approved website directions for this library, how to choose among them, where louder styles should stay selective, and which styles this library should not generate.
Use these rules by default:
- Existing project first: if the project already has a visual system, preserve its typography, palette, spacing rhythm, surface language, and interaction tone unless the user explicitly asks for a rebrand or larger style shift.
- Broad new-project requests choose from approved directions: if the user asks for a new landing page, marketing page, or several distinct directions without naming a style, select from the approved design directions based on the product idea and brand fit instead of inventing random vibe labels.
- Choose structure before effects: establish one primary structural direction first, then optionally add one supporting surface, typographic, motion, or expressive modifier.
- Keep core flows clearer than the shell: even when the marketing layer is more expressive, forms, tables, settings, auth, pricing comparisons, and error states should usually stay closer to minimalist, Swiss, flat, or similarly clarity-first behavior.
- Never default to retro / cyber / synthwave / terminal aesthetics: do not volunteer those directions from broad prompts in this library.
Apply a little pessimism up front:
- design the smallest useful version first
- do not imply functionality that is not ready to exist
- use rough exploration to make decisions quickly, then build the real thing early and iterate in short cycles
- lock typography, spacing, hierarchy, and CTA structure before layering on heavier style treatments
Use design process when the request is still fuzzy, when layout and flow decisions need to be clarified before polish, or when you need a cleaner progression from wireframe to styleguide to prototype.
Use design principles when the team needs clearer shared defaults, stronger product values, or a more durable decision-making point of view that explains both what to do and what to avoid.
Use ux strategy when the work needs clearer user-segment focus, priorities, high-value UX actions, feasibility framing, or risk-aware alignment with product and business goals before screen-level execution.
Use audience-sensitive design when the audience itself changes the UX — for example when designing for Gen Z, children, parents, older adults, or any audience with distinct device habits, trust patterns, or accessibility needs.
CRITICAL: Choose a clear conceptual direction and execute it with precision. Intentionality beats intensity. Typography, spacing, hierarchy, and content structure should still work even if decorative effects are temporarily removed.
Then implement working code that is:
- Production-grade and functional
- Visually striking and memorable
- Cohesive with a clear aesthetic point-of-view
- Meticulously refined in every detail
将设计方向视为刻意的约束系统,而非模糊的风格形容词。
- 功能优先:在设计界面框架前,先确定该屏幕必须支持的核心工作流或关键场景。
- 目标:该界面解决什么问题?受众是谁?
- 品牌适配:针对特定公司、产品、受众和承诺,界面应呈现怎样的感受?
- 内容适配:该布局需要承载多少文案、凭证、图片、导航和产品细节?
- 约束条件:技术要求、性能预算、可访问性和维护成本。
- 差异化:如何让界面令人难忘且不影响易用性?
选择或保留风格时,请遵循design directions。
该参考定义了本库认可的网站风格方向、选择方法、哪些风格应谨慎使用,以及本库不应生成的风格。
默认遵循以下规则:
- 现有项目优先:如果项目已有视觉系统,保留其排版、调色板、间距节奏、界面语言和交互风格,除非用户明确要求品牌重塑或大的风格转变。
- 宽泛的新项目请求从认可方向中选择:如果用户要求创建新的着陆页、营销页面或多个不同方向但未指定风格,请根据产品理念和品牌适配性从认可的设计方向中选择,而非随意创造风格标签。
- 先选择结构,再添加特效:先确定一个核心结构方向,再选择性添加一个辅助性的界面、排版、动效或表现力修饰符。
- 核心流程比框架更清晰:即使营销层更具表现力,表单、表格、设置、认证、价格对比和错误状态通常应保持极简、瑞士风格、扁平化或类似的以清晰为优先的风格。
- 默认不使用复古/赛博/合成波/终端风格:在本库中,不要主动从宽泛的提示中提供这些风格。
前期保持一定的谨慎:
- 先设计最小可用版本
- 不要暗示尚未实现的功能
- 通过粗略探索快速做决策,尽早构建真实版本并进行短周期迭代
- 在添加较重的风格处理前,先锁定排版、间距、层级和CTA结构
当请求仍不明确、需要在精细化前理清布局和流程决策,或需要从线框图到风格指南再到原型的清晰演进路径时,请使用design process。
当团队需要更清晰的共享默认值、更强的产品价值观或更可靠的决策视角(解释应做和不应做的事情)时,请使用design principles。
当工作需要更清晰的用户细分聚焦、优先级排序、高价值UX行动、可行性框架或与产品和业务目标的风险感知对齐后再进行界面级执行时,请使用ux strategy。
当受众本身会改变UX时——例如为Z世代、儿童、父母、老年人或任何具有独特设备使用习惯、信任模式或可访问性需求的受众设计时,请使用audience-sensitive design。
关键提示:选择清晰的概念方向并精准执行。目的性优先于强度。即使暂时移除装饰性特效,排版、间距、层级和内容结构仍应保持有效。
然后实现满足以下要求的可运行代码:
- 生产级且功能完整
- 视觉醒目且令人难忘
- 具有清晰美学视角的一致性
- 每个细节都经过精心打磨
Frontend Aesthetics Guidelines
前端美学指南
Typography
排版
→ Consult typography reference for scales, pairing, loading strategies, and font-selection heuristics. Use text hierarchy and readability for line length, line-height, baseline alignment, label/value treatment, link emphasis, numeric alignment, and semantic vs visual hierarchy.
Choose fonts that are beautiful, unique, and interesting. Pair a distinctive display font with a refined body font.
DO: Use a constrained, hand-crafted type scale; use modular ratios as inspiration, not as a prison
DO: Build hierarchy with weight, color, and spacing — not size alone
DO: Align mixed font sizes by their baseline when they appear on the same line
DO: Tighten headlines carefully and add letter-spacing to all-caps text when readability benefits
DO: When a hero or display headline wraps to multiple lines, reduce the size before crushing the leading; keep enough line-height and block padding that ascenders and descenders never clip
DON'T: Use overused fonts—Inter, Roboto, Arial, Open Sans, system defaults
DON'T: Use monospace typography as lazy shorthand for "technical/developer" vibes
DON'T: Use -based type scales for nested UI — they drift off-system fast
DON'T: Center long-form text; center works for short statements, not dense reading
DON'T: Put large icons with rounded corners above every heading—they rarely add value and make sites look templated
em→ 如需了解尺度、搭配、加载策略和字体选择规则,请查阅typography reference。如需了解行宽、行高、基线对齐、标签/值处理、链接强调、数字对齐以及语义与视觉层级,请使用text hierarchy and readability。
选择美观、独特且有趣的字体。将独特的标题字体与精致的正文字体搭配。
建议:使用约束性的手工打造字体尺度;将模块化比例作为灵感,而非严格规则
建议:通过字重、颜色和间距构建层级——而非仅依赖尺寸
建议:当不同字号的字体出现在同一行时,按基线对齐
建议:谨慎收紧标题间距,当有助于可读性时,为全大写文本增加字间距
建议:当主标题或标题换行时,先缩小字号再调整行高;保持足够的行高和块内边距,避免字母的升部和降部被截断
禁止:使用过度流行的字体——Inter、Roboto、Arial、Open Sans、系统默认字体
禁止:将等宽字体作为表示"技术/开发者"风格的偷懒方式
禁止:在嵌套UI中使用基于的字体尺度——会快速偏离系统规范
禁止:让长文本居中;居中仅适用于短句,不适用于密集阅读内容
禁止:在每个标题上方添加带圆角的大图标——几乎没有价值,会让网站看起来像模板
emColor & Theme
颜色与主题
→ Consult color reference for OKLCH, palettes, and dark mode. Use colorblindness UX when semantic states, charts, active states, or category colors must remain distinguishable under color-vision deficiencies. Use color ramp workflow when building or repairing ramps. Use semantic color when color is carrying status, alerts, or meaning. Use data visualization when presenting data through charts, graphs, or plots.
Commit to a cohesive palette. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
DO: Start in grayscale, then layer color on top of an already-clear hierarchy
DO: Use modern CSS color functions (oklch, color-mix, light-dark) for perceptually uniform, maintainable palettes
DO: Define shades up front — greys need a real scale, primary and accent colors need multiple usable stops
DO: Tint your neutrals toward your brand hue—even a subtle hint creates subconscious cohesion
DO: Prefer dark text on light tinted surfaces when you need accessible, lower-emphasis colored panels
DON'T: Use gray text on colored backgrounds—it looks washed out; use a shade of the background color instead
DON'T: Blindly or your way into 35 nearly identical shades
DON'T: Use pure black (#000) or pure white (#fff)—always tint; pure black/white never appears in nature
DON'T: Use the AI color palette: cyan-on-dark, purple-to-blue gradients, neon accents on dark backgrounds
DON'T: Use gradient text for "impact"—especially on metrics or headings; it's decorative rather than meaningful
DON'T: Default to dark mode with glowing accents—it looks "cool" without requiring actual design decisions
lighten()darken()→ 如需了解OKLCH、调色板和暗黑模式,请查阅color reference。当语义状态、图表、激活状态或分类颜色在色觉缺陷下必须保持可区分时,请使用colorblindness UX。当构建或修复颜色渐变时,请使用color ramp workflow。当颜色用于传达状态、警报或含义时,请使用semantic color。当通过图表、图形或绘图展示数据时,请使用data visualization。
致力于打造连贯的调色板。主色调搭配鲜明的强调色,效果优于平淡、均匀分布的调色板。
建议:从灰度模式开始,在已清晰的层级基础上添加颜色
建议:使用现代CSS颜色函数(oklch、color-mix、light-dark)打造感知均匀、易于维护的调色板
建议:预先定义色调——灰色需要真实的尺度,主色和强调色需要多个可用的色阶
建议:将中性色向品牌色调微调——即使是细微的色调也能创造潜意识的连贯性
建议:当需要可访问、低强调的彩色面板时,优先选择浅色背景配深色文本
禁止:在彩色背景上使用灰色文本——会显得褪色;应使用背景色的同色系色调
禁止:盲目使用或生成35个几乎相同的色调
禁止:使用纯黑色(#000)或纯白色(#fff)——始终添加色调;纯黑/纯白在自然界中不存在
禁止:使用AI风格调色板:深色背景配青色文本、紫到蓝渐变、深色背景配霓虹强调色
禁止:使用渐变文本追求"冲击力"——尤其是用于指标或标题;这只是装饰而非有意义的设计
禁止:默认使用带发光强调色的暗黑模式——看起来"酷炫"但无需实际设计决策
lighten()darken()Layout & Space
布局与空间
→ Consult spatial reference for grids, rhythm, and container queries. Use spacing system and hierarchy checklist when composition or grouping is weak.
Create visual rhythm through varied spacing—not the same padding everywhere. Embrace asymmetry and unexpected compositions. Break the grid intentionally for emphasis.
DO: Start with more white space than feels necessary, then remove it until the design feels balanced
DO: Create visual rhythm through varied spacing—tight groupings, generous separations
DO: Use fluid spacing with clamp() that breathes on larger screens
DO: Use asymmetry and unexpected compositions; break the grid intentionally for emphasis
DO: Keep more space around groups than within them to avoid ambiguous spacing
DO: Break long pages into clear logical blocks; equal-weight sections should usually keep consistent outer spacing and shared backgrounds should wrap the whole related block, not just a narrow heading strip
DO: Give components the width they actually need; fixed widths are often better than fluid widths for sidebars, forms, and cards
DON'T: Wrap everything in cards—not everything needs a container
DON'T: Nest cards inside cards—visual noise, flatten the hierarchy
DON'T: Use identical card grids—same-sized cards with icon + heading + text, repeated endlessly
DON'T: Use the hero metric layout template—big number, small label, supporting stats, gradient accent
DON'T: Center everything—left-aligned text with asymmetric layouts feels more designed
DON'T: Stretch every section just because the viewport is wide
DON'T: Use the same spacing everywhere—without rhythm, layouts feel monotonous
→ 如需了解网格、节奏和容器查询,请查阅spatial reference。当构图或分组效果不佳时,请使用spacing system和hierarchy checklist。
通过多样化的间距创造视觉节奏——而非处处使用相同的内边距。拥抱不对称和意外构图。为了强调,刻意打破网格。
建议:从比预期更多的留白开始,然后逐步减少直到设计感觉平衡
建议:通过多样化的间距创造视觉节奏——紧密分组、宽松分隔
建议:使用带clamp()的流体间距,在大屏幕上自适应调整
建议:使用不对称和意外构图;为了强调,刻意打破网格
建议:在组与组之间保留更多空间,避免间距模糊
建议:将长页面分成清晰的逻辑块;权重相同的区块通常应保持一致的外部间距,相关区块应使用统一背景包裹整个内容,而非仅包裹狭窄的标题条
建议:为组件设置实际需要的宽度;对于侧边栏、表单和卡片,固定宽度通常比流体宽度更好
禁止:将所有内容包裹在卡片中——并非所有内容都需要容器
禁止:在卡片内嵌套卡片——会造成视觉噪音,削弱层级
禁止:使用相同尺寸的卡片网格——图标+标题+文本的相同卡片反复出现
禁止:使用主指标布局模板——大数字、小标签、辅助统计数据、渐变强调色
禁止:让所有内容居中——左对齐文本搭配不对称布局更具设计感
禁止:仅仅因为视口较宽就拉伸每个区块
禁止:处处使用相同的间距——没有节奏的布局会显得单调
Visual Details
视觉细节
→ Consult elevation system for shadow levels, raised/inset logic, and depth mapping. Use surface separation when deciding between spacing, borders, shadows, overlap, and background shifts. Use finishing touches for tasteful default upgrades, accent borders, and decorative backgrounds. Use personality levers when the tone feels vague. Use ai slop detection when the design risks looking generic or trend-chasing.
DO: Use intentional, purposeful decorative elements that reinforce brand
DO: Create a small elevation system; shadows should communicate z-depth, not exist as default garnish
DO: Use background shifts, spacing, and subtle shadows before reaching for borders everywhere
DO: Treat louder style treatments such as glass, soft UI, clay, brutalist accents, or 3D elements as selective tools unless the chosen direction genuinely supports broad use
DON'T: Use glassmorphism everywhere—blur effects, glass cards, glow borders used decoratively rather than purposefully
DON'T: Use rounded elements with thick colored border on one side—a lazy accent that almost never looks intentional
DON'T: Use sparklines as decoration—tiny charts that look sophisticated but convey nothing meaningful
DON'T: Use rounded rectangles with generic drop shadows—safe, forgettable, could be any AI output
DON'T: Add realism or depth effects that don't clarify elevation or interaction
DON'T: Mix multiple loud style families at once without a clear hierarchy of what is primary versus supporting
DON'T: Use modals unless there's truly no better alternative—modals are lazy
→ 如需了解阴影层级、凸起/内嵌逻辑和深度映射,请查阅elevation system。当需要在间距、边框、阴影、重叠和背景变化之间做选择时,请使用surface separation。如需了解有品位的默认升级、强调边框和装饰性背景,请使用finishing touches。当风格基调模糊时,请使用personality levers。当设计有变得通用或追随时尚的风险时,请使用ai slop detection。
建议:使用有目的性的装饰元素,强化品牌形象
建议:创建小型层级系统;阴影应传达z轴深度,而非作为默认装饰
建议:在处处使用边框前,优先使用背景变化、间距和细微阴影
建议:将玻璃态、软UI、黏土风格、粗野主义强调或3D元素等强烈风格作为选择性工具,除非所选方向确实支持广泛使用
禁止:处处使用玻璃态——模糊效果、玻璃卡片、发光边框仅用于装饰而非有目的的设计
禁止:使用单侧带粗彩色边框的圆角元素——偷懒的装饰,几乎从不显得有目的性
禁止:使用迷你折线图作为装饰——看起来精致但无实际意义
禁止:使用带通用阴影的圆角矩形——安全、易被遗忘,可能是任何AI生成的内容
禁止:添加无法明确层级或交互的写实或深度效果
禁止:同时混合多种强烈风格家族,而不明确主次要层级
禁止:除非没有更好的替代方案,否则不要使用模态框——模态框是偷懒的选择
Images & Media
图片与媒体
→ Consult image treatment when working with photos, screenshots, icons, illustrations, user-uploaded media, overlays, and image readability. Use hero sections UX when above-the-fold visuals, homepage openings, or landing-page first impressions need stronger clarity, proof, performance discipline, or a decision about whether a hero image should exist at all. Use aspect ratio and card orientation when media proportions, crop rules, browse-vs-evaluate card layouts, or responsive card/media rhythm materially affect clarity and flow.
DO: Treat image contrast problems as image-treatment problems first, not typography failures
DO: Keep screenshots large or focused enough to communicate something useful
DO: Keep icons close to the scale they were designed for unless they were made to scale illustratively
DO: Place hero copy in a visually quiet part of the image and keep it off faces, product details, or other meaningful focal points
DO: Force user-uploaded media into controlled shapes and predictable containers
DON'T: Scale screenshots down until they become eye tests
DON'T: Blow tiny icons up into chunky placeholders for real illustration
DON'T: Let user-uploaded images dictate layout shape or bleed into the background
→ 如需了解照片、截图、图标、插图、用户上传媒体、叠加层和图片可读性,请查阅image treatment。当首屏视觉、首页开场或着陆页第一印象需要更强的清晰度、凭证、性能规范或决定是否需要主图时,请使用hero sections UX。当媒体比例、裁剪规则、浏览与评估卡片布局或响应式卡片/媒体节奏对清晰度和流程有重大影响时,请使用aspect ratio and card orientation。
建议:首先将图片对比度问题视为图片处理问题,而非排版问题
建议:保持截图足够大或聚焦,以传达有用信息
建议:保持图标接近其设计尺寸,除非是为了插画目的而缩放
建议:将主图文案放在图片的视觉安静区域,避免覆盖人脸、产品细节或其他重要焦点
建议:将用户上传的媒体限制在受控形状和可预测容器内
禁止:将截图缩小到难以看清的程度
禁止:将小图标放大成占位符,替代真实插图
禁止:让用户上传的图片决定布局形状或渗透到背景中
Motion
动效
→ Consult motion reference for timing, easing, and reduced motion.
Focus on high-impact moments: one well-orchestrated page load with staggered reveals creates more delight than scattered micro-interactions.
DO: Use motion to convey state changes—entrances, exits, feedback
DO: Use exponential easing (ease-out-quart/quint/expo) for natural deceleration
DO: For height animations, use grid-template-rows transitions instead of animating height directly
DON'T: Animate layout properties (width, height, padding, margin)—use transform and opacity only
DON'T: Use bounce or elastic easing—they feel dated and tacky; real objects decelerate smoothly
→ 如需了解时长、缓动和简化动效,请查阅motion reference。
聚焦高影响力时刻:一次精心编排的页面加载与渐显效果,比零散的微交互更能带来愉悦感。
建议:使用动效传达状态变化——入场、退场、反馈
建议:使用指数缓动(ease-out-quart/quint/expo)实现自然减速
建议:对于高度动画,使用grid-template-rows过渡而非直接动画height属性
禁止:动画布局属性(width、height、padding、margin)——仅使用transform和opacity
禁止:使用弹跳或弹性缓动——显得过时且俗气;真实物体是平滑减速的
Interaction
交互
→ Consult interaction design for forms, focus, loading patterns, Jakob's Law, and Fitts's Law.
Forms and validation
- disabled buttons UX — blocked primary actions, in-progress locking, unavailable actions
- destructive action UX — delete, archive, remove, revoke, undo-vs-confirm, bulk destructive actions
- accordion UX — FAQs, disclosure groups, product-detail accordions, settings sections
- live validation UX — inline validation timing, blur-vs-real-time, reward-early/punish-late
- error recovery — field errors, error summaries, strict validators, recoverable failure handling
- date input UX — date of birth, memorable-date forms
- date-time picker UX — booking calendars, date-range pickers, time-slot selection
Navigation and wayfinding
- information architecture UX — large product suites, settings architecture, cross-product navigation
- sidebar and footer UX — right rails, support panels, support-heavy footers
- navigation menu UX — mega-dropdowns, header navigation, hover vs click menus
- breadcrumb UX — nested navigation, breadcrumb trails, current-location cues, docs hierarchies
- search and findability — site search, command palettes, autosuggest, zero-results recovery
- search and filtering UX — autocomplete, filter architecture, result presentation, zero-results recovery
Commerce and content
- collection browsing and filtering — long result lists, faceted browsing, filter overlays
- complex table UX — data grids, pinned columns, header filters, row selection, validation inside tables
- data visualization — chart type selection, responsive patterns, accessible data tables, tooltips, and annotations
- feature comparison UX — comparison tables, side-by-side specs, shortlist compare flows
- configurator UX — product builders, step-based configuration, real-time option previews
- slider UX — range sliders, loan or pricing calculators, dual-handle filters
- carousel UX — carousels, gallery rails, testimonial sliders, feature rails
- ecommerce UX — category pages, product pages, shopping flows, carts, checkout
- reviews and ratings — product reviews, recommendation signals, customer-photo proof
- social proof patterns — testimonials, customer logos, review badges, case studies
- pricing and packaging — pricing pages, plan comparison, billing settings
- paywalls and upgrade flows — feature locks, usage limits, trials, upgrade prompts
Feedback and status
- micro failures and perceived quality — flaky feeling from tiny jank, weak feedback, vanishing menus, or haunted-looking behavior
- loading feedback and perceived performance — skeletons, stale-data cues, optimistic UI, streaming content, honest waiting states
- status communication — validations, notifications, badges, inboxes, activity feeds
- form validation patterns — when to validate, error placement, multi-field dependencies, async validation, recovery design
- notification and permissions — browser permission prompts, push strategy, notification centers, denied recovery
- empty-state patterns — zero-data surfaces
- component accessibility — keyboard support, focus indicators, skip links, modal focus handling, hidden content, current-page states
Legacy and resilience
- behavioral design — progressive disclosure, priming, framing, completion cues, pricing choice architecture
- onboarding UX — first-run sequencing, activation, aha moments, tours vs checklists
- predictive and intent-driven UI — recommendations, smart defaults, resume flows
- legacy modernization — legacy systems, hybrid old/new flows, migration-roadmap decisions
- offline and resilience — service worker UX, stale-while-revalidate, sync queues, conflict resolution
- cognitive load — Hick's Law and Miller's Law in practice
- authentication and account recovery — sign-in, sign-up, password setup, session expiry, two-factor flows, lockouts
- permissions and roles UX — role models, request-access flows, capability boundaries, admin-vs-member behavior
- language and locale selection — language selectors, market overrides, currency or shipping preferences
Use action hierarchy when deciding which controls should lead, recede, disappear, or escalate in destructive confirmations.
Use for zero-data surface design. Use for broader activation strategy, aha moments, tours, and first-run education.
Use when frequent interactions feel sluggish or break flow. Use when permissions, destructive actions, automation, or admin power need stronger safeguards.
empty-stateonboardoptimizehardenMake interactions feel fast. Use optimistic UI—update immediately, sync later.
DO: Use progressive disclosure—start simple, reveal sophistication through interaction (basic options first, advanced behind expandable sections; hover states that reveal secondary actions)
DO: Use familiar patterns for familiar tasks—navigation, search, tabs, dropdowns, tables, filters, forms, pagination, and settings should behave the way strong products already taught users to expect
DO: Use the least interruptive status pattern that still works—inline validation, quiet indicators, inboxes, summaries, and toasts should not all compete for the same urgency
DO: Build on existing workflow knowledge before proposing a big-bang rewrite of a legacy system; hybrid coexistence and staged migration are often the more honest design problem
DO: Design empty states that teach the interface, not just say "nothing here"
DO: Make every interactive surface feel intentional and responsive
DO: Design actions in a real hierarchy — one primary action, a few secondary actions, and quiet tertiary actions
DO: Make common actions easy to hit — generous targets, whole-row labels where appropriate, and close placement to the content being acted on
DO: Give users control over noisy systems with calm defaults, digest modes, mute paths, snooze options, or quiet hours when notification volume could become disruptive
DON'T: Repeat the same information—redundant headers, intros that restate the heading
DON'T: Invent custom interaction models for standard controls unless the gain is obvious and significant
DON'T: Make every button primary—use ghost buttons, text links, secondary styles; hierarchy matters
DON'T: Treat every status update like a warning, toast, push notification, or growth prompt just because the system can send one
DON'T: Assume replacing a legacy surface from scratch is automatically safer than documenting workflows, reducing seam pain, and migrating incrementally with users
→ 如需了解表单、焦点、加载模式、雅各布定律和菲茨定律,请查阅interaction design。
表单与验证
- disabled buttons UX —— 禁用的主要操作、进行中的锁定、不可用操作
- destructive action UX —— 删除、归档、移除、撤销、撤销与确认、批量破坏性操作
- accordion UX —— 常见问题、信息披露组、产品详情折叠面板、设置区块
- live validation UX —— 实时验证时机、失焦与实时验证、提前奖励/延迟惩罚
- error recovery —— 字段错误、错误汇总、严格验证器、可恢复故障处理
- date input UX —— 出生日期、重要日期表单
- date-time picker UX —— 预订日历、日期范围选择器、时间段选择
导航与寻路
- information architecture UX —— 大型产品套件、设置架构、跨产品导航
- sidebar and footer UX —— 右侧栏、支持面板、以支持为主的页脚
- navigation menu UX —— 大型下拉菜单、头部导航、悬停与点击菜单
- breadcrumb UX —— 嵌套导航、面包屑路径、当前位置提示、文档层级
- search and findability —— 站点搜索、命令面板、自动建议、无结果恢复
- search and filtering UX —— 自动完成、筛选架构、结果展示、无结果恢复
商务与内容
- collection browsing and filtering —— 长结果列表、分面浏览、筛选叠加层
- complex table UX —— 数据网格、固定列、表头筛选、行选择、表格内验证
- data visualization —— 图表类型选择、响应式模式、可访问数据表格、工具提示和注释
- feature comparison UX —— 对比表格、并排规格、候选列表对比流程
- configurator UX —— 产品构建器、分步配置、实时选项预览
- slider UX —— 范围滑块、贷款或定价计算器、双柄筛选器
- carousel UX —— 轮播图、图库轨道、推荐语滑块、功能轨道
- ecommerce UX —— 分类页面、产品页面、购物流程、购物车、结账
- reviews and ratings —— 产品评论、推荐信号、客户照片凭证
- social proof patterns —— 推荐语、客户标志、评论徽章、案例研究
- pricing and packaging —— 定价页面、方案对比、账单设置
- paywalls and upgrade flows —— 功能锁定、使用限制、试用、升级提示
反馈与状态
- micro failures and perceived quality —— 微小卡顿、弱反馈、消失菜单或异常行为带来的不稳定感
- loading feedback and perceived performance —— 骨架屏、 stale-data提示、乐观UI、流式内容、真实等待状态
- status communication —— 验证、通知、徽章、收件箱、活动流
- form validation patterns —— 验证时机、错误位置、多字段依赖、异步验证、恢复设计
- notification and permissions —— 浏览器权限提示、推送策略、通知中心、拒绝后恢复
- empty-state patterns —— 无数据界面
- component accessibility —— 键盘支持、焦点指示器、跳转链接、模态框焦点处理、隐藏内容、当前页面状态
遗留系统与韧性
- behavioral design —— 渐进式披露、引导、框架、完成提示、定价选择架构
- onboarding UX —— 首次运行流程、激活、aha时刻、引导与清单
- predictive and intent-driven UI —— 推荐、智能默认值、恢复流程
- legacy modernization —— 遗留系统、新旧混合流程、迁移路线图决策
- offline and resilience —— 服务工作者UX、 stale-while-revalidate、同步队列、冲突解决
- cognitive load —— 希克定律和米勒定律的实际应用
- authentication and account recovery —— 登录、注册、密码设置、会话过期、双因素流程、锁定
- permissions and roles UX —— 角色模型、权限申请流程、能力边界、管理员与成员行为差异
- language and locale selection —— 语言选择器、市场覆盖、货币或配送偏好
当决定哪些控件应突出、隐藏、消失或在破坏性确认中升级时,请使用action hierarchy。
使用进行无数据界面设计。使用进行更广泛的激活策略、aha时刻、引导和首次运行教育。
当频繁交互感觉迟缓或打断流程时,使用。当权限、破坏性操作、自动化或管理员权限需要更强的安全保障时,使用。
empty-stateonboardoptimizeharden让交互感觉快速。使用乐观UI——立即更新,稍后同步。
建议:使用渐进式披露——从简单开始,通过交互展现复杂功能(先显示基本选项,高级选项放在可展开区块后;悬停状态显示次要操作)
建议:针对熟悉的任务使用熟悉的模式——导航、搜索、标签页、下拉菜单、表格、筛选器、表单、分页和设置的行为应符合优秀产品已教会用户的预期
建议:使用最不干扰的状态模式——内联验证、安静指示器、收件箱、汇总和提示框不应同时争夺用户注意力
建议:在提议彻底重写遗留系统前,先基于现有工作流程知识进行构建;混合共存和分阶段迁移通常更符合实际设计需求
建议:设计能指导用户使用界面的无数据状态,而非仅显示"此处无内容"
建议:让每个交互界面都感觉有目的性且响应迅速
建议:按真实层级设计操作——一个主要操作、几个次要操作和安静的三级操作
建议:让常用操作易于点击——目标区域足够大,必要时使用整行标签,且靠近操作的内容
建议:通过默认安静模式、摘要模式、静音路径、 snooze选项或安静时段,让用户控制嘈杂系统,避免通知量过大造成干扰
禁止:重复信息——冗余标题、重复标题的介绍
禁止:为标准控件发明自定义交互模型,除非收益明显且显著
禁止:让所有按钮都成为主要按钮——使用幽灵按钮、文本链接、次要样式;层级很重要
禁止:仅仅因为系统可以发送,就将每个状态更新都视为警告、提示框、推送通知或增长提示
禁止:假设从零开始替换遗留界面自动比记录工作流程、减少衔接痛苦并与用户分阶段迁移更安全
Responsive
响应式设计
→ Consult responsive reference for narrow-first strategy, fluid design, natural widths, column rebalancing, and container queries.
DO: Use container queries (@container) for component-level responsiveness
DO: Adapt the interface for different contexts—don't just shrink it
DON'T: Hide critical functionality in narrow layouts—adapt the interface, don't amputate it
→ 如需了解窄屏优先策略、流体设计、自然宽度、列重排和容器查询,请查阅responsive reference。
建议:使用容器查询(@container)实现组件级响应式
建议:针对不同上下文适配界面——而非仅缩小尺寸
禁止:在窄屏布局中隐藏关键功能——适配界面,而非删减功能
UX Writing
UX文案
→ Consult ux-writing reference for labels, errors, and empty states. Use interface honesty when wording, progress cues, consent, unsubscribe/cancel flows, or upgrade prompts risk sounding evasive, manipulative, or faux-friendly. Use error recovery when the problem is not just message wording, but how users discover, understand, and fix errors in context. Use marketing copywriting when the task involves headlines, landing pages, product positioning, onboarding promises, lifecycle messages, marketplace listings, or CTA strategy. Use social proof patterns when the copy depends on testimonial framing, case-study proof, certifications, or the placement of credibility signals near claims and CTAs. Use copy editing sweeps when improving existing copy through focused passes instead of rewriting blindly. Pair those with pricing and packaging and paywalls and upgrade flows when the copy needs to explain plans, billing, renewals, upgrades, or value without sliding into pressure tactics.
DO: Make every word earn its place
DON'T: Repeat information users can already see
Use for zero-data surface design. Use for broader activation strategy, first-run learning, aha moments, tours, and adoption planning.
empty-stateonboard→ 如需了解标签、错误和无数据状态,请查阅ux-writing reference。当文案、进度提示、授权同意、退订/取消流程或升级提示有模糊、操纵或虚假友好的风险时,请使用interface honesty。当问题不仅是文案措辞,还涉及用户如何在上下文中发现、理解和修复错误时,请使用error recovery。当任务涉及标题、着陆页、产品定位、入职承诺、生命周期消息、市场列表或CTA策略时,请使用marketing copywriting。当文案依赖推荐语框架、案例研究凭证、认证或在声明和CTA附近放置可信度信号时,请使用social proof patterns。当通过聚焦修改而非盲目重写来优化现有文案时,请使用copy editing sweeps。当文案需要解释方案、账单、续订、升级或价值而不陷入施压策略时,请结合使用pricing and packaging和paywalls and upgrade flows。
建议:让每个字都有存在的价值
禁止:重复用户已能看到的信息
使用进行无数据界面设计。使用进行更广泛的激活策略、首次运行学习、aha时刻、引导和采用规划。
empty-stateonboardProduct Ethics & Defaults
产品伦理与默认规则
When tradeoffs appear, default to this order:
- Clarity
- Task completion speed
- Error prevention
- Familiar interaction patterns
- Visual polish
- Advanced flexibility
Do not sacrifice the top of the list just to improve the bottom.
当出现权衡时,默认遵循以下顺序:
- 清晰度
- 任务完成速度
- 错误预防
- 熟悉的交互模式
- 视觉精细化
- 高级灵活性
不要为了提升后项而牺牲前项。
Never Use Dark Patterns
绝不使用暗黑模式
The interface must not rely on confusion, obstruction, guilt, concealment, or misleading hierarchy to drive product-favoring outcomes.
DO:
- make choices, pricing, consent, and consequences easy to understand
- keep unsubscribe, cancellation, privacy, and downgrade paths straightforward
- use truthful warnings, real opt-in, and fair defaults
- preserve user autonomy, informed consent, and reversibility whenever possible
DON'T:
- hide important information behind weak contrast, obscure placement, or misleading labels
- make cancellation harder than signup
- preselect exploitative options just to raise conversion
- use fake urgency, fake scarcity, shame copy, or ambiguous destructive confirmations
- improve metrics by making decisions less informed or harder to reverse
界面不得依赖混淆、阻碍、内疚、隐瞒或误导性层级来驱动有利于产品的结果。
建议:
- 让选择、定价、授权同意和后果易于理解
- 保持退订、取消、隐私和降级路径简单直接
- 使用真实警告、真实选择加入和公平默认值
- 尽可能保留用户自主权、知情同意和可逆性
禁止:
- 通过低对比度、模糊位置或误导性标签隐藏重要信息
- 让取消操作比注册更难
- 预先选择剥削性选项以提高转化率
- 使用虚假紧迫感、虚假稀缺性、羞辱性文案或模糊的破坏性确认
- 通过降低决策信息透明度或增加可逆难度来提升指标
The AI Slop Test
AI Slop测试
Critical quality check: If you showed this interface to someone and said "AI made this," would they believe you immediately? If yes, that's the problem.
A distinctive interface should make someone ask "how was this made?" not "which AI made this?"
Review the DON'T guidelines above—they are the fingerprints of AI-generated work from 2024-2025.
Consult ai slop detection for the consolidated anti-pattern list.
关键质量检查:如果你向某人展示这个界面并说"这是AI做的",他们会立刻相信吗?如果是,那就是问题所在。
一个独特的界面应该让别人问"这是怎么做出来的?"而不是"这是哪个AI做的?"
回顾上面的禁止指南——它们是2024-2025年AI生成内容的典型特征。
如需查看完整的反模式列表,请查阅ai slop detection。
Implementation Principles
实现原则
Match implementation complexity to the aesthetic vision. Heavier styles such as glass, soft UI, clay, 3D, or other custom-surface treatments increase CSS complexity, state design work, accessibility risk, and performance tuning cost. Restrained directions still need precision, not less effort.
Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices across generations.
Remember these quality checks while implementing:
- Can someone identify the primary, secondary, and tertiary elements within two seconds?
- Are spacing, typography, color, radius, and elevation decisions coming from systems instead of one-off tweaks?
- Does the personality come through in font, color, radius, and language?
- Would the design still feel good if color were temporarily removed?
Remember: GPT is capable of extraordinary creative work. Don't hold back—show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
让实现复杂度与美学愿景匹配。玻璃态、软UI、黏土风格、3D或其他自定义界面处理等较重的风格会增加CSS复杂度、状态设计工作量、可访问性风险和性能调优成本。简约风格仍需要精准,而非更少的努力。
创造性地解读并做出适合上下文的意外选择。没有两个设计应该相同。在亮色与暗色主题、不同字体、不同美学之间变化。绝不要在多个版本中收敛于常见选择。
实现时请记住以下质量检查:
- 有人能在两秒内识别出主要、次要和三级元素吗?
- 间距、排版、颜色、圆角和层级决策是否来自系统而非单次调整?
- 字体、颜色、圆角和语言是否能体现个性?
- 如果暂时移除颜色,设计仍会感觉良好吗?
请记住:GPT能够完成非凡的创造性工作。不要退缩——展示跳出思维定式并完全致力于独特愿景时真正能创造的东西。