Hacker News new | ask | show | jobs
by miguel-muniz 1290 days ago
Base components are a pattern really only used by designers building UIs in Figma.

The idea is you create a "base" component (let's say a button), then create more components that wrap the base component and apply overrides on top (like a different background color). If you want to adjust the size of all your buttons, you edit the base component and your changes propagate to all the other components. [1]

This of course leads to a tangled mess of dependencies when you start building complex UIs in Figma, but it is the only way to make mass changes without having plug-ins automate it, or doing the tedious task of manually updating a bunch of components one by one.

[1] https://youtu.be/vVPSYSziRFY