Gifts are an important part of visiting family. From my experience, they really depend on the family you visit. Generally, things that are some sort of set work well. It is important to keep in mind that Moroccan supermarkets (such as Supermarche or Marjane pictured here) sell all the items that you could possibly gift. But this does not mean they are not going to be appreciated. Everyone likes new things, especially for the home and kitchen. You will find that some Moroccans use household items to the death. They will keep using a towel or an old spoon long after it has been destroyed. This gives the guest an opportunity to gift. Here is a list of ideas for gifts that I found work.
Candy: boxed chocolates, truffles, and even traditional American candy such as snickers, and M&M's.
Clothing: new, brand names
Perfume
Towel Sets
PJ sets
Picture Album
Dinner napkin Sets
Some medicines
Electronics: mp3 players
New Silverware set
New Set of mixing bowls
New Set of Kitchen Utensils: mixing spoons, whisk, can opener, salad tongs, ladle..
For poorer families, other items would also work. These include hand soaps, toothbrushes, toothpastes, lotions, deodorant, as well as any of the items above.