Figma themejson spacing

From lightspeedwp/.github · View interactive version

Figma themejson spacing is an AI agent skill from the GitHub repository lightspeedwp/.github. Extract WordPress theme.json spacing tokens from a Figma variables table. Use when the user provides a Figma node URL or ID for spacing variables and needs normalized spacing scale entries suitable for `settings.spacing.spacingSizes` or related token documentation.

How to use this skill

Skill file

Figma ThemeJSON Spacing

Overview

Extract a normalized spacing scale from a Figma variables table for WordPress theme.json usage.

Required Input

Workflow

  1. Read spacing variables from the provided node.
  2. Normalize names into stable scale labels or slugs.
  3. Convert values into WordPress-safe spacing values.
  4. Preserve a coherent ascending scale.
  5. Flag inconsistent units, duplicates, or missing intermediate scale steps.
  6. Output spacing entries ready for theme.json mapping.

Output Contract

Return:

Spacing Tokens

Notes

Guardrails

_Docs signed by 🤖 Copilot for LightSpeedWP – always fresh!_

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.