We jokingly say our dress code is “cover your genitals, if customer is present”.
Joking aside, many companies allow wearing anything as long as you don’t make others feel uncomfortable.
One thing I frown up on is being untidy or dirty. There was a guy who wore the same sweatpants everyday. No one said anything to him, but I didn’t want to come near him. Use your best judgement.