I don’t want to derail the jar-labeling discussion, but a couple of comments on not having space prompted me to share something I did, that could be adapted to spice-jar storage as well.
I came up with this after years of using other options - knife blocks, wall-mounted magnetic holders, drawers, etc. This is what works for me - the hinges can support a lot of weight, but drop down and forward when they “open”. I secured a steel magnetic holder between them, and attached them to the underside of a cabinet (which happens to hold my spices, salts, seasonings and oils) above my primary workspace.
Anyway, it would be pretty trivial to make up a tray suspended in the same manner, and put your most-used spices in it. When not needed, it would fold up under the cabinet virtually out of sight (and away from light, which is important.)
These are the hinges I used. Looking at the pics, I think I also used some small right-angle brackets from the hardware store to make everything work.