Margot Robbie, who is playing the title character in "Barbie" live-action movie, celebrated her 32nd birthday on the set of her upcoming movie over the weekend.

The actress had a Barbie-theme cake, which featured Barbie's face and body on the top, while the lower half looked like a gown. The big pink cake had "Happy Birthday Barbie Margot!" written on it with white icing.

A Twitter user shared a photo of the cake.

"Barbie," helmed by Greta Gerwig, is slated to release on July 21 next year. Ryan Gosling will portray Barbie's boyfriend Ken in the movie. Warner Bros. Pictures released the first look of Robbie as Barbie in April.

The company shared Ken's first look last month.

Aside from cake, fans also got a glimpse of Gosling and Robbie on the sets of the movie. Last week, both the actors were spotted wearing colorful matching outfits while skating together on the sets.

What grabbed fans' attention was the bright yellow and pink skates and shoes that the on-screen couple was wearing at the time.

"Barbie" is based on the popular doll, which was originally launched in 1959. Barbie's love interest Ken was first introduced in 1961.

Two other movies were released based on Barbie dolls – "Barbie: A Fashion Fairytale" in 2010 and "Barbie: A Fairy Secret" in 2011.

Apart from "Barbie," Robbie will be next seen in the historical drama "Amsterdam," which is slated to release later this year. The flick will also feature Michael B. Jordan, Christian Bale, Chris Rock and Rami Malek.

The actress will also feature in "Babylon," "Asteroid City," "Ruin" and "Gotham City Sirens." She will also appear in an untitled "Ocean's Eleven" movie, which is under pre-production.

Robbie was last seen in the action-adventure movie "The Suicide Squad," which was released last year.

On the personal front, Robbie got married to British film producer Tom Ackerley in 2016.

Margot Robbie
Margot Robbie gets meltdowns because of her busy schedule and inability to visit her family back home. Pictured: Robbie attends the UK Premiere of The Wolf of Wall Street at London’s Leicester Square on Jan. 9, 2014 in London, England. Anthony Harvey/Getty Images for Universal Pictures