https://github.com/khianvictorycalderon/react-light-dark-theme
A react project that demonstrates the basic of light and dark theme
https://github.com/khianvictorycalderon/react-light-dark-theme
dark-theme light-dark-theme light-theme react theme-changer
Last synced: 6 months ago
JSON representation
A react project that demonstrates the basic of light and dark theme
- Host: GitHub
- URL: https://github.com/khianvictorycalderon/react-light-dark-theme
- Owner: khianvictorycalderon
- Created: 2024-12-02T02:38:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T13:19:04.000Z (9 months ago)
- Last Synced: 2025-02-13T21:46:02.388Z (8 months ago)
- Topics: dark-theme, light-dark-theme, light-theme, react, theme-changer
- Language: TypeScript
- Homepage: https://khianvictorycalderon.github.io/React-Light-Dark-Theme/
- Size: 118 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Light Dark Theme
This is a react project that demonstrates the basic of light and dark theme.
Use useState if you want to declare more variables.
I used ternary operator instead of if else so that the code looks so much cleaner but slightly more complicated than if else statement.