A variable is a named color, number or text, kept in a collection. Each collection has one or more modes (Light and Dark, or one per brand), and each variable has a value for every mode. Layers linked to a variable change when it changes, or when their artboard switches mode.
Open the table with the pencil beside Variables in the Assets (or the {} button in Properties). Pick or rename the collection at the top. Add a color, number or text variable with the buttons below the table, and a mode with + Mode. Name variables with slashes, as in Brand/Primary, to group them. Search, beside the collection’s name, shows only the variables whose name (or a color’s hex) matches. The link button in a cell makes that value follow another variable instead (Surface can follow Brand/Primary in Light and have its own value in Dark). A color that follows another can add an opacity on top without letting go of it, as in Figma: type a percentage beside it, or use its own link button to take the opacity from a number variable (Opacity/Disabled at 40, say), so one change reaches every disabled state, overlay and scrim.
To use one, select layers and open Variables in Properties: pick a variable for the fill, stroke, corner radius, opacity, auto layout gap or padding, or a text layer’s size or words. The row then shows the variable; the broken link button keeps the value but lets go of the variable. Changing that value by hand does the same.
Modes: select an artboard or frame and pick a mode for each collection under Variables in Properties. Everything inside shows that mode’s values; Auto follows the frame that holds it, or the first mode. Put the same design in two artboards, one Light and one Dark, to see both.
From Figma: a Figma link brings the file’s variables in with the layers linked to them, but Figma shares variables through a link only on Enterprise plans. On any plan, export the variables from Figma as JSON (Figma’s own Export modes saves design token files, one per mode; plugins can save the full set), choose Import JSON… in the Variables table, then import the Figma link again: its layers link to the variables. Importing again updates variables instead of adding copies. True/false variables aren’t brought in.
From Specimen: when you are signed in, the Variables table lists your brand kits from Gestalt Specimen (and ones shared with you) above the collection. Choose one to add a collection with its colors in Light and Dark, its fonts, its type scale, and its spacing and corner sizes (Space/… and Radius/… number variables). Choosing it again after the kit changes updates those variables.
Deleting a variable or collection keeps the values on its layers; Undo brings it back. Exports and the other apps see plain values.