There's a new dress code at a Houston high school, but it's not for students.

It's for their parents.

James Madison High School implemented a ban on pajamas, leggings, and bonnets, among other items.

“No one can enter the building or be on the school premises wearing a satin cap or bonnet on their head for any reason,” said Principal Carlotta Outley Brown in a April 9 letter to parents. “You also cannot wear a shower cap of any kind in the building.”

School officials took action after local TV station KPRC reported a mother was asked to leave the premises of the school after showing up to the school in a headscarf and oversized T-shirt dress.

One parent told the Houston Chronicle she believed the rule implemented by Outley Brown, herself an African American, was “discriminatory” toward African Americans.

“It was demeaning. And I’m African American — and if it’s misty outside and I have a hair bonnet on, I don’t see how that’s anyone’s business,” said Tomkio Miller.

The school policy also targeted men's attire: Undershirts and sagging pants are banned under the new policy.

“However, please know we have to have standards, most of all we must have high standards,” Outley Brown said in the letter.