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.