Skip to content

Add missing colors in defaultConfig.stub.js #2639

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

Closed
wants to merge 1 commit into from
Closed

Add missing colors in defaultConfig.stub.js #2639

wants to merge 1 commit into from

Conversation

aeorge
Copy link

@aeorge aeorge commented Oct 21, 2020

Added all missing colors, imported from colors.js.

@adamwathan
Copy link
Member

Hey! This is actually by design, we are only enabling a few key colors by default and including the rest in colors.js for people to choose from if they need them. Colors increase the file size dramatically so we don't want to provide more than makes sense by default.

@adamwathan adamwathan closed this Oct 21, 2020
@adamwathan adamwathan mentioned this pull request Oct 23, 2020
@hornta
Copy link

hornta commented Nov 22, 2020

But isn't the unused colors removed in the production build when treeshaking is performed?

@adamwathan
Copy link
Member

Yep but still no reason to have 5 different types of gray to choose from and the bigger the unpurged CSS gets the worse browser performance gets in development.

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

Successfully merging this pull request may close these issues.

3 participants