How do I make my dome light fade away when you shut the door?

You would need different switches with more than one wire to control the current path.