-
Hi, I really like this approach. Do I understand it correctly, that your plugin creates a css class for every used combination? So if used extensively, could that lead to a big amount of css classes and a big css file? Compared to using 'fluid utility classes'? Especially when also used with padding and margin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
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 whether you use this plugin or generate the |
Beta Was this translation helpful? Give feedback.
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:
.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…