generate-color-palette

generate-color-palette is a skill for Claude Code from alvinindra/figma-mcp-rust. It costs 61 tokens per session (765 once invoked), scanned A, original, MIT.

A Figma design-system tool that creates color scales and named color aliases from brand colors, then adds them as Figma variables. It can include neutral colors and light or dark modes.

In plain words
What is it for?
Use it to create palettes, neutral scales, light and dark color tokens, and semantic color variables in Figma.
Why use it?
It turns a small set of brand colors into an organized color system instead of requiring every color to be chosen manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the figma-mcp-rust plugin — 13 skills, 1 MCP server shipped together

Good fit Use it to create palettes, neutral scales, light and dark color tokens, and semantic color variables in Figma.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alvinindra/figma-mcp-rust/generate-color-palette
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alvinindra/figma-mcp-rust --skill generate-color-palette
Clone the repo
git clone --depth 1 https://github.com/alvinindra/figma-mcp-rust

Made for: Claude Code.

Or install figma-mcp-rust, the plugin that ships this one along with the rest of its 13 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-color-palette

README.md
[![agentmods](https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-color-palette/github.svg)](https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette)
Your own site
<a href="https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-color-palette/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-color-palette

Your own site · 80×15
<a href="https://agentmods.dev/skills/alvinindra/figma-mcp-rust/generate-color-palette"><img src="https://agentmods.dev/badge/skills/alvinindra/figma-mcp-rust/generate-color-palette.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.00765
Opus 5 $0.00030 $0.00382
Sonnet 5 $0.00012 $0.00153
Haiku 4.5 $0.00006 $0.00076

Measured 12d ago against content hash 10815d6961b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

generate-color-palette scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/generate-color-palette/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Color Palette

Given one or more brand colors, generate a full design-system color palette with a primitive scale and semantic aliases, then create them as Figma variables.

Input

Ask the user for:

  • Primary brand color (hex), required
  • Secondary/accent color (hex), optional
  • Whether to include neutral/gray scale, default yes
  • Whether to generate dark mode, default yes

Color Scale Algorithm

For each brand color, generate a 9-step scale (50, 100, 200, 300, 400, 500, 600, 700, 800, 900) by varying lightness in HSL space:

  • 50: lightest tint (~95% lightness)
  • 100: ~90% lightness
  • 200: ~80% lightness
  • 300: ~70% lightness
  • 400: ~60% lightness
  • 500: base color (the input hex)
  • 600: ~45% lightness
  • 700: ~35% lightness
  • 800: ~25% lightness
  • 900: darkest shade (~15% lightness)

For neutrals: use the primary hue but desaturate to 5-10% saturation.

Show the full color table to the user for review before creating anything.

Semantic Aliases

After the primitive scale, create semantic tokens that reference primitives:

Light mode:

  • Color/Background/Default: Neutral/50
  • Color/Background/Subtle: Neutral/100
  • Color/Text/Default: Neutral/900
  • Color/Text/Subtle: Neutral/600
  • Color/Text/Disabled: Neutral/400
  • Color/Primary/Default: Primary/500
  • Color/Primary/Hover: Primary/600
  • Color/Primary/Active: Primary/700
  • Color/Primary/Subtle: Primary/100
  • Color/Border/Default: Neutral/200
  • Color/Border/Focus: Primary/500

Dark mode (add a "Dark" mode to the same collection):

  • Color/Background/Default: Neutral/900
  • Color/Background/Subtle: Neutral/800
  • Color/Text/Default: Neutral/50
  • Color/Text/Subtle: Neutral/300
  • Color/Primary/Default: Primary/400
  • (etc.)

Creation Steps

  1. create_variable_collection(name="Primitives", modeName="Value")
  2. For each color in the scale: create_variable(type="COLOR", name="Primary/500", collectionId=...) then set_variable_value(variableId, modeId, value="#hexcolor")
  3. Repeat for secondary and neutrals.
  4. create_variable_collection(name="Semantic Colors", modeName="Light")
  5. add_variable_mode(collectionId, modeName="Dark") if dark mode is requested
  6. For each semantic alias: create_variable + set_variable_value for Light mode, then Dark mode.

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 79 lines · 61 tokens per session scan A 10815d6961b2

Subscribe to this mod's changes

generate-color-palette is a skill published in the GitHub repository alvinindra/figma-mcp-rust (39 stars, last pushed 7d ago), licensed MIT. It adds 61 tokens to every session and 765 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clean-interface-design

Design clean, calm, uncluttered interfaces that don't read as templated AI output. Use when building or restyling any UI (web, iOS, Android, macOS) and it needs visual hierarchy, restraint, spacing discipline, one clear primary action, and a cohesive look. Covers accent color, whitespace, corner radius, type scale…

HalidSaglam/saglitzdesign-mcp · 95 tokens

landing-page-conversion

Build or improve landing pages and marketing sites that convert, not just look good. Use when writing a hero, structuring a page, choosing a CTA, adding social proof, or diagnosing why a page isn't converting. Covers positioning, copy-first workflow, the above-the-fold contract, page narrative, CTAs, trust, and…

HalidSaglam/saglitzdesign-mcp · 86 tokens

ship-quality-gate

Run the deterministic auditors over a real project before it ships — design drift, security headers, generated-default tells, SEO/GEO signals, delivery signals, Apple and Android project configuration — and read the results correctly, disclosure list included. Use when someone asks "audit this", "is this ready to…

HalidSaglam/saglitzdesign-mcp · 86 tokens

apple-platform-design

Design iOS, iPadOS, and macOS apps that feel native, in the Liquid Glass era. Use when building or reviewing Apple-platform UI — navigation, controls, sheets, materials, typography, haptics — or deciding what must change when porting from web/Android. Covers Apple's HIG, the Liquid Glass design language (iOS 26 /…

HalidSaglam/saglitzdesign-mcp · 95 tokens

saglitzdesign

Design, redesign, build, restyle, improve, critique, review, audit, simplify, polish, or animate a user interface — the front door into SaglitzDesign's eight design skills, for whichever one the work actually needs. Covers landing pages, marketing sites, dashboards, app screens, components, forms, onboarding, empty…

HalidSaglam/saglitzdesign-mcp · 204 tokens

design-review

Critique a UI (screenshot, live page, or code) like a rigorous senior designer — grounded, reproducible, element-citing, and ranked by severity. Use when someone asks "review this design", "what's wrong with this screen", or wants feedback on a mockup/site/app. Avoids the failure modes of typical AI critique…

HalidSaglam/saglitzdesign-mcp · 92 tokens