Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Remove unused CSS variables #8135

Closed
bakura10 opened this issue Apr 18, 2022 · 0 comments
Closed

Remove unused CSS variables #8135

bakura10 opened this issue Apr 18, 2022 · 0 comments

Comments

@bakura10
Copy link
Contributor

Hi :),

I am not sure if this is done on purpose but as of today, Tailwind generates a lot of CSS rules with properties like that:

image

It is highly improbable for us to use all the properties here, but all those are rendered over and over (this is the same for transform where skew are generated over and over, while we do not use them), giving some clutter to the generated CSS.

I wonder if Tailwind could optimize this by generating the variables dynamically, so if we do not have any class "backdrop-sepia" anywhere, it would not generate the associated CSS variables.

@tailwindlabs tailwindlabs locked and limited conversation to collaborators Apr 18, 2022
@adamwathan adamwathan converted this issue into discussion #8142 Apr 18, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant