Hi! I’m struggling figuring out how to optimize some buttons/components with variables.
I’m trying to make tags with different sections. Essentially, I need to find a way to have the tag style change based on what tag section its in and if its been selected.
I have tags for the following:
Culture (red), Food (orange), Adventure(green), and Leisure (blue).
They should all have two modes: selected and unselected.
Each category has 10 tags. So, for example, culture has:
architecture
art
ceremonial sites
historical
museums
monuments
religious structures
sacred grounds
wrecks & ruins
viewpoints
How do I use variables to change the following: tag contents (text), tag color (both depending on if its a culture, food, adventure, or wellness tag AND if it is/isnt selected).
For context, I’m trying to optimize my prototype in figma so that I can then use the React extension and minimize the extra coding I have to do.







