Firefox WhiteSur theme
A MacOS
& Windows
Firefox theme to look more like Big Sur Safari. (For Firefox 70+)
Description
Aim is to make Firefox look more like MacOS Big Sur Safari.
This is a CSS theme adapted to work on MacOS from the Linux GTK theme.
Based on https://github.com/vinceliuice/WhiteSur-gtk-theme/tree/master/src/other/firefox
(This is a quick modification, and is not written from scratch.)
Installation (MacOS)
Download the latest release, or clone the repo above.
A script has been added to streamline the installation process.
Open terminal in the directory of the repo, and run bash install.sh
Follow the prompts
Installation flags
The script supports the following flags
-c
Left hand side tab close button-w
Left hand side window close button-f
To specify the default firefox folder (it will try to find the profile folder to place the theme within)-l
Default location of most Linux installations-u
Remove the animation on URL bar to be clickable throughout-n
Removes the identity colour from tabs-v
Re-enables the tabview button-e
Hides the extension button-s
Single tab view (Tabs hidden when only one tab)-r
Remove the theme
e.g. To install with script, with the tab close button left hand side: bash install.sh -c
Optimal experience:
Make sure to right click and Customize Toolbar. From here, drag the new tab button up to the toolbar out of the tab section.
Install with the following modifications for Safari-like experience
bash ./install.sh -c -n -s -e
This will give you a look like this:
Manual installation (MacOS & Windows)
Copy chrome
and configuration
folders into your Firefox Profile Directory
To find your Firefox Profile Directory you can:
- Go to
about:support
in Firefox. - Application Basics > Profile Directory > Open Directory.
- Copy folders mentioned above into the profile folder. (usually has
-release
at the end). - If you are using Firefox 69+:
- Go to
about:config
in Firefox. - Search for
toolkit.legacyUserProfileCustomizations.stylesheets
and set it totrue
.
- Go to
- Restart Firefox.
- Done!
Manual theme overrides:
To manually add a custom override, copy the *.css
from the custom
folder of whichever option you are after. Place it in the chrome/WhiteSur/custom
foder within the profile directory you opened above.\
That's it, the theme should load your overriden settings
Swap navbar close buttons on Windows:
windows-swapclose.css
contains the styles required to swap the close buttons, as well as to re-order the close button from MacOS styling to Windows.
Follow the directions above for the manual theme override to activate.
Can be installed with the -w
command on the install script
Swap tab close button side
tabs-swapclose.css
contains styles to place the close button for the tab on the left hand side for consistency with Safari. Can be installed with the -c
command on the install script
Manual colour override:
The theme obeys your system UI colour preferences. If you want to override it e.g. always have the dark theme, then you'll have to do the following.
The solution if you don't want to change your System UI colour is to do add the following to your about:config
Add: ui.systemUsesDarkTheme
with the number value with 1 for dark, and 0 for light.
Please note, you won't be able to change the System UI colour if you are using privacy.resistFingerprinting
. This apparently is for both web pages and the System UI.
Known bugs
If it is a fresh install of Firefox, the script for MacOS should enable the settings automatically, however users who have toggled settings may need to do the about:config
in step 4 above.
If for any reason the WhiteSur theme doesn't activate after using the script, follow steps 4.1 and 4.2 to toggle the stylesheets from within the Firefox settings.
The tab background colour can be overwritten by themes installed through firefox extentions. e.g. if you are using a dark theme in light mode, tab backgrounds that are inactive are affected. Fix: Change the installed theme to appropriate colour scheme to avoid issues.
If you're looking to change the directory to run the script, you can always type bash
then drag the file into terminal. You can also type cd
and then drag the folder and press enter to navigate to the directory.
Alternatively, if you're running Catalina, the default teminal is zsh, meaning you can change folders by typing the name to enter the folder e.g. WhiteSurFirefoxThemeMacOS
Q: "Why bother doing this, and not just use safari?"
A: I've used safari for quite a few years, and was rather disappointed with the change in extensions, particularly with content blocking. This prompted me to use uBlock origin on Firefox, and to customise it to have the best aesthetics, and simplest transition.
New bugs
If you've found a new bug, please report it as a new issue with the templates provided.
Thanks!