Since 0.3.0 there's been a jump in the bundle size. Note that a chunk of it can be ignored due to the addition of the @emotion/core dependency. I feel like the library at its core could be kept minimal and fundamentally about the theme and sx prop relationship. @theme-ui/components seems like an obvious one to keep stand-alone, however lately it seems it's now part of theme-ui which has definitely also added to the size of the bundle.
theme-ui package is meant to be the "batteries-included" version@theme-ui/core package can be used if you want the sx prop without components or MDX
- The
@theme-ui/corepackage can be used if you want thesxprop without components or MDX
I didn't know that you could use it that way, that would solve the concern with the bigger install size of the main package. Do you think it would be worth documenting? Perhaps it can just be added to the Packages section along with a note and link somewhere in Getting Started.
Yeah, this could definitely use better documentation -- I think starting with the packages README.md would be a good place
If we recommend this officially, do you see any potential issues down the line in then having to support users who have chosen to install this way?
I think any of the packages available will follow semver and should be safe to use their public APIs. The core package was split off based on dependencies, and I don't imagine there will be a ton of breaking changes there
We have several ideas for reducing bundle size & active plans in this area, so I鈥檓 going to close this for now since we don鈥檛 have a specific objective in this issue
Most helpful comment
Yeah, this could definitely use better documentation -- I think starting with the packages README.md would be a good place