rsnext/examples/with-vanilla-extract
Jack Sutton 27655dbba7
Update Vanilla Extract Example (#50394)
### What?
- Adds an updated Vanilla Extract example
- ~~Note that `@vanilla-extract/next-plugin` currently requires
`experimental: { appDir: true }` to be set.~~

### Why?
- The
[documentation](https://nextjs.org/docs/app/building-your-application/styling/css-in-js)
currently links to a [personal
repo](https://github.com/SuttonJack/vanilla-extract-app-dir)
- Closes https://github.com/SuttonJack/vanilla-extract-app-dir/issues/2

<p align="center"><img width="600"
src="https://github.com/vercel/next.js/assets/92991945/eeab322e-e75e-4999-9fe7-39aa15c45c11"
/></p>

-->
2023-05-27 01:41:17 +00:00
..
app Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
components Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
public Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
.gitignore Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
next-env.d.ts Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
next.config.js Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
package.json Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
README.md Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00
tsconfig.json Update Vanilla Extract Example (#50394) 2023-05-27 01:41:17 +00:00

Next.js + vanilla-extract Example

This example demonstrates usage of Vanilla Extract with the app directory.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-vanilla-extract with-vanilla-extract-app
yarn create next-app --example with-vanilla-extract with-vanilla-extract-app
pnpm create next-app --example with-vanilla-extract with-vanilla-extract-app

Deploy it to the cloud with Vercel (Documentation).