https://github.com/vcolesdev/ts-react-darkmode
Leisure. Vite TypeScript app toggling between light and dark modes for App. Includes Jest tests.
https://github.com/vcolesdev/ts-react-darkmode
event-bus events jest leisure react testing typescript vite
Last synced: about 1 year ago
JSON representation
Leisure. Vite TypeScript app toggling between light and dark modes for App. Includes Jest tests.
- Host: GitHub
- URL: https://github.com/vcolesdev/ts-react-darkmode
- Owner: vcolesdev
- License: mit
- Created: 2024-07-21T21:26:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T03:34:17.000Z (over 1 year ago)
- Last Synced: 2025-03-15T02:16:14.220Z (about 1 year ago)
- Topics: event-bus, events, jest, leisure, react, testing, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vite TypeScript DarkMode
## Description
Leisure app demonstrating switching between "light", "dark", and "system" modes.
Also contains a button toggling between "light" and "dark" modes.
```js
// System denotes user's darkmode preference
window.matchMedia("(prefers-color-scheme: dark)").matches
```
## Made With
- React + TypeScript
- Vite
- Jest
- Browser API (Storage)
## License
MIT