How to use the stylis.set function in stylis

To help you get started, we’ve selected a few stylis examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeit / hyper / lib / containers / hyper.tsx View on Github external
render() {
    const {isMac: isMac_, customCSS, uiFontFamily, borderColor, maximized, fullScreen} = this.props;
    const borderWidth = isMac_ ? '' : `${maximized ? '0' : '1'}px`;
    stylis.set({prefix: false});
    return (
      <div id="hyper">
        <div style="{{fontFamily:">
          
          
          {this.props.customInnerChildren}
        </div>

        

        {this.props.customChildren}

        <style></style></div>
github styled-components / vue-styled-components / src / models / ComponentStyle.js View on Github external
constructor (rules) {
      this.rules = rules
      stylis.set({ keyframe: false })
      if (!styleSheet.injected) styleSheet.inject()
      this.insertedRule = styleSheet.insert('')
    }

stylis

A Light–weight CSS Preprocessor

MIT
Latest version published 15 days ago

Package Health Score

86 / 100
Full package analysis