rsnext/examples/with-stitches
Rob Easthope e0b384929c
with-stitches example fixes #28650 (#28652)
The with-stitches example is broken presumably due to changes in the Stitches API now that it's hit `1.0.0`. I've created an issue already: #28650 

I've made three small changes:
- Replaced the createCss function in `stitcheds.config.js` with createStitches
- Replaced the getCssString function with getCssText  in `stitches.config.js` and `pages/_documents.jsx`
- Bumped `@stitches/react` to `^1.0.0` 🎉

I've left the rest of the example code alone as I'm still exploring the library after seeing yesterdays release annoucement.

@peduarte Is there anything else that needs to updated?
2021-09-07 02:14:32 +00:00
..
components Update with-stitches example (#23281) 2021-03-22 21:29:58 +00:00
pages with-stitches example fixes #28650 (#28652) 2021-09-07 02:14:32 +00:00
public Update with-stitches example (#16827) 2020-09-03 17:38:13 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json with-stitches example fixes #28650 (#28652) 2021-09-07 02:14:32 +00:00
README.md docs: add 'Open in StackBlitz' buttons to various examples (#25853) 2021-06-08 20:45:02 +00:00
stitches.config.js with-stitches example fixes #28650 (#28652) 2021-09-07 02:14:32 +00:00

Stitches Example

This example shows how to use the Stitches CSS-in-JS Library.

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute Create Next App with npm or Yarn to bootstrap the example:

npx create-next-app --example with-stitches with-stitches-app
# or
yarn create next-app --example with-stitches with-stitches-app

Deploy it to the cloud with Vercel (Documentation).