styled-components utilises tagged template literals to style your components.
It removes the mapping between components and styles. This means that when you're defining your styles, you're actually creating a normal React component, that has your styles attached to it.
Package under the hood for prefixing the css rules: https://stylis.js.org/
Repositry: https://github.com/thysultan/stylis.js.