This is a create-next-app (CNA) example/template to use whenever you want to quickly start a CNA from scratch with Tailwind CSS and Typescript
Execute create-next-app
with npm or yarn to bootstrap the example:
# use yarn (preferred)
yarn create next-app --example https://github.com/beatzball/create-next-tailwind-example-app
# or use degit
npx degit https://github.com/beatzball/create-next-tailwind-example-app
# or npx
npx create-next-app --example https://github.com/beatzball/create-next-tailwind-example-app
# yarn (preferred)
yarn
yarn dev
# or if you must use npm
npm install
npm run dev
caveat
: you must declare style names explicitlybg-${color}-900
won't work${color === 'blue' ? 'bg-blue-900' : 'bg-rose-900'}