You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am an absolute fan of tailwind and I have a suggestion. Maybe a plugin to accomplish that exists or there is something i'm missing, but I just feel like it would be more efficient to,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am an absolute fan of tailwind and I have a suggestion. Maybe a plugin to accomplish that exists or there is something i'm missing, but I just feel like it would be more efficient to,
instead of:
class="bg-white dark:bg-black"
do:
class="bg-white*bg-black"
where * could be any identifier to separate selectors and could be chained.
For screen sizes also instead of:
class="w-6 sm:w-10 md:w-14 xl:w-24"
do:
class="w-6*10*14**24"
Here, I put two adjacent ** since lg is empty.
It just feels like a no brainer to me. You encapsulate the logic to one single class. It's easier to read and maintain.
Does something like that exists or is possible? Thank you and have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions