AgentSkillsCN

frontend-design

在涉及 Web UI 开发的任务中,对前端视觉设计施加约束条件。当 Codex 被要求进行 UI/UX 设计与样式调整、构建前端布局,或为项目提出视觉方向时,尤其适用于在既定设计体系之外创建新页面或新组件的情况。

SKILL.md
--- frontmatter
name: frontend-design
description: Frontend visual design constraints for web UI tasks. Use when Codex is asked to design or style UI/UX, build frontend layouts, or propose visual direction, especially when creating new pages or components outside an established design system.

Frontend Design Constraints

Overview

Apply a bold, intentional visual direction for frontend work while keeping layouts usable on desktop and mobile.

Core Constraints

  • Avoid safe, average-looking layouts; make the design feel intentional and slightly surprising.
  • Choose expressive, purposeful fonts; avoid default stacks like Inter, Roboto, Arial, or system UI.
  • Define CSS variables for color and spacing to establish a clear visual direction.
  • Avoid purple-on-white defaults and avoid a default dark-mode bias.
  • Use a non-flat background: gradients, shapes, or subtle patterns to build atmosphere.
  • Add a few meaningful animations (page-load, staggered reveals); avoid generic micro-motions.
  • Ensure the page loads properly and remains readable on both desktop and mobile.

Exception

If working inside an existing website or design system, preserve its established patterns, structure, and visual language.

Execution Checklist

  1. Pick a clear visual direction (type, palette, background motif).
  2. Define CSS variables for colors, spacing, and typography early.
  3. Implement layout with responsive behavior and readable hierarchy.
  4. Add purposeful motion that supports content scanning.
  5. Review for default-stack fonts, purple bias, and flat backgrounds.