Create Figma variables with AI
Prepare an editable token file for colours, spacing and modes. Keep existing names stable and test the import on a copy of the design file.
When you create Figma variables with AI, think about what a name is meant to survive. A card surface can stay named “surface” even when its actual colour changes between light and dark mode. The figma-variables-generator skill helps organise values, aliases and collections in a JSON file that you can inspect before it reaches the design file.
For an update, start from an export of the existing collection. A renamed group can create a parallel set of variables and leave existing components bound to the old ones. Check the import format used by your chosen tool, especially for modes and types beyond simple colours and numbers.
What it does
- Create a small collection from a supplied palette.
- Express spacing and corner measurements as numbers.
- Give a semantic colour a reference to a base colour.
- Keep a familiar naming scheme when adding new values.
- Compare expected values across light and dark modes.
Install and use
- Share the existing token export or a short table. Specify the collection, required modes and the importer you plan to use.
- Describe one binding, for example a card surface that changes colour between modes while keeping the same semantic name.
- Review the JSON, try it in a duplicate Figma file and check several components before updating the live collection.
FAQ
Source
Made by Figma Variables Generator Contributors. Original skill: figma-variables-generator, published on GitHub under the MIT licence.
View on GitHub