Taxonomy
Language & philosophy around our design system greatly impacts how we build it. It’s important to understand the concepts described below before going further!
Core
Core is our design system at its most abstract. It designates the shared terminology (ie. nomenclature) & taxonomy (ie. naming of concepts), framework, linters, one documentation website...
Foundations
Foundations designates the bare minimum to start building UI at Alan, eg. style elements such as typescale, icons, spacing, colours, shadows; guidelines for writing, etc. These results in shared design tokens.
Our foundations are tech-agnostic: eg. if we decide to go native one day, our foundations will stay the same.
Components
Global components
These are all our generic components that are used across all our products, on both web & mobile (eg. inputs, buttons, etc). Our global components should have a wide usage, abstracted from context.
Utility components
Inside our global components & patterns, or should we say aside, we can find utilities (eg. spacer, text, frame, screen). These are components that only have visual functions, they help us build UI faster and are used throughout our products. Designers don’t really use them, they’re for engineers.
Local components
These are components that are tailored to a specific product, type of user, country, or problem domain. Eg. our marketing website building blocks, app-specific components: notification items for member dashboard, etc.
They are stored in the local components file and oftentimes we reassess whether they need to become global components.
Local components can become global & part of Murray once we see the need across multiple products.
Shortcut components
These are pieces of UI that benefit from being consistent across our product but don’t make sense for engineers to implement in the design system (eg. [SelectOptionsList], [PillsSelector]).
Differences between components, patterns, guidelines, etc
Components
- Components are designed and built in code, ready for reuse by plopping in a Figma file or HTML page. They are an interface chunk to be added to an overall layout.
- Components are how something does work, inclusive of tradeoffs and constraints realised through a build process.
- Completed components exhibit a visual language in polished, precise detail, while patterns are often independent of any particular skin and flexibly adapts across any visual language.
Patterns
- Patterns are optimal solutions to a common problem in a specific context. They can be abstract, principled guidance applied as you design and build.
- Patterns describe how something should work under preferred conditions and suggestions of how to cope with tradeoffs.
- Patterns aren’t easily measurable: development organisations value tools teams can predictability and efficiently reuse. Visual style and component adoption can be measured. Patterns? Not nearly so much.
- Patterns are more related to solutions than to isolated elements in a system, this means that even though they could be created and curated by a Design System team, the norm should be that patterns are created and fed back into the system by those solving the problems in your organisation; the product teams.
Eg. how to use modals, navigation framework for an app, how to give feedback to users, empty states, access to help, etc.
Guidelines
Guidelines are simply a way to express a pattern or explain how to properly use a component (eg.: do's & don'ts).
Templates & shortcuts in Figma
- Both templates & shortcuts are useful for consistency and speeding the work for designers.
- Templates should be detached in Figma in order to use them, because they're encompassing content. They can have their code counterparts.
- Shortcuts should be use as such (no detaching), they won't be implemented in code but they help us hold consistency (so we don't find ourselves with multiple styles for the same element).