Why I prefer vanilla CSS over Tailwind
I have returned to writing vanilla CSS, and I love it.

Just a guy who loves to write code and watch anime.
Search for a command to run...
I have returned to writing vanilla CSS, and I love it.

Just a guy who loves to write code and watch anime.
No comments yet. Be the first to comment.
Qualities that make outstanding builders.

Bipedal vs quadrupedal: how many legs This is about the number of legs the creature walks on. Bipedal. Two legs. Humans, ostriches, T-rex, kangaroos, most fantasy humanoids. Quadrupedal. Four legs. Do

Intro You hear "lerp" and "smoothstep" everywhere in game dev. They sound like math jargon. They're not. Both are small tools that do the same job: smoothly move from one value to another. The problem

What is Kinematics Kinematics is the math field. It's the study of how things move without worrying about forces (which would be dynamics). FK and IK are the two branches: forward kinematics and inver

Intro Textures are usually the biggest cost in a 3D scene. Memory, bandwidth, and load time all get eaten by them. Resizing them is the obvious lever. There's more. This post is about the less obvious

So, why do I prefer vanilla CSS over Tailwind? That's what I'll tell you about here. One disclaimer before we continue: I like Tailwind, and I think it is awesome and helps you develop the UI very productively. Though, after a while of using it, I've come to prefer vanilla CSS over Tailwind.
I try to customize my theme, colors, breakpoints, and so on. I try to avoid creating utility classes when writing tailwind, but I end up doing so quite often, the same goes with using arbitrary values in Tailwind.
I find it annoying that my classes end up becoming Tailwind classes with arbitrary values, mixed with utility classes.
I got enough of it.
I want to have full control over my styles and create the utility classes I want. Any value and any CSS property.
I love vanilla CSS. The first feeling I get when writing vanilla CSS is power. Power over my styles, every pixel, and aspect of it.
I follow the BEM convention when writing my CSS.
My classes end up being a mix of the main class and the utility classes.
I also use CSS variables, especially when you don't want to repeat a value in numerous places.
For me, it is much easier to work with and maintain and makes me feel free.
This might just be me. I might be doing something wrong compared to other Tailwind users.
By the way, when it comes to the hover, active states, and so on, I enjoy customizing them in detail as well.
I love vanilla CSS: