Skip to content
Arindam-Roy2004Public

About

Lightweight dark mode toggle implementation with smooth UI transitions using TypeScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

dark-mode-switcher

dark mode chrome extension i made to save my eyes on the internet

what is this

basically a minimal chrome extension that forces a beautiful dark mode on websites that don't have it natively. it doesn't just invert colors — it injects custom aesthetic gradients and glows on top of the dark mode to make everything look premium.

why i built this

i have faced issues where i constantly need to spend time to find how to switch modes on different websites. some sites hide the dark mode toggle deep in their settings, and some don't even have one at all. so i made this to just have a global, beautiful dark mode that works everywhere with one click.

features it has

  • 8 Premium Themes: aurora edge, midnight radial, blue spotlight, deep void, warm ember, neon pulse, cosmic dust, and ocean depth
  • Theme Overlays: uses shadow dom to inject glowing radial gradients without breaking site layouts
  • Classic Theme: includes the default dark reader theme if u just want the basic look
  • Per-Site Settings: remembers the specific theme, brightness, contrast, and sepia u set for each domain
  • Keyboard Shortcut: simply press Alt+Shift+D (or Option+Shift+D on Mac) to instantly toggle dark mode on/off anywhere

tech

  • react + webpack
  • typescript
  • manifest v3

how to run / install locally

  1. clone this repo
  2. run npm install
  3. run npm run build
  4. open chrome and go to chrome://extensions/
  5. turn on "developer mode" in the top right
  6. click "load unpacked" and select the dist folder generated by the build command

usage

just click the extension icon in your browser to open the popup.

use the main toggle to turn it on globally, or use the per-site toggle to disable it for specific websites. pick your favorite theme from the grid and adjust the sliders to your liking!

acknowledgments

css injection engine and foundational logic was adapted from darkreader - thanks for the incredible core library! svg icons are from cult-ui.

notes

made this cuz the default dark modes on most websites are boring or non-existent. wanted something that actually looks premium and dynamic.

feel free to use it for your own browsing or tweak the code!

About

Lightweight dark mode toggle implementation with smooth UI transitions using TypeScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages