Token导航 LogoToken导航

Agent Skill · 前端设计

color-system(色彩系统)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

color-system 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,704。

总安装 1,979周安装 85GitHub Stars 21下载 694核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:color-system(色彩系统)
来源仓库:https://github.com/sanky369/vibe-building-skills
仓库路径:skills/color-system
安装命令:
npx skills add https://github.com/sanky369/vibe-building-skills --skill color-system
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sanky369/vibe-building-skills --skill color-system

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

color-system 教授系统性用色方法,涵盖色彩理论、无障碍合规与主题化实践。强调有意识选色、避免滥用装饰性色彩,确保信息传达清晰有效。适用于从零搭建设计系统或重构现有配色方案,支持明暗模式切换。使用时需配合实际组件开发验证效果,不可仅依赖理论推导得出结论。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/color-system

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sanky369/vibe-building-skills --skill color-sy…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

color-system 怎么安装?

在终端执行 npx skills add https://github.com/sanky369/vibe-building-skills --skill color-system。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

color-system 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

color-system 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

color-system 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

color-system 用的人多吗?

公开数据是累计安装 1,979 次,近一周安装 85 次,下载 694 次,GitHub 21 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

color-system 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
color-system

色彩系统 · 本页

1,97921只读MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Color System

Overview

Color is one of the most powerful tools in design. It communicates emotion, establishes brand identity, guides attention, and conveys meaning. Yet color is also one of the most misused design elements.

This skill teaches you to think about color systematically: choosing colors with intention, ensuring accessibility, supporting theming and dark mode, and using color to guide users without overwhelming them.

Core Methodology: Color Harmony

Rather than choosing colors randomly, use color theory to create harmonious palettes that feel intentional and professional.

Color Harmony Techniques

1. Monochromatic Use different tints, shades, and tones of a single hue.

Primary: #3B82F6
Tints (lighter): #93C5FD, #DBEAFE, #EFF6FF
Shades (darker): #1D4ED8, #1E40AF, #0C2340

Use Case: Minimalist, sophisticated designs. Good for focusing attention.

2. Analogous Use colors that are adjacent on the color wheel (30-60 degrees apart).

Primary: #3B82F6 (blue)
Secondary: #8B5CF6 (purple) - 60° away
Tertiary: #06B6D4 (cyan) - 60° away

Use Case: Harmonious, pleasing designs. Good for creating unity.

3. Complementary Use colors that are opposite on the color wheel (180 degrees apart).

Primary: #3B82F6 (blue)
Complementary: #F59E0B (amber)

Use Case: High contrast, energetic designs. Use sparingly to avoid visual chaos.

4. Triadic Use three colors evenly spaced on the color wheel (120 degrees apart).

Primary: #3B82F6 (blue)
Secondary: #F59E0B (amber)
Tertiary: #10B981 (green)

Use Case: Vibrant, balanced designs. Good for applications with multiple categories.

Choosing Your Primary Color

Your primary color is the foundation of your color system. Choose it based on:

  1. Brand Identity — What emotion do you want to convey?
  2. Accessibility — Does it have good contrast with white and black?
  3. Versatility — Does it work well with other colors?
  4. Distinctiveness — Is it unique enough to differentiate your brand?

Color Psychology:

  • Blue — Trust, calm, professional (tech, finance)
  • Green — Growth, health, nature (health, sustainability)
  • Red — Energy, urgency, passion (sales, alerts)
  • Purple — Creativity, luxury, mystery (creative, premium)
  • Orange — Warmth, enthusiasm, friendly (consumer, social)
  • Yellow — Optimism, attention, caution (warning, energy)

Building a Color System

Layer 1: Global Colors

Define your base colors:

