A React tutorial with code that you can actually use in a job part 2 - theming / dark mode

Опубликовано: 19 Ноябрь 2026
на канале: m6io
498
12

The starter code can be found here: https://github.com/m6io/my-ui-compone...

The final product: https://m6io.vercel.app/

00:00 What we're building
01:02 Starter code - https://github.com/m6io/my-ui-compone...
01:57 Update Tailwind config and brief explainer on how the dark mode setting works

06:24 Chapter 1 - Create useTheme hook
27:53 Chapter 2 - Navbar dark mode styling, ThemeToggle component
35:13 Chapter 3 - Add dark mode classes to Layout, Container, and Section components
37:05 Chapter 4 - Update Button component to accept dark mode color props, and update all Button examples with the new props
41:44 Chapter 5 - Add dark mode classes to Card and Input components

Tailwind Docs: https://tailwindcss.com/
Vite Docs: https://vitejs.dev/