ben-rogerson / gatsby-recipe-styled-components-twin

A Gatsby recipe for adding πŸ’… Styled Components and πŸ¦Ήβ€β™‚οΈ Twin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby Recipe Styled Components 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-styled-components-twin https://github.com/gatsbyjs/gatsby-starter-hello-world
# then
cd gatsby-styled-components-twin

Start the Gatsby recipe:

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

Start your development server

npm run start
# or
yarn start

Then view the demo at /twin-sc-example

About

A Gatsby recipe for adding πŸ’… Styled Components and πŸ¦Ήβ€β™‚οΈ Twin