Need advice about which tool to choose?Ask the StackShare community!

Emotion

179
181
+ 1
2
styled-components

948
452
+ 1
9
Add tool

Emotion vs styled-components: What are the differences?

Emotion: The Next Generation of CSS in JS. Emotion is a performant and flexible CSS-in-JS library. Building on many other CSS-in-JS libraries, it allows you to style apps quickly with string or object styles. It has predictable composition to avoid specificity issues with CSS. With source maps and labels, Emotion has a great developer experience and great performance with heavy caching in production; styled-components: Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress. Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅.

Emotion and styled-components belong to "JavaScript Framework Components" category of the tech stack.

Emotion and styled-components are both open source tools. styled-components with 24.7K GitHub stars and 1.46K forks on GitHub appears to be more popular than Emotion with 8.39K GitHub stars and 524 GitHub forks.

Swat.io, Teleport, and Fateseal are some of the popular companies that use styled-components, whereas Emotion is used by CircleCI, MakeSpace Labs, Inc, and Park Holidays UK. styled-components has a broader approval, being mentioned in 63 company stacks & 48 developers stacks; compared to Emotion, which is listed in 11 company stacks and 5 developer stacks.

Decisions about Emotion and styled-components
Luca Restagno
Co-Founder at iterspace · | 5 upvotes · 12.1K views

Storybook, along with React, styled-components, and Atomic Design, is the perfect tool to boost your front end development productivity. It helps you develop isolated presentational components with a super fast hot reload. It allows to test your props with knobs. Finally you compose, and reuse your components in your app.

You can host your storybook as a static website and share it with the other devs, so they are aware of the components already available in your library, and how to use them.

You can share the same with your UI/UX team, and converge towards a common design system.

You can even run visual regression tests on your library, with storyshots.

Which stack do you use on the Front End?

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Emotion
Pros of styled-components
  • 2
    Easy to use
  • 9
    Very easy to use and integrate

Sign up to add or upvote prosMake informed product decisions

Sign up to add or upvote consMake informed product decisions

What is Emotion?

Emotion is a performant and flexible CSS-in-JS library. Building on many other CSS-in-JS libraries, it allows you to style apps quickly with string or object styles. It has predictable composition to avoid specificity issues with CSS. With source maps and labels, Emotion has a great developer experience and great performance with heavy caching in production.

What is styled-components?

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅

Need advice about which tool to choose?Ask the StackShare community!

What companies use Emotion?
What companies use styled-components?
See which teams inside your own company are using Emotion or styled-components.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Emotion?
What tools integrate with styled-components?
What are some alternatives to Emotion and styled-components?
React Router
React Router is a complete routing solution designed specifically for React.js. It painlessly synchronizes the components of your application with the URL, with first-class support for nesting, transitions, and server side rendering.
Angular CLI
A command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications. You can use the tool directly in a command shell, or indirectly through an interactive UI such as Angular Console.
Ant Design
An enterprise-class UI design language and React-based implementation. Graceful UI components out of the box, base on React Component. A npm + webpack + babel + dora + dva development framework.
Storybook
It is an open source tool for developing UI components in isolation for React, Vue, and Angular. It makes building stunning UIs organized and efficient.
Angular Material
Sprint from Zero to App. Hit the ground running with comprehensive, modern UI components that work across the web, mobile and desktop. It allows to create material styled angular apps fast and easy.
See all alternatives