Formal:
* Bonne nuit et de doux rêves. (This is the most literal translation and is appropriate for most situations.)
Informal:
* Bonne nuit et fais de beaux rêves. (This is more common among friends and family.)
* Dors bien et fais de beaux rêves. (This is another informal option.)
You can also simply say bonne nuit which means good night.