This example shows how to utilize TailwindCSS (v3.1) together with CSS variables in order to implement a very dynamic theming solution for your websites and applications.
Here's the list of files touched in order to achieve the result shown in the video:
root
βββ components/
β βββ ThemeSwitcher.js
βββ hooks/
β βββ useTheme.js
βββ pages/
β βββ _app.js
β βββ index.js
βββ styles/
β βββ globals.css
βββ tailwind.config.js
Thanks for watching.