What I meant about small design system is also true on the code side, since a proper design system is this design / code mirroring.
This is where js frameworks help a lot since you can create components with properties and nest them, but that's about all I know about FE-eng