3 ms·
Now change the padding on card-body. All of a sudden tailwind makes more sense.
by armatav 4y ago
Now change the padding on card-body.
All of a sudden tailwind makes more sense.
- ceejayoz 4y agoIsn’t that a single SCSS variable in Bootstrap?
- samtho 4y agoSCSS cannot be of use to the 98% of all bootstrap sites that just use the CDN to deliver a compiled stylesheet. The point here is can just change it in the HTML.
- sussmannbaka 4y agoTailwind cannot be of use to those same sites either, because the compiler needs to process your HTML to cut the generated CSS down to size. You have merely traded one tool for another. If you actually want to change things without preprocessing, your option remains good old HTML and CSS.
- awb 4y agoNow maintain an app with 3 front end devs. With Tailwind there’s no consistency across developers. It’s all highly configurable, but no convention.
- alvarlagerlof 4y agoThat's when you make components
- awb 4y agoDev 1 might make a card component with grey text as #999 and Dev 2 might make a footer component with grey text as #888. Components are locally consistent but not globally consistent. Or, let’s say you want to change all your grey text to #777, then you have to go back through all your individual components and hope you didn’t miss anything.
- kaba0 4y agoYou ain’t hardcoding colors inline, you refer to them via “variables” basically, so this situation doesn’t exist: https://tailwindcss.com/docs/customizing-colors https://tailwindcss.com/docs/customizing-colors
- armatav 4y agoNo buddy, text-gray-600 is globally consistent. So are your own custom defined colors like text-armatav-500. Use the thing before you dismiss it.
- armatav 4y agoHave maintained one with 10 FE devs - Tailwind is a godsend. You should have a design with a catalogue of components to build off of so you don’t have 30 card components. It’s a your-team issue, not a Tailwind issue.
- acdha 4y agoThat’s a single variable or rule if you want to change it site-wide. If you want an unsemantic one-off, you can do it just like Tailwind by setting a utility class like “p2”.