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

Stencil

60
69
+ 1
0
styled-components

832
452
+ 1
9
Add tool

Stencil vs styled-components: What are the differences?

What is Stencil? A reusable web component generator. Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

What is 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 💅.

Stencil and styled-components can be primarily classified as "JavaScript Framework Components" tools.

Stencil and styled-components are both open source tools. It seems that styled-components with 24.7K GitHub stars and 1.46K forks on GitHub has more adoption than Stencil with 6.03K GitHub stars and 354 GitHub forks.

Decisions about Stencil 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 Stencil
Pros of styled-components
    Be the first to leave a pro
    • 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 Stencil?

    Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

    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 Stencil?
    What companies use styled-components?
    See which teams inside your own company are using Stencil 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 Stencil?
    What tools integrate with styled-components?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Stencil and styled-components?
    Svelte
    If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    Polymer
    Polymer is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries. Polymer is based on a set of future technologies, including Shadow DOM, Custom Elements and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.
    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.
    See all alternatives