🎉 Dark Mode Gift for Instructables’ 20th Birthday 🎉
by Ty Po Exception in Design > Websites
36 Views, 0 Favorites, 0 Comments
🎉 Dark Mode Gift for Instructables’ 20th Birthday 🎉
 
       
      Instructables is turning 20 — and what’s a party without decorations? Instead of balloons, I decided to bring a gift: a Dark Mode Chrome Extension for the Instructables website. With golden accents and glowing buttons, it gives the site a midnight-party vibe while being easier on the eyes.
Supplies
 
      1- Google Chrome (or any Chromium-based browser)
2- A text editor (VS Code, Sublime, etc.)
3- The extension files:
- manifest.json
- background.js
- content.css
- content.js
- popup.html
- popup.css
- popup.js
Create the Extension Folder and Files
 
      Here’s the folder layout for the extension:
Each file has a role:
- manifest.json → describes the extension to Chrome.
- background.js → keeps track of dark mode status.
- content.js → applies/removes the CSS when enabled.
- content.css → holds the complete dark mode styles.
- popup.html / popup.css / popup.js → create the extension’s toggle interface.
Load the Extension Into Chrome
 
       
       
       
       
       
      1-Open Chrome and type in the address bar:
2-Toggle Developer Mode (top right).
3-Click Load unpacked and select your instructables-dark-mode folder.
follow images
You should now see the extension appear with its icon.
Make the Background Dark
 
      - In content.css, add your dark mode styles, for example:
- This turns the page background dark and text light.
Note: At this point, the website may not look very good. Many elements will clash with the new dark background. Don’t worry — the next steps are all about customizing the styles and fixing these “bugs” to make it look smooth and polished.
Add the On/Off Button in the Popup
 
       
       
       
      - Make three files:
- popup.html → contains the button
- popup.css → styles the button
- popup.js → makes the button turn dark mode on and off
This allows users to toggle dark mode directly from the extension popup.
Note: files at the end of this instructable
Customize the UI
 
       
       
       
       
      - Use CSS to make buttons and links glow with the classic Instructables yellow.
- Example:
You can go wild here: glowing borders, smooth transitions, hover effects, etc.
You Can Use and Improve My Files
I’m uploading all the files used in this project (background.js, content.css, content.js, manifest.json, popup.css, popup.html, popup.js) to GitHub so you can download and experiment with them.
Since Instructables doesn’t support these file types directly, you can either:
- Download them from GitHub, or
- If needed, copy the code into text files I’ve also included here.
Feel free to customize and improve them! This is meant as a starting point — you can fix bugs, tweak colors, add animations, or make the dark mode more polished.
Tip: Always keep a backup of the original files before making changes so you can revert if something breaks.
the html file :