module.exports = {
  theme: {
    colors: {
      // Primary color with full spectrum
      primary: {
        50: '#EFF6FF',
        100: '#DBEAFE',
        200: '#BFDBFE',
        300: '#93C5FD',
        400: '#60A5FA',
        500: '#3B82F6', // Base
        600: '#2563EB',
        700: '#1D4ED8',
        800: '#1E40AF',
        900: '#1E3A8A',
        950: '#0C2340',
      },

      // Secondary color
      secondary: {
        50: '#F3E8FF',
        500: '#8B5CF6',
        950: '#2E1065',
      },

      // Semantic colors
      success: '#10B981',
      warning: '#F59E0B',
      error: '#EF4444',
      info: '#06B6D4',

      // Neutral colors (grayscale)
      neutral: {
        50: '#F9FAFB',
        100: '#F3F4F6',
        200: '#E5E7EB',
        300: '#D1D5DB',
        400: '#9CA3AF',
        500: '#6B7280',
        600: '#4B5563',
        700: '#374151',
        800: '#1F2937',
        900: '#111827',
        950: '#030712',
      },
    },
  },
};

Layer 2: Semantic Colors

Assign meaning to global colors based on context:

module.exports = {
  theme: {
    colors: {
      // Semantic colors (light mode)
      'bg-primary': 'var(--color-bg-primary)', // {neutral.50}
      'bg-secondary': 'var(--color-bg-secondary)', // {neutral.100}
      'bg-tertiary': 'var(--color-bg-tertiary)', // {neutral.200}

      'text-primary': 'var(--color-text-primary)', // {neutral.950}
      'text-secondary': 'var(--color-text-secondary)', // {neutral.600}
      'text-tertiary': 'var(--color-text-tertiary)', // {neutral.500}
      'text-inverse': 'var(--color-text-inverse)', // {neutral.50}

      'border-primary': 'var(--color-border-primary)', // {neutral.200}
      'border-secondary': 'var(--color-border-secondary)', // {neutral.300}

      'interactive-primary': 'var(--color-interactive-primary)', // {primary.500}
      'interactive-hover': 'var(--color-interactive-hover)', // {primary.600}
      'interactive-active': 'var(--color-interactive-active)', // {primary.700}
      'interactive-disabled': 'var(--color-interactive-disabled)', // {neutral.300}
    },
  },
};

Layer 3: Component Colors

Define colors for specific components:

module.exports = {
  theme: {
    colors: {
      // Button colors
      'button-primary-bg': 'var(--color-interactive-primary)',
      'button-primary-text': 'var(--color-text-inverse)',
      'button-secondary-bg': 'var(--color-bg-secondary)',
      'button-secondary-text': 'var(--color-text-primary)',

      // Card colors
      'card-bg': 'var(--color-bg-primary)',
      'card-border': 'var(--color-border-primary)',

      // Input colors
      'input-bg': 'var(--color-bg-primary)',
      'input-border': 'var(--color-border-primary)',
      'input-text': 'var(--color-text-primary)',
    },
  },
};

Accessibility and Contrast

WCAG Contrast Requirements

LevelNormal TextLarge TextGraphics
AA4.5:13:13:1
AAA7:14.5:13:1

Large text is defined as 18px+ (or 14px+ if bold).

Checking Contrast

Use tools like WebAIM Contrast Checker or Polished to verify contrast:

// Using Polished library
import { readableColor } from 'polished';

const backgroundColor = '#3B82F6';
const textColor = readableColor(backgroundColor); // Returns #FFFFFF or #000000

Color-Blind Friendly Palettes

Design for color-blind users by:

  1. Not relying on color alone — Use patterns, icons, or text labels
  2. Using sufficient contrast — Ensures visibility regardless of color perception
  3. Testing with color-blind simulators — Use tools like Coblis or Color Oracle

Color-Blind Friendly Palette:

Primary: #0173B2 (blue, visible to all)
Secondary: #DE8F05 (orange, visible to all)
Accent: #CC78BC (purple, visible to most)
Neutral: #CA9161 (brown, visible to all)

Dark Mode

Implementing Dark Mode

Define semantic colors that change based on color scheme:

/* Light mode (default) */
:root {
  --color-bg-primary: #F9FAFB;
  --color-bg-secondary: #F3F4F6;
  --color-text-primary: #030712;
  --color-text-secondary: #4B5563;
  --color-border-primary: #E5E7EB;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: #030712;
    --color-bg-secondary: #111827;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #D1D5DB;
    --color-border-primary: #374151;
  }
}

