Back to Next Js

Example app with linaria

examples/with-linaria/README.md

16.2.51.2 KB
Original Source

Example app with linaria

This example features how to use linaria as the styling solution instead of styled-jsx.

We are creating three div elements with custom styles being shared across the elements. The styles includes the use of pseudo-selector and CSS animations.

Deploy your own

How to use

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

bash
npx create-next-app --example with-linaria with-linaria-app
bash
yarn create next-app --example with-linaria with-linaria-app
bash
pnpm create next-app --example with-linaria with-linaria-app

Deploy it to the cloud with Vercel (Documentation).