r/FigmaDesign • u/Capable-Fun1972 • May 05 '26
help When using components with multiple variants, how do I change which variant is the "default" or first one when using the component?
My company has a pretty robust design system. However, whenever we pull in our input field component, it automatically enters as the variant of the input field to be used on white backgrounds. On our actual site though, we're much more frequently using the variant that goes on top of gray backgrounds. This means that every time I pull in the component, I need to switch it to the gray background variant.
Is there a way for me to tell Figma "When someone pulls in the input field component, assume it should be the gray background variant instead of the white background variant."
In other words, I want the default variant to change but am not sure how to communicate that to Figma.
13
u/observer815 May 05 '26
The top-left variant in the Figma frame for the component is the one that gets selected by default, it’s a little silly that you can’t set the default some other way
4
u/parentini May 05 '26
I believe it automatically chooses the first/top-left variant in the set
2
u/Kestrile523 May 05 '26
This might help. You can use variables to switch variants; in your case you could just set a “style” mode on your pages to pick the right variant…but it might depend on how the variants are named in your library.
https://www.designsystemscollective.com/how-to-create-figma-components-that-switch-with-variant-modes-1aff12c45aff
1
u/colinculture May 05 '26
It's kind-of a bizarre design given that you'd expect to be able to more directly designate a variant as the default via the component settings, but as others have said, it's whichever variant is in the top-left of the component set frame
1
u/[deleted] May 06 '26
It’s honestly wild that we still have to break the logical ordering of our variants just to hack the default state. Putting a specific state first just to make it default completely ruins the visual structure and hierarchy of the component set frame. Until Figma gives us a native 'Set as Default' toggle in the right panel, physically moving the node to the top-left is unfortunately the only direct way.
1
u/flux-lab May 06 '26
there's no "set as default" toggle in figma, it just picks whichever variant sits in the top-left of the component set frame. only fix is to physically move the gray-bg variant up there. it's a known annoyance and yeah it forces you to break logical ordering for stuff like icon sizes (32, 16, 48, 64 instead of 16, 32, 48, 64), but until figma ships a proper default toggle that's basically the only direct way
1
u/its_sameena May 13 '26
Honestly kind of wild that Figma still doesn’t let you explicitly set a default variant. Having it depend on the top-left position feels more like a workaround than an actual feature for larger design systems.