Some friends let Carly and I crash their (super-sweet) apartment in Providence a couple of weekends ago, and I decided to say thanks with LEDs. Specifically, with a greeting card that lights up when you open it.
This is a pretty simple circuit, obviously — a battery, LEDs, and a switch could cover it. In fact, it’s more or less a solved problem, since what I wanted to do was just a simpler version of the card in this instructable. But I decided to look around for a more elegant switch, since moving parts are prone to failure and the one in the instructable just looks janky (plus I didn’t really have any materials to make it from). My first and stupidest idea was to use a photoresistor to detect when the card was open. This is stupid because a photoresistor is only going to work really well when there’s lots of light, but when there’s lots of light you can’t see the LEDs (uh-durr). To give myself some credit, I wasn’t planning to tie the LEDs’ output directly to the photoresistor’s input — I was going to use a transistor to amplify the input from the photoresistor — but it was still a dumb idea.
But at least the failed photoresistor experiment led me to this evilmadscientist.com how-to, which turns on an LED only when it’s dark. I realized that if I was going to avoid using the sliding switch (which closes the circuit when the card is open), I was going to have to put a contact on the other side of the card, and turn the LEDs on only when the circuit was broken. Being pretty much a n00b (I’d never used a transistor before), I didn’t really know how to do this, but by playing around with the dark-detecting LED design, I was able to substitute a simple switch composed of a magnet and two modified paperclips for the photoresistor and basically use the same circuit.
Here’s the front of the card (the card’s admittedly corny theme is Ryan and Heather’s black cat Pirate Jenny, nicknamed “Chupacabra,” which means “goat sucker”):

And here’s the inside. Here you can see the entirety of the switch — the magnet glued to the left side of the card closes the connection between the two curled paperclips on the other side. As you’ll see on the back of the card, this diverts current from the transistor’s base, turning it off and stopping the flow of current to the LEDs. That is, when the card is closed the lights go off.

And finally the back of the card and the circuit itself:

You’ll notice that this looks pretty janky too. All I can say in my defense is that I kept the lion’s share of jankiness on the back of the card. I only had so much to work with here.
While in my opinion my switch design is an improvement, it has one noteable disadvantage to the sliding switch, which is that the circuit is always closed and drawing some power from the battery. It should be relatively little power, though, and I think the battery should be good for at least a month.