Ryan Gosling and Margot Robbie in ‘Barbie’.Photo:Warner Bros.

RYAN GOSLING as Ken and MARGOT ROBBIE as Barbie

Warner Bros.

The newBarbiemovie is pink all over, butMargot Robbiebrought an extra appreciation for the bright color on set.

While speaking with PEOPLE for itsnewBarbiespecial issue,out now,Ryan Goslingrevealed that his costar Robbie, 33 — who also served as a producer on the project — created a mandatory pink dress code for everyone on set one day of every week.

“Margot had this pink day once a week, where everyone had to wear something pink. And if you didn’t, you were fined,” Gosling, 42, says of the weekly celebration. “She would go around collecting the fines, and she would donate it to a charity.”

“What was really special was just how excited the male crew members were. At the end of the film, they all got together and, with their own money, made pink crew shirts with rainbow fringe,” he adds.

“It was this opportunity for them to show their respect and admiration for what Margot and [director] Greta [Gerwig] were creating,” Gosling tells PEOPLE. “It was almost like that scene at the end ofDead Poets Society, where they all get on their desk and say, ‘O captain! My captain!’ "

Courtesy Warner Bros. Pictures

Barbie movie

Ken subsequently follows Barbie to the real world, where the pair discover the joys — and downsides — of life with humans.

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

“Ryan is the most comedically gifted actor I have ever worked with. He really is,” Robbie says of Gosling in PEOPLE’s newBarbiespecial issue. “He’s known for his dramatic acting, and rightly so. But he is unbelievably gifted with comedy, and I ruined most of his takes because I was laughing through all of it.”

Barbie movie. Courtesy Warner Bros. Pictures

At the movie’s world premiere in Los Angeles Sunday, director Gerwig, 39,toldVarietyher feelings about finally sharing the highly anticipated movie with fans after months of trailer releases and press.

“It’s really incredible, and I’m really just trying to, you know, take it in [and], like, not miss it. Because so much has led up to this moment,” she said. “It’s very emotional. It really is.”

The movie’s star-studded ensemble cast includes America Ferrera, Kate McKinnon, Issa Rae, Rhea Perlman, Will Ferrell, Michael Cera, Ariana Greenblatt, Ana Cruz Kayne, Emma Mackey, Hari Nef, Alexandra Shipp, Kingsley Ben-Adir, Simu Liu, Ncuti Gatwa, Scott Evans, Jamie Demetriou, Connor Swindells, Sharon Rooney, Nicola Coughlan, Ritu Arya, Dua Lipa and Helen Mirren.

Barbieis in theaters July 21. PEOPLE’s specialBarbieissue isnow on sale.

source: people.com