Imports
Jess can import from other Jess stylesheets and JavaScript, and you can use Rollup plugins to extend the types of imports.
Ignoring imports#
Imports 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 stylesheets#
You can import / mixin entire stylesheets using the default export.
Importing into JS Components#
caution
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 React#
Given the following Jess stylesheet component.m.jess...
...the Rollup / Webpack plugin will allow you to import like this into a React component: