Ben Ramsey on Nostr: Is there something that allows you to group a bunch of #Tailwind classes together ...
Is there something that allows you to group a bunch of #Tailwind classes together under a single name, so you can say, "This is my card style that I want to use everywhere in the application?" Or "this is my header style that I want to use everywhere?"
As it is, if using Tailwind, I have to make sure I apply those same styles everywhere, and if I change one place, I need to go update all the other places.
I'm sure folks who use Tailwind have a solution for this. What is it?
Published at
2025-01-15 00:35:57Event JSON
{
"id": "5290135d7284976d456bcd9e060307edd6f01419b092a46b6eb2a9987e419d58",
"pubkey": "e653eb60b2db5edf906d354c2825bf00a80dfab1b1766cd97805155e8fcc0db3",
"created_at": 1736901357,
"kind": 1,
"tags": [
[
"t",
"tailwind"
],
[
"proxy",
"https://phpc.social/users/ramsey/statuses/113829567337491458",
"activitypub"
]
],
"content": "Is there something that allows you to group a bunch of #Tailwind classes together under a single name, so you can say, \"This is my card style that I want to use everywhere in the application?\" Or \"this is my header style that I want to use everywhere?\"\n\nAs it is, if using Tailwind, I have to make sure I apply those same styles everywhere, and if I change one place, I need to go update all the other places.\n\nI'm sure folks who use Tailwind have a solution for this. What is it?",
"sig": "1ab54e934923c5144ef2563eb3540a5fa729ea2637399a7dfc5cd52a7eea7dc2654f3ad025ffafc7ad48357da5ebba9d71d09e315e84527445b6bb1c66f339e7"
}