Which css-in-js is everyone using?

This page summarizes the projects mentioned and recommended in the original post on /r/webdev

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • stitches

    [Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

  • I've been using Stitches.js with Next.js and TypeScript, and it's been the best experience I've ever had with any styling solution. It's a very well thought out library with great DX and performance. Unfortunately there's uncertainty about Stitches' future. Additionally React Team is officially recommending moving away from runtime CSS-in-JS towards static extraction, which is currently not supported by Stitches. Therefore it's difficult for me to recommend Stitches for new React projects.

  • vanilla-extract

    Zero-runtime Stylesheets-in-TypeScript

  • I find Tailwind CSS and vanilla-extract to be the best alternatives for my use cases.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  • I find Tailwind CSS and vanilla-extract to be the best alternatives for my use cases.

  • react-18

    Workgroup for React 18 release.

  • I've been using Stitches.js with Next.js and TypeScript, and it's been the best experience I've ever had with any styling solution. It's a very well thought out library with great DX and performance. Unfortunately there's uncertainty about Stitches' future. Additionally React Team is officially recommending moving away from runtime CSS-in-JS towards static extraction, which is currently not supported by Stitches. Therefore it's difficult for me to recommend Stitches for new React projects.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts