Create a sign-in page with Next.js and Tailwind CSS | Episode 2

Photo by Zan on Unsplash

Introduction

In the previous story, we built a sign-in page with form validation with Next.js and Tailwind CSS. I am going to introduce how we can add support to the dark theme with Tailwind CSS and optimize Tailwind CSS for production in Next.js.

Please read the previous story below about how to build a sign-in page with form validation using Next.js and Tailwind CSS in case you missed it.

Why the dark theme?

The dark theme has been around for a while and adopted to most of the operating systems, browsers, and popular…







Rocky Li

Lead Web Engineer | Full-Stack Developer | Coder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store