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 slide 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. 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).
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 a slide 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 slides, 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.
Deleting a variable or collection keeps the values on its layers; Undo brings it back. Exports and the other apps see plain values.