Skip to content

[question] amount of classes - css size #8

Answered by barvian
danpii asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question! Yes, this plugin creates a unique class for each used combination. But when compared to your Utopia setup, I wouldn't expect a larger CSS bundle. That's because, if I follow correctly:

Your output CSS Would become
.fluid-text-base { font-size: clamp(...) } .\~text-base\/xl { font-size: clamp(...) }
.fluid-text-md { font-size: clamp(...) } .\~text-xl\/2xl { font-size: clamp(...) }
.fluid-text-lg { font-size: clamp(...) } .\~text-2xl\/3xl { font-size: clamp(...) }

So it'd mostly be a matter of renamed classes.

As for padding/margin: yes, introducing new fluid classes in a site will probably result in a slightly larger CSS output, but that's true whethe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danpii
Comment options

Answer selected by danpii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7 on April 05, 2024 15:05.