Migrating to TailwindCSS, iteratively, in your Drupal theme

Matt Glaman
3 min readApr 22, 2021

I’m a huge fan of TailwindCSS. After using it, I find writing media queries for responsive interfaces complicated instead of leveraging the responsive variants of Tailwind. Not to mention I can stop fretting over the naming of my classes to ensure I meet my own made-up SMACSS/BEM standard.

I am migrating my personal site to use Tailwind. The current version isn’t anything fancy, it’s mostly vanilla CSS, but I pass it through PostCSS for some cleanup via Gulp.

--

--

Matt Glaman

PHP software engineer, open source contributor, and speaker