<button style="css blob">After</button>
Why make a bunch of css classes when it looks to me like the "style" will be roughly the same amount of code and readability. <button style="css blob">After</button>
Why make a bunch of css classes when it looks to me like the "style" will be roughly the same amount of code and readability.I like to format in logical chunks per line, for example here's a pretty complex grid setup that is easy to adjust in the template:
----
<section className="
w-full
px-8 py-16
md:px-16
">
<div className="
grid
gap-2
auto-rows-[minmax(0px,1fr)]
grid-cols-[repeat(1,minmax(4rem,1fr))]
grid-rows-[repeat(1,minmax(4rem,1fr))]
md:grid-cols-[repeat(6,minmax(6rem,1fr))]
md:grid-rows-[repeat(3,minmax(6rem,1fr))]
xl:grid-cols-[repeat(8,minmax(6rem,1fr))]
xl:grid-rows-[repeat(2,minmax(2rem,1fr))]
justify-center
">
----You’re neglecting the design system work that goes into tailwind classes. I don’t particularly like its choices (and generally consider tailwind to be a minimal local maximum for a set of tradeoffs deserving of faint praise), but they’re something, and in an engineering culture that won’t adopt a better mindset or better tooling, it’s something that solves a few problems well enough.
I feel like I've been nerd sniped trying to figure out what you mean by this.
I have ML engineer brain, so to me any small change from a local maximum is an IMPROVEMENT (because we try to minimize loss functions).
Your reading makes more sense.
<RetroButton variant="primary" />You can also change styles through javascript if you really want to.
It just seems like we've lost the entire reason for css in the first place when every css attribute gets turned into it's own class.
I only sprinkle in the very occasional tailwind class via UnoCSS. I don't have the fire in me to dig trenches for either side of this battle that some people want to make all this into.
No, but they will change things like their constants ("bg-neutral" or, in this case, the spacing constant).