Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making chalk an optional dep #1392

Closed
prisis opened this issue Apr 13, 2024 · 3 comments
Closed

Making chalk an optional dep #1392

prisis opened this issue Apr 13, 2024 · 3 comments

Comments

@prisis
Copy link

prisis commented Apr 13, 2024

Just an idea, to reduce the bundle size, and have the possibility to switch to a different ansi color package, I would propose headless core components.

The styling for the core components can be then done with the theme prop.

@SBoudrias
Copy link
Owner

How large is chalk realistically?

@prisis
Copy link
Author

prisis commented Apr 14, 2024

When you check https://bundlephobia.com/package/chalk@4.1.2 it's around 20.4kb.

Was more thinking in the direction of if a project is using picolors there is no way to replace it, so you have 2 color lib in your project.

@SBoudrias
Copy link
Owner

SBoudrias commented Apr 26, 2024

Coming back to this, I'm not interested in shipping the packages without all batteries included. While it might be beneficial for some, I don't see it as a widespread need.

Feel free to work on, and why not document, a workaround with your package manager config and passing in custom themes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants