Tailwind, and the death of web craftsmanship
pdx.su
external-link
There's a worrying trend in modern web development, where developers are throwing away decades of carefully wrought systems for a bit of perceived convenience. Tools such as Tailwind CSS seem to be spreading like wildfire, with very few people ever willing to acknowledge the regression they bring to our field. And I'm getting tired of it
luciole (he/him)
link
fedilink
English
11Y

More generally, the more you have a flexible editor in the app, the worst it gets. This is the use case where I ran into trouble.

@AnarchoYeasty@beehaw.org
link
fedilink
English
1
edit-2
1Y

Make an element that is hidden that has all possible values of classes you can use. Or use normal css for that one part of your app if that isn’t possible. Lots of ways you can handle this without thinking the framework doesn’t work.

Ninja:

https://tailwindcss.com/docs/content-configuration#safelisting-classes

Tailwind actually has this use case covered already. Use the safe list functionality to always include the classes you need.

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 2 users / day
  • 2 users / week
  • 8 users / month
  • 98 users / 6 months
  • 1 subscriber
  • 302 Posts
  • 2.15K Comments
  • Modlog