Stitches

Stitches

The modern CSS-in-JS library with near-zero runtime.

8 followers

Stitches is a fully-typed CSS-in-JS library featuring near-zero runtime, server-side rendering, multi-variant support, and a best-in-class developer experience.
Stitches gallery image
Stitches gallery image
Stitches gallery image
Stitches gallery image
Launch Team
Anima - OnBrand Vibe Coding
Design-aware AI for modern product teams.
Promoted

What do you think? …

Colm Tuite
Hey all 👋 Stitches is a lightweight, performant CSS-in-JS library. Our goal is to design a more performant styling library with a focus on component architecture and developer experience. Key features include: - Performance: Stitches avoids unnecessary prop interpolations at runtime, making it significantly more performant than other styling libraries. - Server-side rendering: Stitches supports cross-browser server-side rendering, even for responsive styles and variants. - Variants: Variants are a first-class citizen, so you can design composable component APIs. - Theming: Define multiple themes with CSS variables, then expose them to any part of your app. - Specificity: Due to its atomic output, specificity issues are a thing of the past. - Developer experience: With a fully-typed API, token-aware properties, and custom utils, Stitches provides a fun and intuitive DX. - Interoperability: Stitches components support two-way compatibility with Modulz. Of course, this all comes alongside the usual benefits that most CSS-in-JS libraries provide, like critical CSS injection and vendor prefixing. Designed by the team at Modulz ✨
Rauno Freiberg
Knowing the amount of effort y'all put into Modulz and everything else in this space — I'm very excited to see this launch and I'll definitely be trying it out! Could you shed some light on the mentioned interoperability? What kind of workflow can we expect from this feature going forward? Thanks and keep up the awesome work! ✌️
Colm Tuite
@rauno Glad you asked :) The API will be fully interoperable with Modulz. You can literally copy/paste a Stitches component directly on a Modulz canvas, and all of the properties render in the properties panel. Then you can tweak the component in Modulz, and export to Stitches (or styled-components and emotion).
Kilian Valkhof
The theme/token notation in Stitches looks like it's a pleasure to work with. I'm not sure I could get used to object notation for CSS but I'm definitely going to see how this works for UI in Polypane!
Colm Tuite
@kilianvalkhof Cheers mate, looking forward to seeing what you come up with :)
Giuseppe
The gist is great, curious to see where this goes! Compile to Atomic CSS libraries are the hottest thing ATM and for a good reason: they produce small CSS output that grows very slowly if not at all over time. The most interesting bit probably is the built-in variants support: as I said on Twitter finally somebody took the time to find a better way to do variants and fix the forwarding props issue :) You can learn more about this here (around the end Christian talks about how variants work) https://twitter.com/christianalf...
Colm Tuite
@giuseppegurgone Thanks so much Giuseppe! Thanks for all the inspiration too, and for all your work in the community.
Rude
Yet another CSS-in-JS library, but this one I can't wait to try!
Pedro Duarte
@rude Thanks, looking forward to your feedback :)
Eugene Ross
I really like improvements this has over other CSS-in-JS libs (Looking at you Styled-Components). However, what's the reasoning behind the camelCase properties vs. kebab-case properties that we see in the current ecosystem? I personally like the syntax of traditional CSS but with the features of JS.
Colm Tuite
@eugeneross That's just JS object notation. It requires extra work and code to support string syntax, so we omitted it. We'll most likely introduce a plugin soon for those who want it and don't mind the extra weight.
Karita Kärmet
I've been looking forward to the launch, can't wait to start exploring 🤩
Pedro Duarte
@karita_karmet Awesome, please get in touch if you need any help
12
Next
Last