agentleFS
agentsdanceagentsdance/agentskills/skills/color-palette-generator/SKILL.md

color-palette-generator

Skill3 starsChanged 11 months agoApache-2.0View on GitHub

Generate color palettes and color schemes. Use when the user needs to create color systems, design themes, or choose complementary colors.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create harmonious color palettes for design systems.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Color Palette Generator

Create harmonious color palettes for design systems.

Color Theory Schemes

Complementary

Colors opposite on the color wheel.

const primary = '#3b82f6';      // Blue
const complementary = '#f6923b'; // Orange

Analogous

Colors adjacent on the color wheel.

const colors = {
  primary: '#3b82f6',    // Blue
  analogous1: '#6366f1', // Indigo
  analogous2: '#06b6d4', // Cyan
};

Triadic

Three colors equally spaced.

const colors = {
  primary: '#3b82f6',   // Blue
  triadic1: '#f63b82',  // Pink
  triadic2: '#82f63b',  // Green
};

Tailwind Color Palette

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: {
          50: '#eff6ff',
          100: '#dbeafe',
          200: '#bfdbfe',
          300: '#93c5fd',
          400: '#60a5fa',
          500: '#3b82f6',  // Base
          600: '#2563eb',
          700: '#1d4ed8',
          800: '#1e40af',
          900: '#1e3a8a',
        },
        neutral: {
          50: '#fafafa',
          100: '#f5f5f5',
          200: '#e5e5e5',
          300: '#d4d4d4',
          400: '#a3a3a3',
          500: '#737373',
          600: '#525252',
          700: '#404040',
          800: '#262626',
          900: '#171717',
        },
      },
    },
  },
};

CSS Custom Properties

:root {
  /* Brand colors */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;

  /* Semantic colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Neutrals */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-500: #6b7280;
  --color-gray-900: #111827;

  /* Background & text */
  --color-bg: var(--color-gray-50);
  --color-text: var(--color-gray-900);
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg: var(--color-gray-900);
  --color-text: var(--color-gray-50);
}

Generating Shades

// Generate tints and shades from a base color
function generatePalette(hex) {
  const hsl = hexToHSL(hex);

  return {
    50: hslToHex(hsl.h, hsl.s * 0.3, 97),
    100: hslToHex(hsl.h, hsl.s * 0.5, 94),
    200: hslToHex(hsl.h, hsl.s * 0.7, 86),
    300: hslToHex(hsl.h, hsl.s * 0.8, 76),
    400: hslToHex(hsl.h, hsl.s * 0.9, 64),
    500: hex,  // Base color
    600: hslToHex(hsl.h, hsl.s, hsl.l * 0.85),
    700: hslToHex(hsl.h, hsl.s, hsl.l * 0.7),
    800: hslToHex(hsl.h, hsl.s, hsl.l * 0.55),
    900: hslToHex(hsl.h, hsl.s, hsl.l * 0.4),
  };
}

Contrast Checking

function getContrastRatio(color1, color2) {
  const l1 = getLuminance(color1);
  const l2 = getLuminance(color2);
  const lighter = Math.max(l1, l2);
  const darker = Math.min(l1, l2);
  return (lighter + 0.05) / (darker + 0.05);
}

// WCAG requirements:
// - Normal text: 4.5:1
// - Large text: 3:1
// - UI components: 3:1

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.