From semantic CSS to Tailwind - Refactoring the Netlify UI codebase

From semantic CSS to Tailwind - Refactoring the Netlify UI codebase

in 2021, we are taking on the challenge of refactoring the entire Netlify UI codebase to utility CSS, using Tailwind. This blog post is the first of a series that will cover our decisions, implementation strategy, technical difficulties, and things we learn along the way.

The React codebase that powers app.netlify.com is about five years old. During these five years, the focus has mostly been on high-speed growth, as most start-ups do. For this reason, what started with organised PostCSS gradually grew to become a complex and entangled global CSS architecture with a lot of specificity and overrides. As you might expect, there’s a point where the added tech debt it introduces makes it difficult to keep shipping fast without adding any regressions. Besides, as the number of frontend developers contributing to the codebase also grows, this kind of CSS architecture becomes even more difficult to work with.

For this reason, in 2021, we are taking on the challenge of refactoring the entire Netlify UI codebase to utility CSS, using Tailwind.

This blog post is the first of a series that will cover our decisions, implementation strategy, technical difficulties, and things we learn along the way.

css tailwind netlify ui

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Figma design kit built to integrate with Tailwind CSS

Figma Community file — Figma design kit built for integration with Tailwind CSS Tailwind Figma is a free and open-source set of UI components and pages designed to integrate with the utility classes from Tailwind CSS. Unlock the full version Get access to the full version of Tailwind Figma which includes 27 hand-cra...

What is Tailwind CSS useful for?

What is Tailwind CSS useful for? It’s a matter of understanding what class names you’ll need, and that is going to take a little searching on the Tailwind Docs Website search bar. Nothing like a handy search!

Tailwind CSS tutorial

Start learning about Tailwind CSS with this guide which covers installing via a package manager, generating the configuration file, building a website and reducing the final CSS file.

Tailwind CSS Cheatsheet

Master Tailwind CSS with this Cheatsheet. Tailwind CSS allows us to build modern websites with the respective classes without writing a single native CSS. Tailwind is amazing since we have to only to specify the respective classes and Tailwind CSS will take care of everything. We will see the most basic CSS classes and their relative properties in CSS.

Tailwind CSS Buttons UI Kit

![Tailwind CSS Buttons UI Kit](https://w3hubs.com/ptoosecu/2021/02/Tailwind-CSS-Buttons-UI-Kit-1024x592.png "Tailwind CSS Buttons UI Kit") Tailwind CSS is a modern CSS framework that is for rapid UI development with awesome component and utility...