Spandex is an elasticated material that is used in producing leggings to ensure they will stretch enough and retain their shape. Hence, leggings are a tight-fitting garment commonly used underneath skirts or dresses. They can be worn on their own. Spandex is only one part of the mixed fabrics used as a material in leggings.