Flare magazine has apologized for an article that promised to “decode Jian Ghomeshi’s courthouse style.”

The story set off a wave of anger on Twitter, with critics saying it was a superficial fashion piece about someone accused of serious crimes.

The Flare article analyzed Ghomeshi’s appearance Wednesday in a Toronto courtroom, where he was charged with four counts of sexual assault and one count of overcome resistance -- choking.

“His sombre exit appearance before the throng of cameras and reporters -- black suit, crisp white shirt and subtly patterned dark tie -- was in stark contrast to his signature behind-the-scenes rock-guy style,” the article notes.

The article also addressed hair and beard grooming.

It then quotes reaction from an image consultant and a criminal lawyer. The lawyer -- not connected to Ghomeshi’s defence team -- said he always advised clients not to wear black, because it’s “associated with the bad guy.”

On Friday, Flare tweeted an apology “if we offended readers.” It said the article was not about fashion, but rather about “how appearance affects impression.”

Two-and-a-half hours later, Flare followed up with a full, unreserved apology in a series of five more tweets.