How to create an npm design system library

What you’re trying to build is a shared UI package publishable to npm. That’s a solid pattern used by teams building design systems.