Back to Thoughts

The Shift to Tailwind CSS v4

Why the move to a CSS-first configuration is a game changer for modern web development.


Tailwind CSS v4 introduces a revolutionary approach to styling: CSS-first configuration. No more massive tailwind.config.ts files; instead, everything lives where it should—in your CSS.

Why it matters

  1. Simplicity: No more duplication between CSS variables and your config.
  2. Speed: Built on a new engine that is significantly faster during development.
  3. Power: Better support for container queries and modern CSS features.

Code Sample

Here is how we define our theme now:

@theme {
  --color-primary: hsl(var(--primary));
  --color-green-neon: #a8ff00;
}

React Component in MDX

Since this is MDX, we can even drop in components. (Implementation of specific custom blocks can be added as we grow this thoughts section).

"The best code is no code at all."

Stay curious.


© 2026 Daniel Dallas Okoye

The best code is no code at all.