frontend-design by secondsky/claude-skills
npx skills add https://github.com/secondsky/claude-skills --skill frontend-design此技能指导创建独特、生产级的前端界面,避免通用的“AI 垃圾”美学。实现真正可运行的代码,并特别关注美学细节和创意选择。
用户提供前端需求:要构建的组件、页面、应用程序或界面。他们可能包含关于目的、受众或技术限制的上下文。
在编码之前,理解上下文并致力于一个大胆的美学方向:
关键:选择一个清晰的概念方向并精确执行。大胆的极致主义和精致的极简主义都有效——关键在于意图,而非强度。
然后实现可运行的代码(HTML/CSS/JS、React、Vue 等),要求:
关注:
使用通用的 AI 生成美学,例如过度使用的字体族(Inter、Roboto、Arial、系统字体)、陈词滥调的配色方案(尤其是白底紫色渐变)、可预测的布局和组件模式,以及缺乏特定上下文特征的千篇一律的设计。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
创造性地解读并做出意想不到的选择,使其感觉真正为上下文而设计。每个设计都应不同。在浅色和深色主题、不同字体、不同美学之间变化。切勿在不同代际中趋同于常见选择(例如 Space Grotesk)。
重要:使实现复杂度与美学愿景相匹配。极致主义设计需要包含大量动画和效果的复杂代码。极简主义或精致设计需要克制、精确,并仔细关注间距、排版和细微细节。优雅来自于良好地执行愿景。
记住:Claude 能够完成非凡的创意工作。不要退缩,展示当跳出思维定式并完全致力于一个独特愿景时,真正可以创造出什么。
问题:通用字体选择(Inter、Arial、Roboto) 解决方案:使用来自 Google Fonts 的独特字体配对或自定义字体。例如:展示字体(Playfair Display、Bebas Neue、Archivo Black)与精致的正文字体(Source Serif、Crimson Text、Work Sans)配对。
问题:层级和可读性差 解决方案:使用 CSS 变量建立清晰的字体比例。使用大小、字重和间距来创建视觉层次。
问题:陈词滥调的配色方案(白底紫色渐变) 解决方案:致力于大胆、符合上下文的色彩选择。使用 CSS 变量确保一致性。考虑:单色加一种强调色、高对比度的粗野主义、柔和的土色调、鲜艳的互补色对。
问题:低对比度影响可访问性 解决方案:验证色彩对比度符合 WCAG AA 标准(文本 4.5:1,大文本 3:1)。使用 WebAIM 对比度检查器等工具。
问题:可预测的、千篇一律的布局 解决方案:尝试不对称、重叠元素、对角线流、打破网格的组件。创造性地使用 CSS Grid 和 Flexbox。
问题:响应式断点失效 解决方案:在 320px、768px、1024px、1440px 下测试。使用流体排版(clamp())和容器查询。
问题:过度或刺眼的动画 解决方案:使用微妙、有目的的动画。尊重 prefers-reduced-motion 设置。专注于一个编排良好的页面加载,而不是分散的微交互。
问题:动画导致的性能问题 解决方案:优先使用 CSS 动画而非 JavaScript。使用 transform 和 opacity(GPU 加速)。避免对 width、height、top、left 进行动画处理。
问题:缺少键盘导航 解决方案:确保所有交互元素都可通过键盘访问。添加可见的焦点状态。
问题:语义化 HTML 差 解决方案:使用语义化标签(<nav>、<main>、<article>、<section>)。在需要的地方添加 ARIA 标签。
问题:图像缺少替代文本 解决方案:为图像添加描述性替代文本。对于装饰性图像使用空替代文本(alt="")。
创建设计后,验证:
prefers-reduced-motion 设置transform、opacity)# 测试响应式断点
# 打开浏览器开发者工具 → 切换设备工具栏
# 在以下尺寸测试:320px, 768px, 1024px, 1440px, 1920px
# 检查色彩对比度
# 使用 WebAIM 对比度检查器:https://webaim.org/resources/contrastchecker/
# 测试键盘导航
# 通过 Tab 键遍历所有交互元素
# 验证可见的焦点状态
# 使用屏幕阅读器测试(Mac 上的 VoiceOver,Windows 上的 NVDA)
# 打开浏览器开发者工具 → 性能标签页
# 记录页面加载和交互
# 查找布局偏移(CLS)
# 验证动画以 60fps 运行
# 检查长时间动画是否存在内存泄漏
每周安装数
77
仓库
GitHub 星标数
90
首次出现
2026年1月23日
安全审计
安装于
claude-code69
codex62
cursor62
gemini-cli61
opencode59
github-copilot57
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.
Before coding, understand the context and commit to a BOLD aesthetic direction:
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:
Focus on:
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.
Issue : Generic font choices (Inter, Arial, Roboto) Solution : Use distinctive font pairings from Google Fonts or custom fonts. Examples: display fonts (Playfair Display, Bebas Neue, Archivo Black) paired with refined body fonts (Source Serif, Crimson Text, Work Sans).
Issue : Poor hierarchy and readability Solution : Establish clear type scale with CSS variables. Use size, weight, and spacing to create visual hierarchy.
Issue : Clichéd color schemes (purple gradients on white) Solution : Commit to bold, contextual color choices. Use CSS variables for consistency. Consider: monochromatic with one accent, high-contrast brutalism, muted earth tones, vibrant complementary pairs.
Issue : Low contrast affecting accessibility Solution : Verify color contrast ratios meet WCAG AA (4.5:1 for text, 3:1 for large text). Use tools like WebAIM Contrast Checker.
Issue : Predictable, cookie-cutter layouts Solution : Experiment with asymmetry, overlapping elements, diagonal flow, grid-breaking components. Use CSS Grid and Flexbox creatively.
Issue : Responsive breakpoints failing Solution : Test at 320px, 768px, 1024px, 1440px. Use fluid typography (clamp()) and container queries.
Issue : Excessive or jarring animations Solution : Use subtle, purposeful animations. Respect prefers-reduced-motion. Focus on one well-orchestrated page load rather than scattered micro-interactions.
Issue : Performance problems from animations Solution : Prefer CSS animations over JavaScript. Use transform and opacity (GPU-accelerated). Avoid animating width, height, top, left.
Issue : Missing keyboard navigation Solution : Ensure all interactive elements are keyboard accessible. Add visible focus states.
Issue : Poor semantic HTML Solution : Use semantic tags (<nav>, <main>, <article>, <section>). Add ARIA labels where needed.
Issue : Missing alt text on images Solution : Add descriptive alt text for images. Use empty alt (alt="") for decorative images.
After creating a design, verify:
prefers-reduced-motiontransform, opacity)# Test responsive breakpoints
# Open browser DevTools → Toggle device toolbar
# Test at: 320px, 768px, 1024px, 1440px, 1920px
# Check color contrast
# Use WebAIM Contrast Checker: https://webaim.org/resources/contrastchecker/
# Test keyboard navigation
# Tab through all interactive elements
# Verify visible focus states
# Test with screen reader (VoiceOver on Mac, NVDA on Windows)
# Open browser DevTools → Performance tab
# Record page load and interactions
# Look for layout shifts (CLS)
# Verify animations run at 60fps
# Check for memory leaks with long animations
Weekly Installs
77
Repository
GitHub Stars
90
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code69
codex62
cursor62
gemini-cli61
opencode59
github-copilot57
前端设计技能指南:避免AI垃圾美学,打造独特生产级界面
49,900 周安装
梦幻体育阵容优化器 - 基于AI的NFL/NBA/MLB/NHL/足球阵容决策工具
76 周安装
Godot UI 主题化与动态样式管理 - 专业主题切换、DPI 缩放、深色模式实现
125 周安装
Story-Zoom:AI驱动的多层次小说一致性管理工具 - 解决写作冲突与同步问题
128 周安装
斜向世界构建技能:通过文献视角为小说/游戏创作增强沉浸感的引文与题词
126 周安装
Java开发专家技能:Spring Boot、Quarkus、企业级设计模式与性能优化指南
130 周安装
Python虚拟环境管理器:一键设置venv/virtualenv/conda,确保项目依赖隔离与版本正确
76 周安装