Now you have more options for clamp when exporting variables:
- You can define one variable for desktop and one for mobile, example text-xs and text-xs-m, just add [clamp] in the description of the main variable text-xs.
- If you have the PRO version of Figma now the function detects the first mode as desktop and the second as mobile, just add [clamp] to the description.
- You can use [clamp] together with calc, e.g.: [clamp] calc($text-s / $text-scale)
- clamp(min, max) still works.
Translated with www.DeepL.com/Translator (free version)