This photo was taken in daylight.
This has worked OK for the last three years, but only for the top shelf. The second shelf has no lip and I couldn’t figure a way to mount these type lights so they wouldn’t hang down and be in the way. That shelf remained in the dark!
I bought the magnetic switch at an electronics parts store for less than $3. The magnet is salvaged from a Phillips electronic tooth brush.
Total time to put together, less than an hour.