An open API service indexing awesome lists of open source software.

https://github.com/realstandal/redwoodjs-twin.macro-emotion-example

RedwoodJS example using Twin.Macro and EmotionJS, powered by TailwindCSS-utilities.
https://github.com/realstandal/redwoodjs-twin.macro-emotion-example

Last synced: 3 months ago
JSON representation

RedwoodJS example using Twin.Macro and EmotionJS, powered by TailwindCSS-utilities.

Awesome Lists containing this project

README

        

# Redwood: Twin.Macro & Emotion Example

> I saw some people talking about Twin and Emotion on the Redwood Discord and decided to share my experience integrating these tools with Redwood.

This example includes the setup required to use [`twin.macro`](https://github.com/ben-rogerson/twin.macro) and [`emotion`](https://emotion.sh/docs/introduction) within a RedWoodJS application, featuring the utilities offered by [`TailwindCSS`](https://tailwindcss.com/).

It also uses the new Redwood `0.27` TypeScript `create-redwood-app` setting.

Instructions on how to reproduce this repository can be found [here](https://github.com/realStandal/my-redwoodjs-tips-n-workflows/blob/main/twin-macro-emotion.md#redwoodjs-using-twinmacro--emotion).

## Usage

To view this example (though I recommend you [set-it-up yourself](https://github.com/realStandal/my-redwoodjs-tips-n-workflows/blob/main/twin-macro-emotion.md#redwoodjs-using-twinmacro--emotion)), `clone` this repository and `install` all dependencies using Yarn.

`yarn rw storybook` should start the Storybook server, containing three example components, each built using a different `twin.macro` method.