Here is some information on a glove box light I made. I bought a keychain flashlight that used a bright blue led for the light. I got it from LL Beans for $20, but I see them for sell everywhere. It is a sapphire crystal led, and two 3-volt lithium batteries. The cells have a 10 year shelf life. All I wanted was the led and the 2 batteries.
I took the light apart and just used the led and the area that holds the batteries, cutting the rest of the body off.
I then acquired a metal cased mercury tilt switch. Durakool (http://www.aecsensors.com) has various tilt switches. I bought part #4929 from Newark Electronics (http://www.newark.com). It was around $5.00, but there was a minimum order, or a $5 penalty. It operates at a plus or minus 7 degree angle. It is very tiny, being around 1/4 inch all round in size. I placed all the parts in a small fuse box (the one that the cylinder type buss automotive fuses come in). It seemed like a perfect candidate since the plastic part of the box slides off easily from the metal top and it is small and shallow.
I drilled a hole in the plastic part of the box for the led to come out, and the rest (batteries in their holder and tilt switch) was placed inside and held in place with electrical tape. I had previously soldered circuit board wire from the tilt switch to the light. Some final touches like an LED holder from radio shack and some chrome tape on the box gives it a more finished look.
This small fuse box was attached to the left side of the glove box and held in place with velcro. The angle of the box had to be adjusted to get the light to turn on and off at the appropriate time when opening and closing the glove box door.
Pleased with the finished results, it puts a nice blue light inside the glovebox that allows me to see the things inside.