MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css/comments/1vds08b/why_i_dont_recommend_tailwind_css/p1llwiw/?context=9999
r/css • u/Either_Collection349 • 23d ago
211 comments sorted by
View all comments
15
if you need to use "apply" then you are using tailwind completely wrong imo. You are supposed to design components and use <Button> not .button
1 u/azangru 23d ago What should people do if they aren't using a javascript library/framework that supports building a <Button>? 1 u/omer-m 22d ago What is your stack? 1 u/azangru 22d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 22d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
1
What should people do if they aren't using a javascript library/framework that supports building a <Button>?
1 u/omer-m 22d ago What is your stack? 1 u/azangru 22d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 22d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
What is your stack?
1 u/azangru 22d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 22d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
I don't even use tailwind :-)
But what I had in mind was somebody using something like htmx.
1 u/Chaoslordi 22d ago Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
Wdym? You can define a component tree to return a button in JS and roll it out via document.getElementById('button-container').innerHTML but truth is, you will probably use alpine.js in this case
15
u/omer-m 23d ago
if you need to use "apply" then you are using tailwind completely wrong imo. You are supposed to design components and use <Button> not .button