Skip to content
Frontend system design · about 45 minutes

Shared component library

Design a shared component library, a design system, for a company with several product teams. Today each team builds its own buttons, forms and modals, so the products look different and accessibility is uneven. The library must provide common components and styles, support a light and a dark theme, and be adopted by existing React applications step by step. A small core team maintains it, and product teams must be able to contribute.

Ask first

  • How many teams and applications will use it, and are all of them built with React?
  • Is there an existing visual language and a design tool library that the code must match?
  • Which themes are needed: light and dark only, or several brands too?
  • How do the applications write styles today: CSS modules, utility classes, CSS-in-JS?
  • Who owns the library, and how are changes requested and approved?
  • Which accessibility level is the target, for example WCAG 2.2 level AA?

The outline

Write your own outline for each part first.

The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes