An open API service indexing awesome lists of open source software.

https://github.com/dalascript/light-and-dark-mode

ZTM JS Web Projects Course | Light & Dark Mode | Project 5/20
https://github.com/dalascript/light-and-dark-mode

css html javascript light-and-dark-mode zerotomastery

Last synced: 6 months ago
JSON representation

ZTM JS Web Projects Course | Light & Dark Mode | Project 5/20

Awesome Lists containing this project

README

          

# Light & Dark Mode | ZTM JS Web Projects Course

**Project 5/20**

🌓 A responsive single-page website that allows users to switch between light and dark themes dynamically, with visual transitions and themed illustrations.

---

## 📚 Table of Contents

- [🔎 Overview](#-overview)
- [📸 Screenshot](#-screenshot)
- [🔗 Links](#-links)
- [📌 Features](#-features)
- [🛠️ Built with](#️-built-with)
- [🧠 My process](#-my-process)
- [🗃️ Useful resources](#️-useful-resources)
- [🔙 Previous Project](#-previous-project)
- [🔜 Next Project](#-next-project)
- [👤 Author](#-author)
- [🌐 Connect with Me](#-connect-with-me)
- [💻 Coding Profiles](#-coding-profiles)

---

## 🔎 Overview

### 📸 Screenshot

![Live Preview Screenshot](./assets/screenshot.jpg)

### 🔗 Links

- [🔴 Live Demo](https://dalascript.github.io/light-and-dark-mode/)
- [🗂️ GitHub Repository](https://github.com/DalaScript/light-and-dark-mode)

### 📌 Features

- ✅ Toggle between light and dark themes
- ✅ Navigation and content section adapts to selected theme
- ✅ Images switch dynamically to match the theme
- ✅ Theme preference saved in localStorage
- ✅ Stylish animated toggle switch

### 🛠️ Built with

- HTML5
- CSS3
- Vanilla JavaScript
- LocalStorage

---

## 🧠 My Process

### 🗃️ Useful resources

- [Google Fonts](https://fonts.google.com/)
- [FontAwesome Icons](https://fontawesome.com/icons?d=gallery&q=close&m=free)
- [Hero Patterns](https://heropatterns.com/)
- [Undraw Illustrations](https://undraw.co/illustrations)
- [W3Schools - Switch](https://www.w3schools.com/howto/howto_css_switch.asp)
- [W3Schools - Change Event](https://www.w3schools.com/jsref/event_onchange.asp)
- [MDN - CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_cascading_variables/Using_CSS_custom_properties)
- [MDN - Document Element](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement)
- [Dark Mode Colors How-to Article](https://blog.prototypr.io/how-to-design-a-dark-theme-for-your-android-app-3daeb264637)

### 🔙 Previous Project

- Joke Teller | *Project 4/20* → [View Repository](https://github.com/DalaScript/joke-teller)

### 🔜 Next Project

- Animated Template | *Project 6/20* → [View Repository](https://github.com/DalaScript/animated-template)

---

## 👤 Author

### 🌐 Connect with Me

- [Instagram](https://www.instagram.com/DalaScript)
- [YouTube](https://www.youtube.com/@DalaScript)

### 💻 Coding Profiles

- [freeCodeCamp](https://www.freecodecamp.org/DalaScript)
- [FrontendMentor](https://www.frontendmentor.io/profile/DalaScript)
- [GitHub](https://github.com/DalaScript)

*🙌 Thanks for checking out my project! More coming soon. Stay tuned 🚀*