This is a simple Chrome extension that adds dark mode to the Stripe dashboard by inverting the colors.
- Open Chrome and go to
chrome://extensions. - Enable "Developer mode" (toggle in the top right corner).
- Click "Load unpacked".
- Select the directory containing this extension (the entire
StripeDarkfolder).
The extension injects a content script (content.js) that sets a CSS filter on the HTML element of the Stripe dashboard:
document.documentElement.style.filter = 'invert(1)';This inverts the colors of the entire page.
You can replace the default icons in the images folder with your own:
favicon-16x16.png(16x16)favicon-32x32.png(32x32)favicon-96x96.png(96x96)
After replacing the icons, reload the extension to see the changes.
This is a very simple dark mode implementation. For a more refined experience, consider using a CSS-based solution that doesn't invert images.