Dark Mode Best Practices

  1. Don't use pure black — Use dark grays (#111827 instead of #000000)
  2. Reduce saturation — Colors feel too bright in dark mode
  3. Increase contrast — Text needs more contrast on dark backgrounds
  4. Test readability — Dark mode can hide readability issues
  5. Respect user preference — Use prefers-color-scheme media query

Common Color Patterns

Pattern 1: Status Colors

colors: {
  'status-success': '#10B981',
  'status-warning': '#F59E0B',
  'status-error': '#EF4444',
  'status-info': '#06B6D4',
}

Pattern 2: Interactive States

colors: {
  'interactive-default': '#3B82F6',
  'interactive-hover': '#2563EB',
  'interactive-active': '#1D4ED8',
  'interactive-disabled': '#D1D5DB',
  'interactive-focus': '#3B82F6', // with outline
}

Pattern 3: Elevation

colors: {
  'elevation-1': '#FFFFFF', // Highest
  'elevation-2': '#F9FAFB',
  'elevation-3': '#F3F4F6',
  'elevation-4': '#E5E7EB', // Lowest
}

How to Use This Skill with Claude Code

Create a Color System

"I'm using the color-system skill. Can you create a color system for me?
- Primary color: #3B82F6 (blue)
- Brand personality: Modern, professional, trustworthy
- Include: primary, secondary, semantic, and component colors
- Ensure WCAG AA contrast compliance
- Support both light and dark modes
- Provide Tailwind config"

Audit Your Color System

"Can you audit my current color system?
- Are my colors harmonious?
- Do all text/background combinations meet WCAG AA?
- Are my colors used consistently?
- Is my dark mode accessible?
- Are my colors color-blind friendly?
- What improvements would you suggest?"

Create Color-Blind Friendly Palette

"Can you create a color-blind friendly palette?
- Primary color: blue
- Secondary color: orange
- Accent color: purple
- Ensure all combinations are visible to color-blind users
- Provide contrast ratios for verification"

Implement Dark Mode

"Can you help me implement dark mode?
- Define semantic color tokens for light and dark modes
- Ensure contrast is sufficient in both modes
- Provide CSS variables and Tailwind config
- Test readability in both modes"

Design Critique: Evaluating Your Color System

Claude Code can critique your colors:

"Can you evaluate my color system?
- Are my colors harmonious?
- Do they support my brand personality?
- Are all contrast ratios sufficient?
- Is my dark mode accessible?
- Are my colors color-blind friendly?
- What's one thing I could improve immediately?"

Integration with Other Skills

  • design-foundation — Color tokens and system
  • typography-system — Text color and contrast
  • component-architecture — Component colors
  • accessibility-excellence — Contrast ratios, color-blind friendly
  • interaction-design — Color in animations and states

Key Principles

1. Color Harmony Matters Use color theory to create palettes that feel intentional and professional.

2. Accessibility is Non-Negotiable All text/background combinations must meet WCAG AA contrast requirements.

3. Semantic Colors Enable Flexibility By separating global, semantic, and component colors, you can support theming and dark mode.

4. Consistency Builds Trust Use colors consistently across your product to build trust and reduce cognitive load.

5. Color-Blind Friendly Design Benefits Everyone Designing for color-blind users results in better designs for everyone.

Checklist: Is Your Color System Ready?

  • Primary color is chosen with intention
  • Color palette is harmonious (monochromatic, analogous, complementary, or triadic)
  • Global colors are defined with full spectrum
  • Semantic colors are defined for common contexts
  • Component colors are defined for specific components
  • All text/background combinations meet WCAG AA contrast
  • Dark mode is supported with appropriate colors
  • Colors are color-blind friendly
  • Colors are used consistently across the product
  • Color system is documented and shared with the team
  • Color tokens are centralized in Tailwind config or CSS variables

A well-designed color system is both beautiful and functional. Make it count.

平台分布

Claude Code

29.07%
按下载量换算202

Codex

21.53%
按下载量换算149

OpenCode

18.64%
按下载量换算129

Antigravity

12.98%
按下载量换算90

Gemini CLI

7.5%
按下载量换算52

windsurf

3.77%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills