Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@gatsby-themes/emotion

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gatsby-themes/emotion

Emotion theme

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

Gatsby Emotion Theme

The emotion theme sets up the configuration based on the best practices recommended by the Gatsby team

  • This takes care of all the setup and configuration requirements for theming, layouts and setup.
  • This uses theme-ui as the theming style system
  • This also is a core / component UI library of EmotionJS components. As an example a sample UI component has been added called About
  • To access the About component
import {About} from @gatsby-themes/emotion;

How to use

  • Add the dependency @gatsby-themes/emotion
  • The emotion theme will warn of the peer dependencies which also must be added to the gatsby site leveraging this theme.
  • The dependencies include
    • "@emotion/core": "^10.0.14",
    • "@emotion/styled": "^10.0.14",
    • "@mdx-js/react": "^1.0.27",
    • "@theme-ui/presets": "^0.2.10",
    • "emotion-theming": "^10.0.14",
    • "gatsby-plugin-emotion": "^4.0.7",
    • "theme-ui": "^0.2.14"
yarn add `@gatsby-themes/emotion`
  • Configure the theme in the gatsby-config.js file.
module.exports = {
	plugins: [
		{
			resolve: '@gatsby-themes/emotion',
			options: {
				fullMode: true
			}
		}
	]
};

Keywords

gatsby

FAQs

Package last updated on 20 Jul 2019

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