Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR finalizes the new config defaults for 2.0. It includes the following changes:
spacing
scalegroup-hover
has been enabled by default for color-related utilitiesfocus
has been enabled by default for z-indexThe spacing related changes are in service of reducing the compiled file size. Even though PurgeCSS makes things tiny in production, we still have to be careful in development to avoid performance issues in browser dev tools. My original super generous attempt at the new default config file resulted in a 10mb CSS file, which I knew was huge, but was curious to see how browsers actually handled it. It caused noticeable slow downs in dev tools when trying to pull up the styles in the inspector panel. ~5mb seemed to be about the limit before things started getting sort of annoying.
With this config file (plus disabling dark mode by default which is coming in the next PR), the default build is 3.04mb which to me is fine.
None of this is a breaking change as it's only changing some things from previously experimental features. I would bet that these changes don't even affect the people who had the experiments enabled either, because the curation I did left everything that was actually useful in tact. In practice no one will even notice what is missing (hello
-space-x-13/16
).