Next.js ships with styled-jsx allowing you to write scoped styled components with full CSS support. This is important for the modularity and code size of your bundles and also for the learning curve of the framework. If you know CSS you can write styled-jsx
right away.
Preview the example live on StackBlitz:
Deploy the example using Vercel:
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-styled-jsx with-styled-jsx-app
# or
yarn create next-app --example with-styled-jsx with-styled-jsx-app
Deploy it to the cloud with Vercel (Documentation).