Cabinet door mounted spice racks and shelves is a perfect solution to move spices away from your countertops. Besides such solution helps minimize space wasting. Spices on cabinet doors are easy to access and are protected from light and high humidity. Here are some cool examples of such spice storage.
Sources: diylife, iheartorganizing, aggyiqe, joyofdesserts.