@emotion/stylis
A custom build of Stylis
Last updated 5 years ago by mitchellhamilton .
MIT · Repository · Original npm · Tarball · package.json
$ npm install @emotion/stylis 
SYNC missed versions from official npm registry.

@emotion/stylis

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.

Thanks

Stylis was written by Sultan Tarimo. ❤️

Current Tags

  • 0.8.5                                ...           latest (5 years ago)
  • 10.0.0-really-unsafe-please-do-not-use.2                                ...           really-unsafe-please-do-not-use (6 years ago)

22 Versions

  • 0.8.5                                ...           5 years ago
  • 0.8.4                                ...           5 years ago
  • 0.8.3                                ...           6 years ago
  • 0.8.2                                ...           6 years ago
  • 0.8.1                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 10.0.0-really-unsafe-please-do-not-use.2                                ...           6 years ago
  • 10.0.0-really-unsafe-please-do-not-use.1                                ...           6 years ago
  • 10.0.0-really-unsafe-please-do-not-use.0                                ...           6 years ago
  • 0.7.1                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.12                                ...           6 years ago
  • 0.6.11                                ...           6 years ago
  • 0.6.10                                ...           6 years ago
  • 0.6.9                                ...           6 years ago
  • 0.6.8                                ...           6 years ago
  • 0.6.7                                ...           7 years ago
  • 0.6.6                                ...           7 years ago
  • 0.6.5                                ...           7 years ago
  • 0.6.4                                ...           7 years ago
  • 0.6.3                                ...           7 years ago
  • 0.6.2                                ...           7 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE