Oxygen lets you define a variable type on your variables. They include these 5 types:
-
Color: The Color variable type allows you to add hex-based solid colors or gradient colors. These variables can be used for any color controls throughout Oxygen.
-
Number: The Number variable type lets you input numeric values. Number variables can be used in any standard number control.
-
Unit: The Unit variable type lets you input both the number and unit, such as “16px” or “100vh”. Unit variables work with any unit size controls, including padding, margin, and font size.
-
Font Family: The Font Family variable type allows you to select a registered font as the variable’s value. This variable can be used for any font family control.
-
Image URL: The Image URL variable type lets you add a URL for an image. You can use this variable for any image inputs.
Do you think this may be useful for CS’s variables manager as well? That way inputs could intelligently only accept appropriate variable types. For example, padding controls would only accept a Unit type and reject anything else.