https://github.com/jonoman55/jc-dev-blog
JC Dev Blog - check out React, Next.js, web dev blog articles, and share your comments.
https://github.com/jonoman55/jc-dev-blog
graphql graphql-request nextjs react-html-parser reactjs tailwindcss
Last synced: 3 months ago
JSON representation
JC Dev Blog - check out React, Next.js, web dev blog articles, and share your comments.
- Host: GitHub
- URL: https://github.com/jonoman55/jc-dev-blog
- Owner: jonoman55
- Created: 2021-11-06T22:02:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T23:45:19.000Z (about 4 years ago)
- Last Synced: 2025-03-15T04:42:26.179Z (about 1 year ago)
- Topics: graphql, graphql-request, nextjs, react-html-parser, reactjs, tailwindcss
- Language: JavaScript
- Homepage: https://jc-dev-blog.vercel.app
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js + Tailwind CSS Example
This example shows how to use [Tailwind CSS](https://tailwindcss.com/) [(v2.2)](https://blog.tailwindcss.com/tailwindcss-2-2) with Next.js. It follows the steps outlined in the official [Tailwind docs](https://tailwindcss.com/docs/guides/nextjs).
It uses the new [`Just-in-Time Mode`](https://tailwindcss.com/docs/just-in-time-mode) for Tailwind CSS.
## Preview
Preview the example live on [StackBlitz](http://stackblitz.com/):
[](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-tailwindcss)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss&project-name=with-tailwindcss&repository-name=with-tailwindcss)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).