Creating mockups for both light and dark mode used to be a much longer process. Typically I would create the mockup in light mode, duplicate it and then go through and switch all the colors for dark mode. Utilizing variables and modes in Figma has allowed me to create one mockup and swap between two values depending on the mode.
This does require a bit of initial setup, but once you create the variable you can reuse it as a library in future designs.
Create variable modes
In your local variables tab, add a variable mode for light and dark. This is where we will create all the necessary color variables for each mode.