1. 1
    Getting Started with Emotion and Gatsby
    59s
⚠️ This lesson is retired and might contain outdated information.

Getting Started with Emotion and Gatsby

Chris Biscardi
InstructorChris Biscardi
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 2 years ago

How to install and use Emotion in a Gatsby project.

  • Emotion is a CSS library that focuses on composition of styles.
  • Gatsby is a progressive web app generator commonly used to build marketing, blog, and ecommerce sites.

Instructor: [00:00] First, we'll initialize a new Gatsby project with the default boilerplate. Then, we'll install Emotion Core and the Gatsby Emotion plugin. Now, we can open the gatsby-config.js and add our Emotion plugin.

[00:28] Next, we can start our Gatsby with yarn develop. We'll take the URL it gave us and put it into our browser. Next, we can go into our source folder and pages and open the index.js file. We're going to add some styles to the h1 tag.

[00:57] That's it. You've used Emotion for the first time.

egghead
egghead
~ 18 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today