/gatsby-recipe-emotion-twin

A Gatsby recipe for adding ๐Ÿ‘ฉโ€๐ŸŽค Emotion and ๐Ÿฆนโ€โ™‚๏ธ Twin

Gatsby Recipe Emotion Twin

๐Ÿฆนโ€โ™‚๏ธ Twin lets you style with Tailwind classes in jsx.

Twin works best with css-in-js libraries like ๐Ÿ‘ฉโ€๐ŸŽค emotion and ๐Ÿ’… styled-components.

Minimum requirements

  • Node version 12 +
  • Gatsby version 2.20.23 +

Getting started

Create a new Gatsby project based on the Gatsby starter:

gatsby new gatsby-emotion-twin https://github.com/gatsbyjs/gatsby-starter-hello-world
# then
cd gatsby-emotion-twin

Start the Gatsby recipe:

gatsby recipes https://raw.githubusercontent.com/ben-rogerson/gatsby-recipe-emotion-twin/master/main.mdx

Start your development server

npm run start
# or
yarn start

Then view the demo at /twin-emotion-example