I made a long black line of permanent marker on the top and bottom of fitted sheeta. A scrap of fabric would work, too.
And I will have to try some of these methods to mark the back of pajama bottoms. I always look for the seam in the elastic, but that is not always easily visible.