Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@emotion/server

emotion-js2.3mMIT11.11.0TypeScript support: included

Extract and inline critical css with emotion for server side rendering.

styles, emotion, react, css, css-in-js, ssr, server-side-rendering

readme

@emotion/server

Extract and inline critical css with emotion.

@emotion/server provides three APIs for doing server-side rendering with emotion to extract critical css, inline critical css in html to a string and inline critical css in html to a stream.

@emotion/server's APIs are documented here.

npm install --save @emotion/css @emotion/server