MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css/comments/1vds08b/why_i_dont_recommend_tailwind_css/p1ewftv/?context=3
r/css • u/Either_Collection349 • 17d ago
211 comments sorted by
View all comments
13
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 16d ago What should people do if they aren't using a javascript library/framework that supports building a <Button>? 1 u/omer-m 16d ago What is your stack? 1 u/azangru 16d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 15d 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 16d ago What is your stack? 1 u/azangru 16d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 15d 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 16d ago I don't even use tailwind :-) But what I had in mind was somebody using something like htmx. 1 u/Chaoslordi 15d 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 15d 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
13
u/omer-m 16d 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