This is a simple Google Apps Script for Google Sheets that allows you to switch between Dark Mode and Light Mode for the spreadsheet. It creates a custom menu in your Google Sheets to toggle between the two modes.
In the Apps Script editor, you can either paste the provided code directly or create a new script file and paste the code into it.
Usage:
Once the script is added to your Google Sheets, you can access it through a custom menu called "Mode."
Click on Dark to switch to Dark Mode. This will change the background color, font color, and border settings to a dark theme.
Click on Light to switch to Light Mode. This will revert the colors and border settings to a light theme.
Customization
You can customize the appearance of Dark Mode and Light Mode by modifying the darkMode() and lightMode() functions in the script. You can change the background color, font color, font family, and border settings as per your preferences.