frontend-design

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
This 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.
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
本Skill指导创建独特的、生产级的前端界面,避免千篇一律的“AI敷衍式”审美风格。在实现可实际运行的代码时,需格外注重审美细节与创意选择。
用户需提供前端需求:需要构建的组件、页面、应用或界面。他们可能会包含关于用途、受众或技术限制的背景信息。

Project Design Foundation

项目设计基础

BEFORE designing anything, read these project docs to understand the established brand:
  • docs/design.md
    — Design system: Trust Bold theme, color palette (#2563eb), Inter typography, spacing, shadows, border radius (8px), dark mode tokens, component patterns. This is the source of truth for all visual decisions.
  • docs/sales.md
    — Brand voice, target audience (developers + BAs + IT management), competitive positioning vs Confluence, messaging tone (confident, direct, slightly provocative). Understand WHO we're designing for.
Key constraints from these docs:
  • Primary color: Trust Bold Blue
    #2563eb
    (more saturated than Confluence)
  • Font: Inter (NOT generic — it's an intentional brand choice for this project)
  • Tone: Professional confidence — modern but not intimidating for corporate BAs
  • Radius: 8px default, consistent with Linear/Notion SaaS aesthetic
  • Must work in both light and dark modes
在进行任何设计之前,请阅读以下项目文档以了解既定的品牌规范:
  • docs/design.md
    — 设计系统:采用Trust Bold主题,调色板(#2563eb),Inter字体,间距、阴影、边框圆角(8px),深色模式标识,组件模式。这是所有视觉决策的唯一依据。
  • docs/sales.md
    — 品牌调性、目标受众(开发人员 + 业务分析师 + IT管理人员)、与Confluence的竞争定位、传达语气(自信、直接、略带挑衅)。了解我们的设计服务对象。
来自这些文档的关键约束:
  • 主色调:Trust Bold Blue
    #2563eb
    (比Confluence的饱和度更高)
  • 字体:Inter(这不是通用字体——它是本项目的有意品牌选择)
  • 语气:专业且自信——现代化但不会让企业业务分析师感到有压力
  • 圆角:默认8px,与Linear/Notion等SaaS产品的审美风格保持一致
  • 必须同时支持亮色和深色模式

Design Thinking

设计思路

Before coding, understand the context and commit to a BOLD aesthetic direction:
  • Purpose: What problem does this interface solve? Who uses it?
  • Tone: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
  • Constraints: Technical requirements (framework, performance, accessibility).
  • Differentiation: What makes this UNFORGETTABLE? What's the one thing someone will remember?
CRITICAL: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
  • Production-grade and functional
  • Visually striking and memorable
  • Cohesive with a clear aesthetic point-of-view
  • Meticulously refined in every detail
在编码之前,先了解背景信息并确定一个大胆的审美方向:
  • 用途:该界面解决什么问题?谁在使用它?
  • 风格:选择一种极端风格:极简主义、极繁主义混乱、复古未来主义、有机自然风、奢华精致风、趣味玩具风、杂志编辑风、原始粗粝风、装饰艺术几何风、柔和马卡龙风、工业实用风等。有很多风格可供选择。可以将这些作为灵感,但要设计出符合既定审美方向的作品。
  • 约束:技术要求(框架、性能、可访问性)。
  • 差异化:什么让这个界面令人难忘?用户会记住的核心点是什么?
关键提示:选择清晰的概念方向并精准执行。大胆的极繁主义和精致的极简主义都可行——关键在于设计的目的性,而非风格的强烈程度。
随后实现可运行的代码(HTML/CSS/JS、React、Vue等),代码需满足:
  • 生产级且功能完整
  • 视觉冲击力强且令人难忘
  • 风格统一,具有明确的审美视角
  • 每一个细节都经过精心打磨

Frontend Aesthetics Guidelines

前端审美指南

Focus on:
  • Typography: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
  • Color & Theme: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
  • Motion: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
  • Spatial Composition: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
  • Backgrounds & Visual Details: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
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 (Space Grotesk, for example) across generations.
IMPORTANT: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
Remember: Agent 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.
重点关注:
  • 排版:选择美观、独特且有趣的字体。避免使用Arial、Inter等通用字体;转而选择能提升前端审美的独特字体;采用出人意料、富有个性的字体选择。将独特的标题字体与精致的正文字体搭配使用。
  • 色彩与主题:坚持统一的审美风格。使用CSS变量确保一致性。主色调搭配鲜明的强调色,效果优于平淡、均匀分布的调色板。
  • 动效:使用动画实现特效与微交互。优先为HTML采用纯CSS解决方案。如果可用,为React使用Motion库。专注于高影响力的时刻:一次精心编排的页面加载动画(带staggered reveals延迟显示效果)比零散的微交互更能带来愉悦感。使用滚动触发和令人惊喜的悬停状态。
  • 空间布局:打破常规的布局。不对称设计。元素重叠。斜向视觉流。突破网格限制的元素。充足的留白或可控的信息密度。
  • 背景与视觉细节:营造氛围和深度,而非默认使用纯色。添加符合整体审美的背景效果与纹理。运用创意形式,如渐变网格、噪点纹理、几何图案、分层透明效果、戏剧性阴影、装饰性边框、自定义光标和颗粒叠加层。
绝不要使用千篇一律的AI生成审美风格,比如过度使用的字体家族(Inter、Roboto、Arial、系统字体)、陈词滥调的配色方案(尤其是白色背景搭配紫色渐变)、可预测的布局和组件模式,以及缺乏场景特色的模板化设计。
要创造性地解读需求,做出符合场景的出人意料的设计选择。每个设计都应独一无二。在亮色与深色主题、不同字体、不同审美风格之间灵活切换。绝不要在多个设计中使用相同的常见选择(例如Space Grotesk字体)。
重要提示:实现复杂度需与审美愿景匹配。极繁主义设计需要包含大量动画和效果的复杂代码。极简主义或精致风格的设计则需要克制、精准,并注重间距、排版和细微细节的处理。优雅源于对愿景的完美执行。
请记住:Agent能够完成非凡的创意工作。不要有所保留,展示当你跳出思维定式并全心投入独特愿景时,真正能创造出什么作品。