I have created a template in Figma Slides. It contains several illustrations that are defined in a library within a design file in Figma.
When I replace these illustrations, the colors within the illustration change to different color variables. All illustrations are set up with color variables defined in Figma, and this library is also added to Slides.
In the preview in Slides, the colors appear correct.