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

推荐订阅源

Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
博客园_首页
S
SegmentFault 最新的问题
H
Help Net Security
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss
量子位
GbyAI
GbyAI
M
MIT News - Artificial intelligence
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
B
Blog
月光博客
月光博客
博客园 - 聂微东
Vercel News
Vercel News
罗磊的独立博客
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
I
Intezer
小众软件
小众软件
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
C
Check Point Blog
AWS News Blog
AWS News Blog
C
Cisco Blogs
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
宝玉的分享
宝玉的分享
S
Security Affairs
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hacker News: Front Page
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog

博客园 - 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