Skip to content

Instantly share code, notes, and snippets.

@mewisme
Last active August 29, 2022 16:17
Show Gist options
  • Select an option

  • Save mewisme/33d009fad4a5b814a544b6ffed370230 to your computer and use it in GitHub Desktop.

Select an option

Save mewisme/33d009fad4a5b814a544b6ffed370230 to your computer and use it in GitHub Desktop.

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v3.0) with Next.js. It follows the steps outlined in the official Tailwind docs.

How to use

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

npx create-next-app --example with-tailwindcss my-app
# or
yarn create next-app --example with-tailwindcss my-app

Deploy it to the cloud with Vercel (Documentation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment