How to use variables and modes on Figma
Variables and modes in Figma allow you to create dynamic design systems with different themes and states. Create variables for colors, spacing, and text, then use modes to switch between variations like light/dark themes instantly.
Prerequisites
- Basic Figma interface knowledge
- Understanding of design systems
- Familiarity with component creation
- Knowledge of color and typography workflows
Step-by-Step Instructions
Access the Variables Panel
Shift + V. If you don't see the Variables panel, go to View > Variables to enable it. The Variables panel will appear on the right side of your screen.Create Your First Variable Collection
Add Variables to Your Collection
Create and Configure Modes
Apply Variables to Design Elements
Switch Between Modes
Publish and Share Variable Collections
Common Issues & Troubleshooting
Variables not appearing in the dropdown when trying to apply them
Ensure you're trying to apply the correct variable type to the right property (e.g., color variables only work with fill/stroke). Also check that the variable collection is enabled in the Assets panel.
Mode switching not updating all elements
Some elements might be using local overrides instead of variables. Select the affected elements and reapply variables from the Design panel. Check that all related elements are using variables from the same collection.
Published variables not syncing to other files
Go to Assets > Variables in the destination file and ensure the variable collection is toggled on. You may need to refresh the file or check your team library permissions.
Cannot create certain variable types
Variable types are determined when creating the collection. To use different types, create a new collection with the desired variable type. You cannot mix variable types within a single collection.