Available For Front-End & Design Systems Contracts – Get In Touch

Always Twisted

Introducing ReliCSS: A Tool for Front-End Archaeology

As a contracting front-end developer and Design Systems consultant, I don't always get to work on new things.

Sometimes I work within codebases. Sometimes alongside them. Sometimes these codebases are years and years old.

When you dive into these projects, you're not just reading code, you're excavating years of decisions, technological limitations, and creative workarounds from days gone by. Over the last decade, I've called this Front-End Archaeology.

The Art of Excavation

When I encounter a clearfix hack, I’m looking at a time when layout engines couldn't contain floated elements. When I see a "doubled float margin bug" fix, I’m witnessing “the scars” left by Internet Explorer 6. Every specific vendor prefix, every browser hack, and every strange !important rule tells a story of a developer fighting against the constraints of their time to ship a working product.

It’s easy to look at old code and judge it by modern standards, but Front-End Archaeology requires empathy and curiosity. It asks not just "how do I delete this?" but "why was this necessary?" and "what can we learn from it?"

Front-End Archaeology can take time. Identifying these artifacts manually requires deep historical knowledge of browser quirks that many modern developers (thankfully) never had to learn. That’s where tooling comes in.

Unearthing History with ReliCSS

I've built a tool to help with this archaeological quest: ReliCSS.

The ReliCSS interface showing the CSS scanner with code input area and results displaying severity levels for browser hacks

ReliCSS is an assistant during "the dig". It's a dedicated scanner that analyses CSS to identify historical artifacts or "browser hacks" that can riddle older stylesheets.

Whether you're auditing a legacy codebase for a refactor or just curious about the history in your project's stylesheets, ReliCSS helps you spot “the ghosts in the machine”.

How It Works

Currently you can paste your CSS into the ReliCSS and it will parse it and highlight any browser hacks it finds.

For every “hack”, ReliCSS shows you the browser target, the context, and some suggestions to modernise it. ReliCSS assigns a Severity Level to help you prioritise what to refactor, and what you could or should remove:

I’ve built ReliCSS so it runs entirely in the browser, with contractors and consultants in mind who could be working with sensitive client code. When you click "Scan CSS," the analysis happens in the browser. No code gets sent to a server or anywhere else You can safely paste CSS without worrying about data leaks.

The Roadmap: Future Excavation Tools

As mentioned, right now, ReliCSS works by pasting CSS directly. But I am looking at things that can beed added and improved. Here's what's coming:

From Archaeology to Modernisation

Front-end archaeology isn't just about admiring the ruins. It's about building on top of them safely. ReliCSS bridges the gap between the past and the present. It helps you confidently distinguish between load-bearing code and historical cruft.

By identifying which parts of your CSS exist only to support a 2006 browser, you can make informed decisions about what to keep, refactor, or delete. It can turn the daunting task of refactoring legacy CSS into an actual learning experience about web history.

If you find yourself staring at a stylesheet that looks like it survived the browser wars, give ReliCSS a try. You might learn something about where it came from and have an easier time getting it to where you want it to go.

🦋 - likes

    🔄 - reposts

      Like this post on Bluesky

      Struggling with responsive design, breakpoints, or mobile optimisation?

      I'll help you build a mobile-first, responsive approach that works smoothly across devices.

      get in touch!