Pre-paint all the pieces before building the closet shelves to make touch-ups easier ... These will give you a place to screw into the wall studs and give the structure sheer support for longevity.