Communitygithub.com

ComeOnOliver/skillshub

在创建UI设计时使用,避免产生通用的'AI 俗套'美学。强制实施独特的排版、统一的色彩系统、有目的性的动效和氛围感背景。对落地页、仪表盘和品牌化界面至关重要。

skillshub 是什么?

该技能旨在解决前端UI设计中因AI模型默认倾向而产生的“AI 俗套美学”问题,例如过度使用Inter/Roboto字体、紫蓝渐变、扁平缺乏深度的背景等。它提供了一套系统性的替代方案和核心原则,指导开发者通过四个设计向量——排版、色彩系统、动效与动画、背景与深度——来打造具备专业感、品牌识别度和视觉层次的界面。技能详细列出了应避免的反模式(如`bg-gray-900`)以及具体的代码实现示例,涵盖Tailwind CSS、Framer Motion等主流技术栈。该技能适用于Claude Code、Cursor等AI编程助手,帮助其在生成落地页、仪表盘和品牌化UI组件时,输出更具区分度和高级设计感的代码。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/barnhardt-enterprises-inc/frontend-aesthetics

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

前端美学技能

何时使用

始终在以下情况使用此技能:

  • 创建落地页或营销网站
  • 设计仪表盘或管理后台
  • 构建品牌化UI组件
  • 审查设计的独特性
  • 实施视觉润色和动画

在以下情况请勿使用:

  • 处理后端/API代码
  • 编写测试
  • 不会上线的快速原型

问题:分布收敛

Claude 默认生成通用设计,因为训练数据中安全、普遍可接受的选择占主导地位。这造成了“AI 俗套美学”:

  • 到处是 Inter/Roboto 字体
  • 紫/蓝渐变
  • 极简动画
  • 扁平、毫无生气的背景
  • 均匀分布的颜色调色板

本技能提供了具体的替代方案,帮助突破默认值。

核心原则

  • 真正的深色主题(不是灰色——使用真正的暗色调)
  • 单一强调色 - 选择一种颜色并一致地使用
  • 专业、可操作的UI - 数据密集,而非装饰性
  • 微妙的深度 - 分层背景,而非扁平

四个设计向量

1. 排版

避免: 使用 Inter、Roboto、Arial 作为主字体(作为后备字体是可以的)

独特的替代方案:

/* 标题:粗体、独特 */
--font-heading: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif;

/* 正文:清晰、可读 */
--font-body: 'Inter Variable', system-ui;

/* 代码/数据:具有字符特色的等宽字体 */
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;

/* 其他独特选项 */
/* 现代/科技:Space Grotesk, Outfit, Manrope */
/* 高级:Playfair Display, Cormorant */
/* 友好:Nunito, Quicksand, Poppins */

字重对比:

// 正确做法:极端的字重变化
<h1 className="text-4xl font-black">Dashboard</h1>  // 900
<p className="text-base font-light">Subtitle</p>    // 300

// 错误做法:最小化变化
<h1 className="text-2xl font-semibold">Dashboard</h1>  // 600
<p className="text-base font-medium">Subtitle</p>      // 500

大小层级:

// 正确做法:清晰的视觉层级
<h1 className="text-5xl">Main Heading</h1>   // 48px
<h2 className="text-2xl">Section</h2>        // 24px
<p className="text-sm">Body text</p>         // 14px

// 错误做法:不清晰的层级
<h1 className="text-xl">Main Heading</h1>    // 太小
<h2 className="text-lg">Section</h2>         // 太相似

2. 色彩系统

原则:

  • 真正的深色基底 - 使用接近黑色,而不是灰色(避免使用 gray-900, slate-900)
  • 单一强调色 - 为主要操作选择一种品牌颜色
  • 语义颜色 - 绿色=成功,琥珀色=警告,红色=错误
  • 文本层级 - 主要(明亮),次要(柔和),禁用(暗沉)

颜色应用:

// 正确做法:主导背景 + 单一强调色
<div className="bg-neutral-950">
  <Button className="bg-brand-500 hover:bg-brand-400">
    Primary Action
  </Button>
</div>

// 错误做法:均匀分布的颜色(彩虹汤)
<div className="bg-gray-900">
  <Button className="bg-blue-500">Action 1</Button>
  <Button className="bg-green-500">Action 2</Button>
  <Button className="bg-purple-500">Action 3</Button>
</div>

// 正确做法:为你的品牌定义 CSS 变量
:root {
  --bg-base: /* 你的真正深色 */;
  --bg-surface: /* 稍浅一些 */;
  --accent: /* 你的品牌颜色 */;
  --accent-hover: /* 更浅的变体 */;
}

3. 动效与动画

原则:

  • 使用 CSS 实现简单过渡
  • 使用 Framer Motion 实现编排动画
  • 关注高影响力的时刻(页面加载、状态变化)
  • 列表使用交错揭示

纯 CSS 模式:

// 正确做法:平滑、有目的的过渡
<Button className="transition-all duration-200 ease-out hover:scale-105 hover:shadow-lg hover:shadow-brand-500/20">
  Hover Me
</Button>

// 正确做法:交错列表揭示
<div className="animate-in fade-in slide-in-from-bottom-4 duration-500 delay-100">
  Item 1
</div>
<div className="animate-in fade-in slide-in-from-bottom-4 duration-500 delay-200">
  Item 2
</div>

Framer Motion 模式:

import { motion } from 'framer-motion'

