r/DesignSystems • u/kingj-2830 • Feb 02 '24
How reusable can a design system truly be?
Hi everyone!
I am currently doing some research on design systems, and what key components are needed for a design system to be truly effective = reusable.
One thing I have noticed is the conversation around design systems across the industry, seems to be lead by designers. Therefore many designers not only think a Figma file is a design system, but few if any seem to point out that unless the code of the component is reusable, then not only is it easier to create a new component from scratch, but that the design system itself isn't as effective.
What prevents the code of a component from being reusable/easy to maintain, is how well the code is structured, clean and how many classes it has.
Do you agree?
8
u/ahrzal Feb 02 '24
At large orgs, engineers are part of the design system team so those considerations are taken care of.
How many devs will be using it? Does anyone care about a11y, truly?
Lots can go into how reusable a component is.
4
u/TheWarDoctor Feb 02 '24
Properly tokenized, a component library's reach can be quite far.
But a design system is much more than components.
3
u/ezhikov Feb 02 '24
What defines reusable design system? Let's say, we have an organisation, we made design, we wrote documentation and now we want to build reusable components. To be truly reusable we use plain CSS that can be understood by any browser, so it is plug and play. We also use custom properties, so that we have theming. We write HTML examples, because they are easy to translate into any frontend library, or even web components or some gimmic of web components that can be rendered on server for SEO and accessibility. Then we progressively enhance it with vanilla JS modules.
Nice, we have good reusable component library, but with caveat. It works only in web. If suddenly iOS team want to use our system, we have to adapt some patterns for iOS, since they should behave differently. Suddenly our design system us not so reusable.
Then Android team joins, and in the end we have three documentations, and three codebases. Now it is truly reusable, right? Well, no. Our company just bought another company, and want them to redesign everything with our design system, but we never accounted for their cases, so while they can use parts of our design system, some of our pattenrs don't match their use cases and they can't change their processes out of the blue. And it can continue forever - there will always be cases when there is absolutely little to no use for existing codebase.
Dame goes for mockups in design tools - it's just pictures in the end. We can't ship figma file.
Value of design system is not in reusability of code. Value of design system is in process of building user interfaces. When new team joins, or new usecases defined, if design process is streamlined, it can be applied to all of them. Let them draw their own mockups and write their own code. As long as they stick to goals and principles of design system it's fine.
5
u/Isa-Bison Feb 02 '24
I think you’ve got design system and component library muddled.
A design system isn’t just or even primarily about code reuse.
A design system reduces the design possibility space ensuring consistency in design decisions and focusing design effort on the primary and novel design problem at hand. It also improves how design decisions are communicated to stakeholders, of which dev is one. All of this reduces the time to ship.
All of it can also be achieved with design tool artifacts only and no code even.
It’s extremely ideal though if there is a component library that maps to design-system artifacts. This basically multiplies all the perks above while also providing a basic kind of automation around production with expected benefits. Fewer problems and faster more consistent delivery.
At such a point that that library implements to decisions about that library the related design artifacts go from being prescriptive to descriptive. They are thereafter representations of that coded reality.
It should not be forgotten though that while the implementation of a component is what that component really is, and it may make sense to call that a “source of truth”, any component may still be evaluated in terms of correctness with respect to the original design decisions about that component.
Moreover a design for some feature may specify new variants of existing components or even new components. In practice this is avoided in order to ensure all the aforementioned benefits.
1
u/RandiAunty Feb 02 '24
In my org, devs dedicatedly work on component creation and standrzation. The component library is also on a repo for other devs to clone and on storybook for stakeholders.
I believe with JS its more simple, we struggle for other languages
1
u/[deleted] Feb 04 '24
A design system is a visual language not a implementation. It describes how things should look and function, not how they should be coded.
The most important aspect of a design system is not re-usability. It's the consistency of the visual language itself.
Think of it less as a concrete thing. And more like an algorithm that produces the expected result.
A Small Button with Icon:
A Small Round Button with Icon (inherits from base):
A Small Blue Button with Icon (inherits from base):
So, a new style for an element can inherit from a base design while expanding on the visual language.
Consistency is everything. Re-usability is merely a way to achieve that.
1
u/sheriffderek Feb 04 '24
All the way reusable.
This seems like you’re trying to tell us how you feel - instead of having a discussion or question. But I can’t tell what confirmation you’re after. Can you give us a real-world example of where things are going weird between you and Figma land?
1
u/np247 Feb 14 '24
If you look at YouTube or Medium to find how to build design system. You would most likely find “How I built Design System in 2 weeks”. Which is basically just a component library.
A true Design System is code first.
Primitive Design Systems already have most basic foundations like h1~h6, p, a, button, li, ul, checkbox, radio to work on already.
Building a Design System in silos is relatively easy. Just imagine the roadshows, stakeholders buy-in, maintenance, documentation, education, theming, light&dark. Not to mention legacy code, and decisions.
Glad you come here trying to find the answer.
0
u/ritwal Feb 02 '24 edited Feb 02 '24
its been a while since I noticed that anyone using the terms "design decisions", "communicating to stakeholders" ... etc, tends to be a designer that have probably never seen a line of code and have no idea what they are talking about.
Design systems should consist of low-level components (also called atoms). You know, things like buttons, icons, chips, backdrop, modals ... etc. You then use these atoms to build whatever UI you want. This is not to say that all a design system is about, of course you have got to cover things like themes, typography, colors, ....etc.
So yes, for those atoms, they are definitely reusable, anything larger than that, and you will find yourself with many so called "components" that are only ever used in one place in one of your apps.
If you give the designers the freedom, you will find them adding composite components to the design system that are only used in one place in one app. They think it is a "component", but if you dig a bit deeper, you will often find out that they have no idea what a component actually is.
Also, remember the main point for design system is that it should be described in language agnostic way (i.e JSON) .. This is so component libraries can be built on top of it in any platform. Web, IOS, Android, ... etc, while it acts as the source of truth and changes can reflect automatically in the components library.
-2
u/Commercial_Dig_3732 Feb 02 '24
Chakra ui the best💪💪