惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

AI
AI
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
阮一峰的网络日志
阮一峰的网络日志
D
Docker
Jina AI
Jina AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Register - Security
The Register - Security
J
Java Code Geeks
S
SegmentFault 最新的问题
月光博客
月光博客
G
Google Developers Blog
美团技术团队
Last Week in AI
Last Week in AI
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
T
The Blog of Author Tim Ferriss
腾讯CDC
Recent Announcements
Recent Announcements
Recorded Future
Recorded Future
The Cloudflare Blog
有赞技术团队
有赞技术团队
博客园_首页
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
B
Blog
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Fortinet All Blogs
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
爱范儿
爱范儿
D
DataBreaches.Net
F
Full Disclosure
M
MIT News - Artificial intelligence
博客园 - 司徒正美
H
Help Net Security

博客园 - Zhentiw

[GenAI] Migration Plan: Flat API → Layered Architecture Claude Code Hooks: Complete Guide [GenAI] Pre-retieval overview [GenAI] About Indexing [GenAI] Indexing overview [Vibe Coding] 降低大模型幻觉 - 重试机制 [Vibe coding] 降低大模型幻觉 - JSON 安全输出提示词 [Node.js] WebSocket基础知识 [LangGraph] 应用结构 [LangGrpah] Unit testing [LangGraph] Functional API [LangGraph] 中断注意事项 [LangGraph] 中断相关细节 [LangGrpah] 静态断点 [LangGrpah] 非阻塞式中断 [LangGraph] 阻塞式中断 [LangGraph] 语义搜索 [LangGraph] 长期记忆 [LangGraph] 管理短期记忆 [LangGraph] 自定义checkpointer [LangGraph] 短期记忆 [LangGraph] 时间旅行 [LangGraph] checkpoint常用API [LangGraph] 元数据标记 [LangGraph] 流 [Vitest] mockClear, mockReset, mockRestore [LangGraph] 将子图添加为节点
[Skill] Frontend Design Skill
Zhentiw · 2026-06-30 · via 博客园 - Zhentiw

Purpose

This skill helps Claude create distinctive, memorable frontends that avoid generic AI-generated design patterns. It emphasizes typography, color cohesion, motion, and intentional interactions that elevate user experience.

Principles

1. Distinctive Typography

  • Use Google Fonts strategically for personality (serif + sans-serif combinations)
  • Implement proper typographic hierarchy with clamp() for responsive scaling
  • Employ letter-spacing and font-weight strategically for emphasis
  • Examples: Playfair Display for headlines, custom sans-serif for body
  • Avoid: Default system fonts, inconsistent font sizes, poor line-height

2. Cohesive Color Systems

  • Define CSS variables for semantic color naming (primary, accent, background, text)
  • Use gradients sparingly but effectively for visual interest
  • Maintain contrast ratios (WCAG AA minimum 4.5:1 for text)
  • Create a 5-8 color palette with defined relationships
  • Use opacity and alpha channels for depth (rgba)
  • Avoid: Random hex colors, unnamed colors scattered across CSS

3. Orchestrated Motion & Animation

  • Apply staggered animations (offset delays) to sequenced elements
  • Use easing functions like cubic-bezier(0.34, 1.56, 0.64, 1) for personality
  • Animate transforms (scale, rotate, translateY) not properties that trigger layout
  • Provide visual feedback on interactive elements (hover, focus)
  • Use backdrop-filter: blur() for glassmorphism effects
  • Avoid: Motion that doesn't serve purpose, jarring animations, excessive transitions

4. High-Impact Micro-Interactions

  • Hover states that provide feedback (scale, color shift, border change)
  • Animated underlines on navigation links
  • Icon animations on hover (rotate, scale)
  • Smooth transitions on state changes
  • Loading states and visual confirmations
  • Avoid: Static, unresponsive interfaces

5. Layout & Spacing

  • Use CSS custom properties for consistent spacing (--spacing-xs through --spacing-2xl)
  • Implement max-width containers for readability
  • Use CSS Grid and Flexbox with proper gap management
  • Responsive design with mobile-first approach
  • Whitespace as a design element
  • Avoid: Fixed pixels, inconsistent spacing, layouts that don't adapt

6. Anti-Patterns to Avoid (AI Slop)

  • Flat, colorless purple/blue gradients without intention
  • System font (Inter) with no personality
  • Pure white backgrounds with gray text
  • Generic emoji icons
  • No visual hierarchy or emphasis
  • Static content with zero interactivity
  • Generic marketing copy ("Streamline Your Workflow")

Implementation Checklist

  • Define CSS variables for colors, spacing, typography
  • Implement 2+ custom Google Fonts with clear hierarchy
  • Create gradient effects that serve purpose
  • Add entrance animations with staggered delays
  • Include hover/focus states on interactive elements
  • Use backdrop-filter or creative backgrounds
  • Implement semantic color naming
  • Ensure mobile responsiveness with @media queries
  • Test contrast ratios with accessibility tools
  • Avoid naming elements generically ("container", "wrapper")

Example Patterns

CSS Variables Pattern

:root {
    --color-primary: #2563eb;
    --color-accent: #f97316;
    --color-text: #0f172a;
    --spacing-md: 1.5rem;
}

Staggered Animation Pattern

.element {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.element:nth-child(2) {
    animation-delay: 0.3s;
}

Hover Interaction Pattern

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

Typography Scale Pattern

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

When to Apply

  • Building new UI components or pages
  • Redesigning existing interfaces that feel generic
  • Creating marketing landing pages
  • Elevating visual hierarchy in dashboards
  • Adding polish and personality to applications

Success Metrics

  • Does the design feel intentional, not AI-generated?
  • Does typography provide clear hierarchy?
  • Are colors used systematically (via variables)?
  • Do animations enhance, not distract?
  • Is the interface responsive and accessible?
  • Does motion serve a functional purpose?

References