DEV Community

Cover image for The case for “old school” CSS

The case for “old school” CSS

Chen Hui Jing on March 25, 2025

Do people still write CSS in CSS files any more? I honestly don’t keep up with the trends as much as I did back when I started by career. Partly be...
Collapse
 
jasondmoss profile image
Jason D. Moss • Edited

I've been developing with Drupal, exclusively, since about 2017. I never jumped on the Bootstrap, [insert framework] hype -wagon(s), and still entirely write plain, old, CSS. I would have it no other way.

PS. This, Coaching Association of Canada, site is built with plain CSS

Collapse
 
moopet profile image
Ben Sinclair

Me too. I've been on Drupal 7 and 8-11, and avoided doing any of the bolt-ons. You don't need anything "more" than regular CSS in 2025. If anything, as the years have gone on, the use-case for frameworks and utility-class stuff has decreased.

Collapse
 
kristianandersen profile image
kristian andersen

I use css in a new vue3 project im working on. the markup just got way to messy using tailwind and also, wrangling tailwind to be more dynamic is hard. + i like oldschool css

Collapse
 
mindplay profile image
Rasmus Schultz

I wanted to read an article about "the case for old school CSS"

I gave up trying to read this because it's clearly an article about CSS in Drupal

if you have a case to make for "old school CSS" in general, I'd love to read an article that isn't about Drupal

either way, I'd suggest a more precise title ending with "in Drupal" 😌

Collapse
 
huijing profile image
Chen Hui Jing

You're right, it is VERY drupal heavy. but you also gave me a good suggestion for the next potential blog post, so thank you for that :)

Collapse
 
georgecoldham profile image
George

I dont use Drupal, but I do use .css files all the time. I have used so many css-in-js frameworks and things like Tailwind, all of which introduce their own ideals, issues etc and then are eventually abandoned as the FE web world moves on. CSS will always be supported (in the foreseeable future). I believe having a solid understanding of it is invaluable for the work we do, whether we use it in our day-to-day or not.

Collapse
 
learncomputer profile image
Learn Computer Academy

Your Drupal 10 use case is spot-on—nearly a million sites still rocking it in 2025 shows it’s far from dead. The flexbox approach and mobile toggle animation are slick yet simple. I still write CSS in .css files too—there’s a charm to it. Did you ever think about templating the language switcher into the menu instead? Either way, great stuff!

Collapse
 
huijing profile image
Chen Hui Jing

I did think about that! But my rudimentary research all pointed toward having to write my own custom module for it, so I chose to go the CSS route instead.

Collapse
 
nevodavid profile image
Nevo David

Thank you for posting!

Collapse
 
xwero profile image
david duymelinck

A bonus in Drupal is that you don't need to have a a bundler because it has assets management build in.

Collapse
 
julitroalves profile image
Julio Alves

Great article using drupal and old-school CSS. I was thinking these days about a course or something to make me updated with all the new stuff in the frontend world, do you have any suggestions? Btw, I've been working with Drupal for 15 years.

Collapse
 
huijing profile image
Chen Hui Jing

personally, a lot of my awareness of the new stuff comes from newsletters like frontendfoc.us/ and bytes.dev/
i haven't actually taken any courses lately so i don't feel qualified to recommend specific ones, but i think folks like Adam Argyle (nerdy.dev/), Una Kravets (una.im/), Ahmad Shadeed (ishadeed.com/articles/) and Stephanie Eckles (moderncss.dev/) among many others write a lot about modern CSS techniques in the real world. i find their blog posts very useful.

Collapse
 
moopet profile image
Ben Sinclair

You can’t old-school CSS without CSS classes.

... isn't that what the cascade is for?

Collapse
 
kizukuraudo profile image
John Keys Cloud

SCSS for the win.

Collapse
 
huijing profile image
Chen Hui Jing

can't say i disagree. but once nesting started being supported in native CSS, that was a bulk of what i used SCSS for. mixins and being able to loop is still great in SCSS though.

Collapse
 
kizukuraudo profile image
John Keys Cloud

Can’t say I disagree 🤝

Collapse
 
sickfile profile image
b'stard/tempest

...and i remember a period after tables, but before floats that was all about frames.