A Gatsby plugin that wraps the root element in a react-jss JssProvider for JSS support. Version 1.0.10, last updated in 2019 with no recent releases. It provides custom configuration for JssProvider props, custom JSS instances, and optional CSS minification via csso. Unlike gatsby-plugin-jss, this plugin offers a customizable config module path and minification. Requires gatsby >2.0.0-alpha and react-jss >8.6.1. The package is minimal and may not be actively maintained.
npm install gatsby-plugin-jss-providerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds JSS support to Gatsby by wrapping the root element in JssProvider with default settings.
Set options.pathToConfigModule to a path like 'src/config/jss.js'.
Ensure the module exports a function: module.exports = (jss) => { return { jss, ... }; }Create a config module that calls jss.setup() and returns { jss, generateId }.Switch to gatsby-plugin-jss (official) or use CSS-in-JS alternatives like Emotion or styled-components.
Verify the path is relative to the project root and the file exists and exports a function.
Ensure react-jss is installed correctly and the config module receives the JSS instance as a parameter.