Skip to main content
Back to Log
September 18, 2024

Building a Scalable Design System with Tailwind CSS

How we abandoned messy CSS modules in favor of a strictly tokenized Tailwind config to maintain visual consistency across 7 products.

Tailwind CSS gets a lot of hate for creating "ugly HTML". But when used as an engine for a Design System, rather than just a utility library, it is unparalleled.

We map our Figma design tokens directly into tailwind.config.ts:

theme: {

colors: {

ink: '#111111',

paper: '#F9F9F7',

muted: '#888888'

},

fontFamily: {

display: ['var(--font-anton)', 'sans-serif'],

body: ['var(--font-garamond)', 'serif']

}

}

This ensures that developers physically cannot use a color or font size that isn't part of the design system, enforcing absolute visual consistency across the entire suite of products.

Start a project · Free quote

LET'SBUILD.

Leave your email or number and a one-line brief. You'll hear back from an engineer — not a salesperson — within 24 hours, with a clear plan and a quote.

24-hour reply No obligation 200+ businesses built

Suite from ₹250/mo · Labs from ₹10,000 · see full pricing

We only use this to reply about your project. No spam, no lists.