返回 Skill 列表
extension
分类: 开发与工程无需 API Key

palette-stylist

从氛围和参考图片创建统一的UI色彩系统。在开始新的页面/组件、统一感觉不协调的资源或需要一致的颜色标记时使用。输出核心调色板(主要色、强调色、背景色、表面色、文本色)、Tailwind配置片段、渐变建议和可访问性说明。

person作者: jakexiaohubgithub

Palette Stylist (Farben-Chef)

Create cohesive UI color systems from vibes and reference images.

When to Use

  • Starting a new page/component
  • Unifying assets that feel off
  • Need consistent color tokens
  • Colors are clashing or competing

Process

1. Gather Input

Ask for:

  • Vibe words: Adjectives + references (e.g., "night ice climbing, moody, magical forest")
  • Constraints: Accessibility/brand requirements
  • Base colors: Any existing hex colors to keep

2. Generate Palette

Output a complete color system:

| Token | Hex | Usage | |-------|-----|-------| | primary | #hexcode | Main brand/action color | | primary-soft | #hexcode | Lighter variant, hover states | | accent | #hexcode | Highlight/CTA | | background | #hexcode | Page background | | surface | #hexcode | Cards, modals | | text | #hexcode | Primary text | | muted | #hexcode | Secondary text |

3. Tailwind Config

// tailwind.config.js
theme: {
  extend: {
    colors: {
      primary: '#...',
      'primary-soft': '#...',
      accent: '#...',
      background: '#...',
      surface: '#...',
      text: '#...',
      muted: '#...',
    }
  }
}

4. Gradient Suggestions

Provide 2-3 gradient backgrounds with CSS and Tailwind classes:

/* Hero gradient */
background: linear-gradient(180deg, #base 0%, #mid 50%, #base 100%);
/* Tailwind: bg-gradient-to-b from-[#base] via-[#mid] to-[#base] */

5. Accessibility Notes

  • Check contrast ratios (WCAG AA = 4.5:1 for text)
  • Note any problematic combinations
  • Suggest alternatives for low-contrast pairs

Example

Vibe: "Winter night, ice climbing, magical but professional"

Palette: | Token | Hex | Usage | |-------|-----|-------| | primary | #1e3a5f | Headers, primary buttons | | primary-soft | #2d4a6f | Hover states, borders | | accent | #64b5f6 | CTAs, highlights | | background | #0c1e2b | Page background | | surface | #1a2f3d | Cards, modals | | text | #e8f4fc | Primary text | | muted | #8ba3b5 | Secondary text |

Resources