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

Mimic theme from Tailwind config #55

Merged
merged 13 commits into from
Nov 13, 2021

Conversation

dcastil
Copy link
Owner

@dcastil dcastil commented Nov 9, 2021

Closes #54

@github-actions github-actions bot added the feature Is new feature label Nov 9, 2021
@dcastil
Copy link
Owner Author

dcastil commented Nov 9, 2021

Until here I only added the color and spacing scales. It adds ca. 0.11 kB to the Brotli-compressed bundle and 0.09 kB to the GZipped bundle.

@dcastil
Copy link
Owner Author

dcastil commented Nov 9, 2021

Here I added all the keys from the Tailwind config. The Brotil-compressed bundle increased by 1.07 kB and the GZipped bundle increase by 1.19 kB relative to the current main branch.

@dcastil
Copy link
Owner Author

dcastil commented Nov 9, 2021

Here I removed all the theme keys which are only used in a single classGroup. This reduces the bundle size a little.

State GZip size Brotli size
Main branch 4.62 kB 4.09 kB
Support for colors and spacing 4.71 kB 4.2 kB
Support for all theme keys 5.81 kB 5.16 kB
Support for all theme keys which affect multiple classGroups 4.94 kB 4.39 kB

@dcastil dcastil marked this pull request as ready for review November 13, 2021 20:34
@dcastil dcastil merged commit 9ee120c into main Nov 13, 2021
@dcastil dcastil deleted the feature/54/add-theme-to-default-config branch November 13, 2021 20:43
@dcastil dcastil added the context-v0 Related to tailwind-merge v0 label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context-v0 Related to tailwind-merge v0 feature Is new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make extending reused config values easier
1 participant