Skip to content

Files

Latest commit

4df9465 · Jan 24, 2023

History

History
This branch is 145 commits behind tw-in-js/twind:main.

with-next

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 18, 2022
Feb 5, 2022
Feb 5, 2022
Dec 20, 2022
Dec 20, 2022
Feb 5, 2022
Dec 20, 2022
Jan 24, 2023
Feb 5, 2022
Dec 18, 2022
Nov 18, 2022

Example: Next.js

Try it live at Stackblitz or Codesandbox.

This example is using next@12 and react@17 because next@13 is not working in Stackblitz or Codesandbox. You can upgrade this example to next@13 and react@18 when you are using it locally.

How does this work?

  1. a custom pages/_app 1
  2. a custom pages/_document 2 to enable server-side rendering (SSR) of styles
  3. (optional) a dedicated twind.config

What is included?

Footnotes

  1. Next.js › Custom App

  2. Next.js › Custom Document