Agree that if inline styles offered all of the features you get when writing your CSS in a stylesheet that it would be a compelling option because of the simplicity, even though the verbosity would be a big knock against.
Its like
md:p-2 which is for m devices , make padding as 2 Or xl:p-4 , which is for xl devices , make padding as 4
Similarly for hover or focus in tailwind its
bg-white hover:bg-black focus:bg-red Which says , by default keep background of this element white , when you hover over it keep it black and when you focus on it , keep it red
Works just fine, Give it a try and go through the docs of tailwind, navigating it using algolia, is a joy :D
[1] https://github.com/tailwindlabs/tailwindcss/graphs/contribut...
Your project is the reason why i like building web interfaces again.
https://simonadcock.com/are-inline-styles-faster-than-atomic...
In reality the difference wasn’t so big but inline styles might not scale well. (I also realize the original poster might have been sarcastic but it’s a fun to look into even the non serious ideas).
I feel not enough people have experience with low power devices
It creates paralysis and feels like an upfront chore/ cost. Then naturally it’s hard to maintain because you didn’t know what the right abstraction was yet. You literally end up with everything modular (css files) even if it’s only used once.
I’m really enjoying elm-ui and the principles behind it.
(Like in another comment here, I'm rehashing a more extensive blog post [1] of mine here.)
[1] https://vincenttunru.com/why-tailwind/#constraints-set-you-f...
You can build bootstrap in tailwind, but you can't build tailwind with bootstrap.
Both are tools to help you design something, but the tradeoffs of each one are quite different.
Well put.
Bootstrap provides pre-made visual components, which are useful for getting stuff built quickly but can be a huge pain to tweak (e.g. you want 99% of the styles but just need the padding to be slightly different in one instance).
Tailwind provides no pre-made visual components, but instead provides a sensible design system to keep things consistent, and either a much more pleasant and scalable way to write CSS, or a horrible class soup, depending on your opinion of utility classes.