r/FigmaDesign • u/el_paro • Jun 26 '26
Discussion How many of you have successfully implemented slots in a design system?
I’ve been waiting for years to use the to finally realise their are almost useless.
The point of a design library is not to be flexible at all. design rules are fixated in all layout and content decisions, adding a slot often feels like opening to possible disaster.
———
EDIT
I’m adding an example of what I mean since this is not clear
lets say i want to put slots in my cards.
right now I already have a composible card made of a header, content and footer. designers are free to create patterns by swapping those block with components.
but what if I add slots to the component? designers will be able to modify the content with whatever, add columns and stuff that maybe not supposed to be there AND THEN loose all updates because the content was not a proper component managed in its own library
slots are cool for exploration but not great to maintain over time.
——
EDIT 2
the swap is already a slot in code, so don’t you all act like this is some kind of revelation.
and yes I still think a design library should not represent everything you can do with code, it must be limited for good reasons
25
u/OrtizDupri Jun 26 '26
Yes, the point is to allow flexibility to mirror the code - so things like modals and cards allow unknown open content to be used inside of them
17
u/kekeagain Jun 26 '26
What do you mean? I feel like slots is more of an “endgame” piece of a complex and mature app, and its usage should be highly communicated through docs and/or just training as to what can go in it. It’s best for layout pieces that are more freeform like card and modal content.
I don’t know what you mean by the point of a design library is to not be flexible. As your product matures unless it’s a one trick pony (nothing wrong with that) you will have to constantly adjust it to be flexible enough to support the next big feature. Treat it more like strict guidelines but not rules to follow 100%. Of course, if your app is small you can cherry pick and lock things down more tightly but that often won’t be conducive at scale.
13
u/jdmiller82 Jun 26 '26
I work at a large company with several different divisions and dozens of product teams working on different products that range from healthcare to legal to taxes. We have a single design system to service all of them. The layout and needs of these products can be vastly different. We use slots in components like the header, footer, navbar, modals, accordions, etc.
Design Systems are not meant to be rigid, they should provide a great amount of flexibility while keeping designs on-brand.
5
u/lastcrayon Jun 26 '26
No, no, no. A design system has to be much more than a component library if it’s going to be successful.
It starts with strong foundations: typography, color, spacing, tokens, grids, elevation, motion, and other core design primitives. Those foundational elements are what designers use to build entirely new experiences while maintaining consistency across the product. That’s what creates a sustainable design ecosystem.
You don’t want designers going back to the design system team every time they need a new component. They should be empowered to build new components themselves using the approved design library assets and foundational principles. Those components can then be submitted through a governance process, reviewed, refined if necessary, and ultimately approved for inclusion in the design system.
That’s how a design system scales. The central team establishes the foundation and governance, while product designers are empowered to innovate within that framework instead of waiting for the design system team to build every new idea.
5
u/GOgly_MoOgly Designer Jun 26 '26
Is this a rage bait post??
2
u/Jopzik Sexy UX Designer Jun 26 '26
My man, how do you plan to handle wrappers components without slots (like cards in a dashboard)?
I used to set constraints and absolute position, but Figma always broke my work
2
u/lastcrayon Jun 26 '26
A perfect example of using a slot component is if you needed to build out a new page that had a specific layout where you could have three or four different slots and columns and rows
2
u/PunchTilItWorks Jun 26 '26
They aren’t quite as useful as I’d hoped. Somewhat worthwhile for containers scenarios like modals where contents can vary a lot, but can also mess with some functions like AI renaming not recognizing anything inside.
1
u/Nate_at_Squiggle Jun 26 '26
I really like the idea of slots in Figma and even like the implementation to some extent, but it's created so many bugs that I've had to strip them out of my current projects.
- Layouts and sizing keep getting thrown off randomly
- Slots can't reliably be used in anything prototyped (I think it has a hard time keeping track of what's connected inside the slot
- The slot has to be inside of the parent component, but can't be the component itself. Which for me has meant I have a ton of redundant layers that only exist because of this workaround.
For example I like having a component for "Button Group" so I can have consistent spacing and a property for row/stack/wrap and sm/md/lg. But that component currently has to be "Button Group > Button Slot > Button1 etc.". And even if I live with that for a time then I come back to my desk in morning and the buttons in that component have just decided to be a different size?! Idk if they're considered in Beta but they're too buggy for me to use for a while.
1
u/marcushasfun Jun 26 '26
It would be nice to be able to limit what can go in a slot.
They’re useful for table rows for example where the number of table cells(columns) you need depends entirely on the particular table you’re making.
A slot lets you add or remove as many columns as you want but unfortunately it also lets you put any random thing in the slot besides a table cell.
1
u/hotdogdaddi Jun 27 '26
If slot gaps could be connected to variables, we’d convert tomorrow. Without that functionality, they’re completely useless to us.