Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-goober

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-goober

Gatsby plugin to add support for goober

  • 2.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-plugin-goober

A Gatsby plugin for 🥜goober with auto pragma config and built-in server-side rendering support.

Install

npm install --save goober gatsby-plugin-goober

How to use

Edit gatsby-config.js

module.exports = {
    plugins: [`gatsby-plugin-goober`]
};

And now you can create your components using goober

import React from 'react';
import { styled } from 'goober';

const Button = styled('button')`
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    background-color: tomato;
`;

What does auto pragma config means?

goober needs to be instructed which pragma, eg JSX function, should be used to create the styled component. This is done via setup function and usually it's something that needs to be done inside the entry point or main file. For Gatsby that means gatsby-browser.js and gatsby-ssr.js which this plugin takes care of. So no need to worry about it, you simply use goober and everything is taken care of.

Keywords

FAQs

Package last updated on 27 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc