New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

gatsby-plugin-jss

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-jss

Gatsby plugin that adds SSR support for JSS

4.6.0-alpha-ts-jit.60
alpha-ts-jit
Version published
Weekly downloads
951
395.31%
Maintainers
16
Weekly downloads
 
Created

gatsby-plugin-jss

Provide drop-in support for using the css-in-js library JSS including server rendering.

Install

npm install gatsby-plugin-jss react-jss

How to use

Add the plugin to your gatsby-config.js.

plugins: [`gatsby-plugin-jss`]

Or with theme

const theme = {
  fontSize: 16,
  fontFamily: "Roboto",
  color: "#212121",
}

plugins: [
  {
    resolve: "gatsby-plugin-jss",
    options: { theme },
  },
]

Example

https://using-jss.gatsbyjs.org/

FAQs

Package last updated on 21 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts