Skip to content

Leisure. Vite TypeScript app toggling between light and dark modes for App. Includes Jest tests.

License

Notifications You must be signed in to change notification settings

vcolesdev/ts-react-darkmode

Repository files navigation

Vite TypeScript DarkMode

Description

Leisure app demonstrating switching between "light", "dark", and "system" modes.

Also contains a button toggling between "light" and "dark" modes.

// System denotes user's darkmode preference
window.matchMedia("(prefers-color-scheme: dark)").matches

Made With

  • React + TypeScript
  • Vite
  • Jest
  • Browser API (Storage)

License

MIT

About

Leisure. Vite TypeScript app toggling between light and dark modes for App. Includes Jest tests.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published