rsnext/examples/with-cssed
Max Proske 07d3da102d
Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018)
Updated 3 more examples to TypeScript. Changes to individual examples
pushed as separate commits.

- Swapped `cxs/lite` for `cxs`, as it's the only mode supported by
`@types/cxs`.

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm build && pnpm lint`
- [X] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-11-17 10:28:57 -08:00
..
lib Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018) 2022-11-17 10:28:57 -08:00
pages Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018) 2022-11-17 10:28:57 -08:00
.babelrc Include all files in Prettier (#17050) 2020-09-14 02:53:19 +00:00
.gitignore Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018) 2022-11-17 10:28:57 -08:00
package.json Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018) 2022-11-17 10:28:57 -08:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json Convert with-cssed, with-csx, with-styled-jsx examples to TypeScript (#43018) 2022-11-17 10:28:57 -08:00

Example app with cssed

This example shows how to use cssed, a CSS-in-JS library, with Next.js.

We are creating div element with local scoped styles. The styles includes the use of pseudo-selector.

Deploy your own

Deploy the example using Vercel or preview live with StackBlitz

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-cssed with-cssed-app
yarn create next-app --example with-cssed with-cssed-app
pnpm create next-app --example with-cssed with-cssed-app

Deploy it to the cloud with Vercel (Documentation).