Figma themejson palette

From lightspeedwp/.github · View interactive version

Figma themejson palette is an AI agent skill from the GitHub repository lightspeedwp/.github. Extract a WordPress theme.json color palette from a Figma variables table. Use when the user provides a Figma node URL or ID for palette variables and needs palette-ready `settings.color.palette` entries with stable slugs, names, and hex values.

How to use this skill

Skill file

Figma ThemeJSON Palette

Overview

Extract a WordPress theme.json palette from a Figma variables table.

Use this skill when the input is a Figma node containing color variables that should become settings.color.palette entries.

Required Input

If the node is missing, ask for it before continuing.

Workflow

  1. Read the Figma variables from the provided node.
  2. Identify palette candidates only. Exclude semantic usage tokens that belong in settings.custom.color.
  3. Normalize each palette entry into:
  1. Prefer broad family scales such as neutral-100, brand-500, or accent-700 when the Figma naming supports them.
  2. Preserve coherent existing naming systems instead of forcing a new one.
  3. Convert colors to normalized hex values.
  4. Flag duplicate colors, naming collisions, missing scale steps, and ambiguous palette families.
  5. Output only palette-ready entries plus concise notes.

Output Contract

Return:

Palette Entries

Notes

Guardrails

_Built by 🧱 LightSpeedWP with ☕, 🚀, and open-source spirit!_

Contributors

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.