Re:Creators of Tailwind laid off 75% of their engineering team
by llmslave2 on Wednesday January 07, 2026 @06:22PM
(#46534693)
Can you modify your style tag to make the background turn purple on a mobile device? No? Ok.
[ Parent
| on HN ]
Re:Creators of Tailwind laid off 75% of their engineering team
by immibis on Wednesday January 07, 2026 @07:22PM
(#46535300)
If that's your goal, you probably shouldn't call the class bg-blue? It should be bg-blue-but-purple-on-mobile. But then it's definitely so specific it's the wrong way to select a style. If you want the page background to be blue but purple on mobile, write that in your CSS with a selector of "body" instead of ".bg-blue-but-purple-on-mobile"
Re:Creators of Tailwind laid off 75% of their engineering team
by llmslave2 on Wednesday January 07, 2026 @08:11PM
(#46535721)
The point being you can't do this with inline styles: "bg-purple md:bg-blue"
Re:Creators of Tailwind laid off 75% of their engineering team
by timeon on Thursday January 08, 2026 @02:34AM
(#46538327)
Yes but you should not use inline style for that (nor Tailwind).
Re:Creators of Tailwind laid off 75% of their engineering team
by neochief on Thursday January 08, 2026 @05:13AM
(#46539338)
w-full md:max-w-[100px] bg-purple dark:bg-red hover:underline
Good luck writing that as inline style.