compiled VS stitches

Compare compiled vs stitches and see what are their differences.

compiled

A familiar and performant compile time CSS-in-JS library for React. (by atlassian-labs)

stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience. (by stitchesjs)
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
compiled stitches
16 80
1,957 7,689
0.7% 0.2%
9.1 3.9
4 days ago 4 months ago
TypeScript JavaScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

compiled

Posts with mentions or reviews of compiled. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-13.
  • Why is tailwind so hyped?
    7 projects | /r/webdev | 13 Jan 2023
    tags inside SFCs are typically injected as native </code> tags during development to support hot updates. <strong>For production they can be extracted and merged into a single CSS file.</strong></p> </blockquote> <p>There are also 3rd party CSS libs that do the same thing such as <a href="https://linaria.dev/">linaria</a>, <a href="https://vanilla-extract.style/">vanilla-extract</a>, and <a href="https://compiledcssinjs.com/">compiled CSS</a>. Which can be used in the event you're stuck with something that doesn't have baked in support via SFC formats (looking at you React).</p> <p>These are my preferred ways of handing it.</p> <ol> <li>Tailwind</li> </ol> <p>Option 2 is tailwind, which works backwards.</p> <p>That is, instead of the above with extraction where you write the styles, and the framework or libs extract them and replace them with class names, it's the other way around.</p> <p>You're writing class names first (which are essentially aggregated CSS property-values) which then generate and/or reference styles.</p> <p>It has the advantage of being easy to write (assuming you've got editor LSP, linting, etc), but as you've discovered, it's difficult to read / can get really messy really fast.</p> <p>As far as all the other claims on the Tailwind site, it's all marketing, at least 80% bullshit.</p> </div>
  • Individual css for every component?
    3 projects | /r/webdev | 14 Dec 2022
  • Hey friendos, need some help choosing a "framework" with some specific requirements in mind
    5 projects | /r/webdev | 8 Dec 2022
    Your choice of CSS lib. Bootstrap can still be a valid choice, tho you may want to check the docs of whatever SSR / SSG framework you end up using as they may have better (or worse support). For example if you wanted to do CSS-in-JS (Next) i'd consider Linaria, vanilla-extract, or compiled.
  • Why We're Breaking Up with CSS-in-JS
    6 projects | /r/javascript | 16 Oct 2022
    So to be extremely clear, the issue isn't CSS-in-JS per se, it's just that the author only looked at implementations that don't generate create CSS files. He notably mentioned the (apparent) zero-runtime solutions Vanilla Extract and Linaria, only to skip them and complain that Compiled inserts nodes at runtime.
    11 projects | dev.to | 16 Oct 2022
    Compiled
  • How common is using styled components?
    3 projects | /r/reactjs | 2 May 2022
    Link: https://compiledcssinjs.com/
  • SASS vs CSS Modules vs CSS-in-JS vs Compile time CSS-in-JS. Who wins?
    9 projects | dev.to | 11 Jan 2022
    Compiled (Compile time CSS-in-JS solution from Atlassian)
  • CSS in JS zero runtime libraries similar to JSS which allow to reuse styles?
    3 projects | /r/reactjs | 4 Nov 2021
    Stitches Is near zero runtime and vanilla-extract claims it's zero runtime and typed. There's atlassian compiled as well but I never used it.
  • Goodbye CSS Modules, Hello TailwindCSS
    9 projects | news.ycombinator.com | 4 Nov 2021
    Author here, I haven't had time to play around with it, but this library[0] from Atlassian looks like a "best of the both worlds" styling approach: CSS-in-JS authorship without the runtime penalty.

    [0] https://compiledcssinjs.com/

  • A familiar and performant compile time CSS-in-JS library for React
    1 project | news.ycombinator.com | 21 Mar 2021

stitches

Posts with mentions or reviews of stitches. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-03.
  • Styling React 2023 edition
    11 projects | dev.to | 3 Nov 2023
    Over the past few years, I've worked with React apps utilising various CSS-in-JS libraries, starting with styled-components, transitioning through emotion, Theme UI, and finally Stitches. I've also integrated MUI, Mantine, and Chakra in numerous client projects.
  • HyperUI: Free Open Source Tailwind CSS Components
    3 projects | news.ycombinator.com | 11 Aug 2023
    Radix has some great ideas that challenge the way components are usually built. I'd love to use it, but am somewhat burned by how Stitches stopped being maintained due to the changes in React 18. Context: https://github.com/stitchesjs/stitches/discussions/1149#disc...

    To be clear, it's not so much that they decided to not spend time, energy and money into maintaining it, but that there's seemingly been very little (if any) interest in letting others maintain it despite several people expressing interest. I'm sure it's scare handing over commit access, but if you're giving it up anyway then why not just do it, see what happens? Instead it's just dead in the water.

    I'd happily pay license fees to use Radix and/or Stitches, if that guarantees maintenance. Sadly that's not an option it seems.

  • Why do experienced front-end developers use CSS frameworks?
    1 project | /r/webdev | 9 Jun 2023
    I work on a lot of more "creative" projects where frameworks like TailwindCSS or Bootstrap just don't cut it. My approach has always been to use some kind of library to ease the process of creating my own CSS framework that can then be used by other people. I find that Stitches does it pretty well. You set your design tokens, then you have IntelliSense to help people understand the design system.
  • I created a Zero-Runtime CSS-in-JS Library Compatible with Next.js App Router and RSC
    4 projects | dev.to | 16 May 2023
    Some libraries, such as Stitches, claim near-zero runtime performance overhead by tackling the first issue (parsing JavaScript CSS objects). Nevertheless, they still inject the parsed CSS into the DOM at runtime, which means they haven’t entirely eliminated the performance concerns.
  • what's the best way for styling our components in react?
    3 projects | /r/reactjs | 11 Feb 2023
    Stitches allows you to map your design system
  • What are ways we can integrate our designers into our React projects?
    2 projects | /r/reactjs | 3 Feb 2023
    Define strict system of colors, spaces, etc then attempt to synchronize usage of it in both design and code (tools like https://vanilla-extract.style/ or https://stitches.dev/ can help with enforcing system on software side)
  • What would be your styling library of choice if you were starting a new project?
    1 project | /r/react | 28 Jan 2023
    Curious to understand what is trending. We've been big fans of Stitches, however, unfortunately the project is no longer maintained.
  • Introducing DecaUI
    3 projects | /r/reactjs | 25 Jan 2023
    There are some issues with SSR and NextJS in React 18: https://github.com/stitchesjs/stitches/issues/863
  • Getting started with NextUI and Next.js
    6 projects | dev.to | 25 Jan 2023
    According to the docs, NextUI is a React UI library that allows you to make beautiful, modern, and fast websites/applications regardless of your design experience. It is created with React and Stitches, based on React Aria, and inspired by Vuesax.
  • Top 3 React UI Libraries in 2023
    4 projects | dev.to | 21 Jan 2023
    Stitches CSS customization

What are some alternatives?

When comparing compiled and stitches you can also consider the following projects:

linaria - Zero-runtime CSS in JS library

vanilla-extract - Zero-runtime Stylesheets-in-TypeScript

Tailwind CSS - A utility-first CSS framework for rapid UI development.

identity-obj-proxy - An identity object using ES6 proxies. Useful for mocking webpack imports like CSS Modules.

chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications

twin.macro - 🦹‍♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.

Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.

tailwindcss-classnames - Functional typed classnames for TailwindCSS

tailwind - 🔥 A schematic that adds Tailwind CSS to Angular applications

jest-styled-components - 🔧 💅 Jest utilities for Styled Components

styled-system - ⬢ Style props for rapid UI development