Imports
Jess can import from other Jess stylesheets and JavaScript, and you can use Rollup plugins to extend the types of imports.
#
Ignoring importsImports that are not using the ES module pattern are ignored / output as-is. The output for the following will be the same as input.
#
Importing stylesheetsYou can import / mixin entire stylesheets using the default export.
#
Importing into JS Componentscaution
This requires the Rollup or Webpack plugin, which are not ready yet! So this part of the API is currently the least stable and needs the most input!
#
Using with ReactGiven the following Jess stylesheet component.m.jess
...
...the Rollup / Webpack plugin will allow you to import like this into a React component: