This is the disaster that was my spice cabinet until recently. I couldn’t see what I had at all, especially on the second shelf, and often ended up buying duplicates.
I couldn’t live with the chaos anymore, so I found a new solution.
I bought a spice rack from a guy on EBay (he was able to tweak it to the dimensions I needed), and then I spray-painted it. I’d have preferred a brighter, robin’s egg blue, but the spray paint selection is limited. Colour quibbles aside, at least now I can see what spices I have and grab them quickly when I’m cooking.