Big update!Introducing GitHub Bot Commands. Learn more
Log inBook a demo


Package Overview
File Explorer

Advanced tools


A custom build of Stylis


Version published
Weekly downloads
decreased by-14.89%

Weekly downloads




A custom build of Stylis

@emotion/stylis is a version of Stylis that has been modified slightly to make it smaller. The only Stylis option that can be changed is prefix, the rest of the options are already set to the values shown below and cannot be changed. This package also only exports the constructer, so you have to do new Stylis() and use the result from that rather than directly calling Stylis. The result of that function also cannot be used to create a stylis instance unlike stylis.

type Options = { global: false, preserve: false, keyframe: false, semicolon: true, cascade: true, compress: false, prefix: boolean | ((key: string, value: string, context: number) => boolean) } import Stylis from '@emotion/stylis' const stylis = new Stylis() stylis('.css-hash', 'display:flex;') // .css-hash{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}

Building this package

To build this package from a newer version of stylis, update the version of stylis that is installed as a devDependency and run node build.js in the directory of this package. This will read the source of stylis, transform it slightly, use the Google Closure Compiler REST API to minify it, format it with Prettier and then write it to src/stylis.min.js.


Stylis was written by Sultan Tarimo. ❤️


What is @emotion/stylis?

A custom build of Stylis

Is @emotion/stylis popular?

The npm package @emotion/stylis receives a total of 5,005,436 weekly downloads. As such, @emotion/stylis popularity was classified as popular.

Is @emotion/stylis well maintained?

We found that @emotion/stylis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 3 open source maintainers collaborating on the project.

Last updated on 22 Dec 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket


Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc