Documentation

Utilising tagged template literals (a recent addition to JavaScript) and the power of CSS, styled-components allows you to write actual CSS code to style your components. It also removes the mapping between components and styles – using components as a low-level styling construct could not be easier!

The Basics

Motivation

Installation

Getting Started

Adapting based on props

Extending styles

Styling any component

Passed props

Coming from CSS

Attaching additional props

Animations

React Native

FAQs

Migration

What do I need to do to migrate to v6?

What do I need to do to migrate to v5?