lailo / next-with-tailwindcss

NextJS with TypeScript and TailwindCSS (with dark theme switch)

Home Page:https://next-with-tailwindcss.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJS with Tailwind CSS and TypeScript

This is a demo project to show how to setup NextJS with TypeScript, TailwindCSS and Jest.

It shows how you can use a utility-first CSS framework with snapshot testing to have nice tests with different component stats (loading, disabled, active, ...).

To reduce the CSS bundle size of TailwindCSS, I added PurgeCSS.

Development

  1. npm install
  2. npm run dev

Testing

npm test

Production

  1. npm run build
  2. npm run start

About

NextJS with TypeScript and TailwindCSS (with dark theme switch)

https://next-with-tailwindcss.now.sh

License:MIT License


Languages

Language:TypeScript 91.8%Language:JavaScript 6.7%Language:CSS 1.5%