Sent on Jul 18, 2025

Using CSS Layers with Tailwind CSS

A couple of weeks ago, Zoran Jambor from CSS Weekly asked if I had examples of using CSS Cascade Layers in a real project.

Turns out, I do!

It’s probably going to surprising to most people that I use CSS Cascade Layers together with Tailwind CSS, because you were supposed to write utilities in the HTML directly.

But of course, that statement is simply an opinion, not a truth.

I’ve mentioned this many times by now: Tailwind and CSS are both tools — which means you can find a way to use the benefits of both tools at the same time.

This CSS Cascade Layer trick is simply one of the layers (ha) of the synergistic I’ve found when using both Tailwind and CSS at the same time.

By the way, the synergy between Tailwind and CSS is the premise behind Unorthodox Tailwind. It covers how I use Tailwind and CSS together in ways that may surprise you — because you’ll likely see improved clarity and ease when building your sites when you adopt this approach.

The course is still heavily in WIP so there’s still a preorder discount if you’re interested. (I just rewrote the entire thing from scratch again to make it better).

Today’s article is going to give you a sneak peek into one the layers I use in the Unorthodox Tailwind methodology.

Hope you have fun reading this!

Stay awesome,
Zell