Use set variable mode from an external library (Both file are in the same team)

I have the following problem:

I have a file that I created to save the colors, components, typography, etc (Design System)And I have another file where I am designing my application, I have imported the library (DS) to my file where I have my application, and everything has been imported correctly, but when I try to use the color mode (Light & Dark) it does not work in the prototype , if I do it manually from the workbench everything seems to go well, but I need to be able to incorporate it into the prototype, please help, I need to manage two files, a library and my main file, I leave two screenshots for more evidence