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.
此技能可指导创建独特的生产级前端界面,避免生成AI常见的千篇一律的平庸设计。在实现可运行的真实代码时,需格外注重美学细节与创意选择。
用户需提供前端需求:待构建的组件、页面、应用或界面。他们可能会包含关于用途、受众或技术限制的背景信息。

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: Claude 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库。聚焦高影响力场景:一次精心编排的页面加载动画(配合animation-delay实现 staggered reveals),比零散的微交互更能带来愉悦感。使用滚动触发动画和令人惊喜的悬停状态。
  • 空间布局:打破常规的布局方式。不对称设计、元素重叠、斜向视觉流、突破网格限制的元素。充足的留白受控的信息密度。
  • 背景与视觉细节:营造氛围与层次感,而非默认使用纯色背景。添加符合整体美学风格的背景效果与纹理。运用创意形式,如渐变网格、噪点纹理、几何图案、分层透明效果、夸张阴影、装饰性边框、自定义光标和颗粒叠加层。
切勿使用AI生成的通用美学元素:如过度使用的字体家族(Inter、Roboto、Arial、系统字体)、老套的配色方案(尤其是白色背景搭配紫色渐变)、可预测的布局与组件模式,以及缺乏场景特色的模板化设计。
需创造性地解读需求,做出符合场景的独特选择。每个设计都应独一无二。在不同设计中切换明暗主题、不同字体、不同美学风格。切勿在多个设计中重复使用常见选择(例如Space Grotesk字体)。
重要提示:实现复杂度需与美学愿景匹配。极繁主义设计需要复杂的代码,包含大量动画与特效。极简主义或精致风格的设计则需要克制、精准,并注重间距、排版和细微细节。优雅的设计源于对愿景的完美落地。
请记住:Claude具备出色的创意能力。无需束缚,大胆展示跳出常规、全力打造独特愿景所能创造的成果。