That one.
Tailwind gives you tools when you want to control the design, but you’ve got to control the design.
When you just want something that looks good and don’t mind that bootstrap-y feel, bootstrap is the way to go.
(There are projects that essentially recreate bootstrap on top of tailwind, which, in theory, might give you something like bootstrap as a starting point with the power of tailwind, but I haven’t seen it work better in practice than just using bootstrap.)
Just get one of the tailwind UX kits and use their classes as your standard style guide. I personally use flowise as it’s free with paid more complex components if needed, but there are a bunch of others out there that fill the same space.
and here are the docs for DasiyUI: https://daisyui.com
"bg-indigo-600 px-4 py-3 text-center text-sm font-semibold inline-block text-white cursor-pointer uppercase transition duration-200 ease-in-out rounded-md hover:bg-indigo-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-600 focus-visible:ring-offset-2 active:scale-95"
Yeah, that's not making my life easier is it. Also some of those class names are super cryptic.
see https://developer.mozilla.org/en-US/docs/Web/CSS/padding
It might be just a personal defficiency, but it is how it is (for me).
Of course you shouldn't do that, but it happens to be the case that Phoenix does exactly that
.foo { padding: 0; padding: 1rem; }
then I can see the precedence but I don’t see how it’s an advantage. You can write bad code in any methodology.
That seems like an issue with Phoenix and not Tailwind or the Tailwind approach.
another huge benefit these days is with the styling living alongside the markup, it is very easy to use chatGPT or other AI tools to copy/paste and have changes made, etc. it is much less work with one file vs multiple. you can give the context super easily and take the results very quickly.
It'd be easier if you were using some source for UI components, I've used TailwindUI in the past, but that's paid. I'm sure there are good free alternatives.
I'm upgrading a personal Phoenix project to 1.7, and Phoenix now uses Tailwind by default. So I thought I'd try and update my one page thing to use it instead of Bootstrap.
So far, it looks like crap whereas the Bootstrap one looked 'good enough'.
What's the easiest way to get something that looks kinda sorta decent, with some nice defaults, without trying to become a designer?
Or should I just reinstall Bootstrap and be done with this.