// 正确做法:编排的页面加载
const container = {
  hidden: { opacity: 0 },
  show: {
    opacity: 1,
    transition: { staggerChildren: 0.1 }
  }
}

const item = {
  hidden: { opacity: 0, y: 20 },
  show: { opacity: 1, y: 0 }
}

<motion.div variants={container} initial="hidden" animate="show">
  {items.map(i => (
    <motion.div key={i} variants={item}>{i}</motion.div>
  ))}
</motion.div>

// 错误做法:静态、毫无生气的页面
<div>{items.map(i => <div key={i}>{i}</div>)}</div>

4. 背景与深度

避免: 纯色、扁平背景

模式:

// 正确做法:带有氛围感深度的分层渐变
<div className="relative bg-neutral-950">
  {/* 使用品牌颜色的渐变光晕 */}
  <div className="absolute top-0 right-0 w-96 h-96 bg-brand-500/10 rounded-full blur-3xl" />

  {/* 次尝试柔光晕 */}
  <div className="absolute bottom-0 left-0 w-64 h-64 bg-brand-500/5 rounded-full blur-2xl" />

  {/* 内容 */}
  <div className="relative z-10">
    {children}
  </div>
</div>

// 正确做法:微妙的网格图案
<div className="bg-neutral-950 bg-[linear-gradient(to_right,rgb(255_255_255/5%)_1px,transparent_1px),linear-gradient(to_bottom,rgb(255_255_255/5%)_1px,transparent_1px)] bg-[size:64px_64px]">
  {children}
</div>

// 正确做法:带辉光的卡片抬升
<Card className="bg-neutral-900 border border-white/5 shadow-xl shadow-black/50 hover:shadow-brand-500/10 transition-shadow">
  {content}
</Card>

反模式(“俗套”列表)

绝不要这样做:

反模式为什么不好应该怎么做
到处使用 Inter 字体通用,一眼就能认出是 AI 生成的使用独特字体(Plus Jakarta Sans 等)
bg-gray-900灰色,不是真正的深色使用 bg-neutral-950 或自定义真正的深色
紫/蓝渐变过度的 AI 美学使用单一品牌强调色、纯色
均匀的颜色分布没有视觉层次主导色 + 一个强调色
无动画毫无生气、静态添加有目的的微交互
到处是 rounded-full幼稚、不专业混合使用 rounded-lg 和尖角
深色背景上的白色卡片对比度过强使用带有柔和边框的微妙抬升
通用图标没有品牌标识使用具有一致描边宽度的 Lucide

组件样式示例

仪表盘卡片

// 专业仪表盘样式(使用你的品牌颜色作为强调色)
<Card className="bg-neutral-900 border border-white/5 rounded-xl p-6 hover:border-brand-500/20 transition-colors">
  <CardHeader className="pb-2">
    <CardTitle className="text-lg font-semibold text-white flex items-center gap-2">
      <Activity className="w-5 h-5 text-brand-400" />
      System Status
    </CardTitle>
  </CardHeader>
  <CardContent>
    <div className="text-3xl font-bold text-white">98.7%</div>
    <p className="text-sm text-zinc-400">Uptime this month</p>
  </CardContent>
</Card>

按钮层级

// 主要 - 品牌颜色,突出
<Button className="bg-brand-500 hover:bg-brand-400 text-white font-medium">
  Create Project
</Button>

// 次要 - 幽灵样式带边框
<Button variant="outline" className="border-white/10 hover:bg-white/5 text-zinc-300">
  Cancel
</Button>

// 危险 - 红色,严肃(语义颜色)
<Button variant="destructive" className="bg-red-500/10 hover:bg-red-500/20 text-red-400 border border-red-500/20">
  Delete
</Button>

数据表格

// 专业数据展示
<Table className="bg-neutral-900 rounded-xl border border-white/5">
  <TableHeader>
    <TableRow className="border-white/5 hover:bg-white/5">
      <TableHead className="text-zinc-400 font-medium">Project</TableHead>
      <TableHead className="text-zinc-400 font-medium">Status</TableHead>
    </TableRow>
  </TableHeader>
  <TableBody>
    <TableRow className="border-white/5 hover:bg-white/5">
      <TableCell className="text-white font-medium">My Project</TableCell>
      <TableCell>
        <Badge className="bg-green-500/10 text-green-400 border-green-500/20">
          Active
        </Badge>
      </TableCell>
    </TableRow>
  </TableBody>
</Table>

验证清单

在完成任何 UI 工作之前,请验证:

  • 排版:没有使用 Inter/Roboto 作为主要字体
  • 颜色:使用了真正的深色,而不是灰色(gray-900, slate-900)
  • 强调色:操作中一致地使用了单一品牌颜色
  • 动效:页面至少有一个有意义的动画
  • 深度:背景有渐变或图案,不是扁平的
  • 层级:清晰的视觉重量差异(文本、按钮)
  • 一致性:所有组件遵循已建立的设计系统

支持文件

  • typography-guide.md - 完整的字体配对参考
  • motion-patterns.md - Framer Motion 配方和 CSS 动画
  • anti-patterns.md - 需避免的扩展示例

设计令牌标准

此技能符合 DTCG 2025.10(设计令牌社区组)格式:

  • 文件扩展名:.tokens.json
  • 属性以 $ 为前缀($value, $type, $description)
  • 三层架构:核心 → 语义 → 组件

参见 W3C DTCG 规范

资源

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能