Comment

Comment by satvikpendem

Having used Tailwind, once the class lists get large, it inevitably just becomes CSS classes again. My previous role had

    const headerStyles = ["bg-slate-100", "rounded-xl", "p-8" ...]
    ...
    <div className={...headerStyles} ... >...</div>
and so on. So at that point, why use Tailwind anymore?

Currently I use Vanilla-Extract, it's like SCSS but uses TypeScript instead of the SCSS language. It also compiles down into native CSS, so there's no runtime overhead like styled-components, emotion, etc.

https://vanilla-extract.style

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton