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.
- a custom pages/_app 1
- a custom pages/_document 2 to enable server-side rendering (SSR) of styles
- (optional) a dedicated twind.config