docs/for-library-authors.mdx
If you are writing a component library, carefully consider whether your library will depend on Emotion. A simple alternative is to include a regular CSS file in your package, which your users bring in via a normal import statement.
If you're reading this, you probably know about Emotion's many benefits. Here are some drawbacks to consider:
If you do choose to use Emotion in your library, it is best to list the Emotion packages as peer dependencies in your package.json. This ensures that your library and the consuming application get the same instance of each Emotion package.