Instance of a design system

Sorry if the question was already asked, I didn’t see anything.

We have created a comprehensive design system that is used both for our B2C and B2B2C projects. Everything is fine except that we cannot replace the color variables from the design system (primary color, secondary, text, etc) by a set of colors of the partner in a local project without also changing the colors of the main design system.
I tested multiple solutions but it doesn’t work.

Is there a way to use in a local project the symbols coming from a global design system and change and replace some variables like colors or fonts without changing this main design system? In other word: can I create an instance of my design system for each partner that is updated if I change the main design system but where I can give local variables?

Thank you in advance for your help.

Best way to achieve that is to have multiple libraries that contain the styles for each brand you want to use and then use the swap library feature.