Dermatomyositis occurs when polymyositis (an inflammatory muscle disease) affects the skin, causing a scaly rash and/or purple spots. Steroids are usually the first treatment tried.
https://my.clevelandclinic.org/health/diseases/15701-dermatomyositis