Ability to switch color variables

Setup

  1. Create two libraries with just colors variables
    a. Red schema and Blue schema

  2. Create Design System library,
    a. Create components, and apply red schema color variables

you should now have:
2 color variable files (Red, Blue), one design system file with red schema applied (DS)

Now create file in which you use the design system components (ie. feature file). In the feature file i want to be able to switch between red or blue schema file.

Hey Salman,

This is currently possible. The key to make it work is to use the same names and structure (paths) in both color variable files.

I made this quick demo where I have

Color variable libraries

  1. Red palette: Color 1, Color 2, Color 3, Color 4, Color5
  2. Blue palette: Color 1, Color 2, Color 3, Color 4, Color5

Feature file

I added components and applied the Red palette colors.

To switch between each color schem I used Edit → Replace library… and then select as a target library the Blue palette.

Let us know if this helps!