According to his Apostolic Letter Rosarium Virginis Mariae, the pontif's personal motto "Totus Tuus" was inspired by St. Louis' doctrine on total consecration to the Virgin Mary.
And in his Apostolic Letter, Rosarium Virginis Mariae Pope John Paul II discussed the inspiration of the rosary and how his motto Totus Tuus was inspired by the Mariology in the writings of Saint Louis de Montfort.