It’s okay to have a dress code but it really grinds my gears when companies make you BUY their uniforms. Especially cause their shirts can be like 25 dollars.
If you require it you should supply it for free.
If you don’t want to supply uniforms let people wear whatever in a guideline.