Skip to main content
skill CX Codex

qt-figma-token-extraction — Claude Code skill: Figma tokens to QML

Reads variables, text styles and tokens out of a Figma file, then writes design-tokens.json and working QML singletons built around one Theme.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add TheQtCompanyRnD/agent-skills --skill qt-figma-token-extraction -a claude-code
Open on GitHub

What qt-figma-token-extraction does

The skill walks your agent through a fixed sequence. It first asks which Qt project should receive the design system, then whether the Figma file has more than one variable mode, and only after that requests the file links. Variables or plain Styles are detected on its own, so you don't have to know which one your file uses.

Inside the skill folder are a type-mapping reference for Figma-to-QML conversion and five singleton templates: Primitives.qml, Theme.qml, FontInterface.qml, Spacing.qml, Typography.qml. They follow Qt Design Studio naming, which makes the output easier to drop into an existing codebase. Singleton registration in CMakeLists.txt happens at the end, once every file name is settled. For an empty project the skill also lays down main.cpp with QGuiApplication and a Main.qml stub.

On Qt 6 the module path matters. loadFromModule() resolves Main.qml under qrc:/qt/qml/<URI>/, while the Qt 5-style qrc:/<URI>/ path fails without a clear error. With several variable modes and no terminal at hand, the agent falls back to MCP with manual mode switching. Your agent still needs Figma access, otherwise extraction never starts.

What it helps with

  • pull a color palette and type scale from Figma
  • produce a JSON file of design tokens
  • generate QML singletons that match Qt Design Studio
  • split light and dark themes across variable modes
  • bootstrap a Qt Quick project from nothing

Example prompts for the agent

  • Export the design tokens from our Figma file and generate design-tokens.json with QML singletons
  • Re-extract tokens from Figma and update the colors in this project
  • Map the Figma variables to QML and register the singletons in CMakeLists.txt

How to install qt-figma-token-extraction

1Skills CLI (Vercel)

npx skills add TheQtCompanyRnD/agent-skills --skill qt-figma-token-extraction -a claude-code

2Manually: put the files in place

~/.claude/skills/qt-figma-token-extraction/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/qt-figma-token-extraction/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about qt-figma-token-extraction

How do I install qt-figma-token-extraction in Claude Code?

Run npx skills add TheQtCompanyRnD/agent-skills --skill qt-figma-token-extraction -a claude-code. The skill lands at ~/.claude/skills/qt-figma-token-extraction/SKILL.md.

What does qt-figma-token-extraction do?

It collects variables, text styles and tokens from a Figma file, saves them as design-tokens.json, and creates QML singletons that share a single Theme.

Which platforms and Qt version does the skill support?

Compatibility is stated for Claude, Codex and GitHub Copilot, with metadata for Qt 6.x. Multiple variable modes require either a terminal or manual mode switching over MCP.

Similar skills

Everything for Design →

From the same set12

qt-qml-review Reviews Qt6 QML in two passes: a deterministic linter, then agents over seven rule domains. One report, only high-confidence findings. CX Codex +1 888installs qt-cpp-docs This skill reads your C++ headers and sources in a Qt project and writes standalone Markdown reference pages from them. Handy when an API needs documenting instead of hand-written notes. CX Codex +1 782installs qt-qml-docs Reads .qml sources and related project files, then writes a Markdown reference per component: properties, signals, methods, dependencies. CX Codex +1 717installs qt-qml-profiler This skill profiles 2D QML apps and inspects .qtd traces to locate performance bottlenecks. Use it when a Qt Quick interface stutters or you need to investigate rendering, bindings, or signals. CX Codex +1 691installs qt-qml-test Generates Qt Quick Test suites for QML components. Saves ready test files to verify component properties and signal emissions in Qt 6. CX Codex +1 587installs qt-qml-test-run Builds a Qt 6 CMake project, executes Qt Quick Test via qmltestrunner or CTest, and generates a Markdown report. Useful for verifying QML interfaces in terminal-enabled workflows. CX Codex +1 569installs qt-cmake-project The skill writes and edits CMake for Qt 6 projects: targets, QML modules, resources. Useful when your agent mixes up Qt 5 and Qt 6 commands. CX Codex +1 530installs qt-figma-component-generation Reads Figma components over MCP and writes QML controls for Qt Quick Controls 2. It runs at the component generation step of a design-system workflow. CX Codex +1 435installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor