DarkVision Toolkit is a Chrome extension that applies customizable dark mode styles to websites. It provides presets, per-site themes, eye comfort adjustments (color temperature, blue light filter, auto-dimming), a contrast checker, import/export, and keyboard shortcuts.
- Open Chrome and go to chrome://extensions
- Enable "Developer mode"
- Click "Load unpacked" and select the
DarkVision-Toolkitfolder from this repository
manifest.json- extension manifest (MV3)popup.html,popup.css,popup.js- UI for controls and live previewservice_worker.js- background service worker for commands and storage synccontent_script.js- injected script that applies CSS to pagesthemes/- sample theme JSON filesicons/- SVG icons used in the UIicons/raster/- optimized raster PNG icons (user-supplied). The extension usesicons/raster/logo1.pngas the toolbar/action icon andicons/raster/manifest-icon-*.pngfor manifest sizes.
- Open the extension popup and use presets or color pickers to change background, text, link, and accent colors.
- Use the toggle button or keyboard shortcut (Ctrl/Cmd+Shift+Y) to enable/disable dark mode on the current site.
- Save per-site themes with the Save button. Import/export JSON via the menu.
- Uses Manifest v3 and the
scriptingAPI to inject the content script and update styles. - Stores preferences in
chrome.storage.syncwhen possible and falls back tolocal.
Open the options page (right-click the extension -> Options) or open settings.html for choosing storage (sync vs local) and auto-dim settings.
This repository includes a tiny Jest test harness for utility functions. To run tests:
- Open a terminal in the
C:\Users\hp\DarkVision-Toolkitfolder - Run:
npm install
npm testSee themes/ for presets (amoled.json, gray.json, midnight.json, blue.json).
MIT