frontend-design
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Frontend Design Skills
Modern UI/UX design patterns, guidelines, and frontend implementation rules to build production-grade user interfaces.
When to Activate
- Designing or implementing user interfaces, pages, or components
- Structuring layout, typography, colors, and responsive design
- Refining visual hierarchy and interaction models
Core Principles
-
Visual Hierarchy & Flow
- Establish clear page anchors and reading order (Z-pattern or F-pattern).
- Use proportional spacing: items related to each other should be closer together than unrelated items (Law of Proximity).
- Differentiate levels of information using font size, weight, and color contrast.
-
Typography System
- Limit font families to a maximum of 2 (one for headings, one for body/UI).
- Enforce a strict typographic scale (e.g., 12px, 14px, 16px, 20px, 24px, 32px, 48px).
- Maintain line heights between 1.4 and 1.6 for body text, and 1.1 to 1.25 for large headings.
-
Color & Contrast
- Define a single primary brand color, a clear accent, and a solid neutral scale (grays).
- Follow WCAG 2.1 AA requirements: minimum 4.5:1 for normal text, 3:1 for large text and UI components.
- Use semantic colors consistently: green for success, red for destructive/error, yellow for warnings.
-
Layout & Spacing
- Rely on a 4px or 8px grid system for all padding, margins, and gaps.
- Avoid hardcoded component widths; prefer flexbox, grid, and fluid percentage/auto sizing.
- Maintain consistent padding inside cards, containers, and modals.
-
Interactions & Feedback
- Provide clear hover, focus-visible, and active states for all interactive elements.
- Design skeleton loaders or spinners for asynchronous states to avoid layout shifts (CLS).
- Ensure touch targets are at least 44x44px for mobile/touch devices.
04 同仓库更多 Skills
writing-for-agents
Writing and reducing documents for agents. Use when creating, editing, pruning, or restructuring skills, or modifying AGENTS.md or CLAUDE.md.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
web-design
Routes UI/frontend design work — interfaces, components, design systems, tokens, responsive layouts, accessibility, visual review, anti-slop, DESIGN.md.
design-visual-frontend
Design, build, redesign, or critically review distinctive frontend interfaces with strong composition, domain authenticity, responsive behavior, component coherence, and browser-verified visual quality. Use for websites, landing pages, login and form flows, dashboards, admin tools, product pages, portfolios, visual UI reviews, anti-template redesigns, or any request where frontend aesthetics and usability both matter.
verify
Evidence-backed verification before completion. Use when the user asks to verify, validate, test, or confirm work, or before claiming DONE, fixed, working, completed, or ready. Maps each mandatory criterion to an observable check and refuses completion while the runtime gate has pending work.
unslop
暂无简介