Indoors, women would wear a “widow’s cap.”
This period might last for more than a year after the death of a loved one.
(Incidentally, this is where the modern term “jet-black” comes from.)

Charles Hand / EyeEm / Getty Images
Online Etymology Dictionary.weeds (n.)