- Install stuff
yarn install
- Run local server
yarn develop
You can go to specific step by git checkout <step-tag>
, e.g. git checkout step-1
.
The HEAD
commit will include everything from every step.
-
Overview of tailwind config files
-
Using darkmode following the operating system preference. Go to
http://localhost:8000/darkmode
. -
Darkmode improved. Allow you to manually toggle darkmode. Go to
http://localhost:8000/darkmode
, and click on the toggle button. -
Darkmode as a theme. Along with some sample themes that works the same way. We are removing the hardcoded values, e.g.
text-slate-800
,bg-white
, etc. out of our templates by moving values to variables inglobal.css
and add those variables totailwind.config.js
, you can define your own extensions as you desired.Go to
http://localhost:8000/theme-switcher
, and play around.