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

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.

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