Working with multiple packages
Many design systems split across packages that depend on each other. Magic Patterns supports that layout.Supported architectures
Monorepo
Multiple packages in one repository (for example Yarn workspaces, Turborepo,
or Nx)
Multi-Repo
Separate repositories for packages that depend on each other
Cross-package references
If packages depend on each other, we account for that when syncing:- Import from the correct package
- Use shared tokens in a consistent way
- Respect your component layering
Configuration
For multiple packages, plan to share:- Package list: every package that belongs to the design system
- Dependency graph: how those packages relate
- Access tokens: credentials for each private package when needed
Example: multi-package import
Generated code can follow your structure:Overview
How we import documentation and component code.
Component code
Package layout and how to provide access.
Best practices
Documentation quality and import paths.