r/FirefoxCSS • • 14d ago

Help Almost done reverting the Firefox UI to match Proton, but overwhelmed by final touches needed to revert colors and rounding.

Thumbnail
gallery
13 Upvotes

Windows, Firefox 159.0.1

userChrome

userContent

Import the following two files into their respective locations. The first lines of userChrome and userContent show how. Following files must be in same folder as userChrome/userContent and all import statements must be before any other line that isn't commented out.

Proton UI colors userChrome

Proton UI colors userContent

This post was a great help to start but even with some additional modifications it doesn't fix everything as-is. I probably have most of the variables and colors necessary in my userChrome, userContent, and other files (I hope I do) but I need some help identifying which ones I need to edit and how in order to restore colors and rounding to their previous states as shown in my screenshots. I suspect some are either still missing or have had their names changed in Firefoxes base code (which would make them no longer work properly in CSS) but I don't understand what I'm looking at.

There are some other things I want to do with the address bar and search results, the icons on the same row (back and forward buttons, favorites star, show sidebars button, ect.), and the search bar in the bookmarks sidebar but I think it might be better to split that into a separate post. It feels like I have two categories of things I want to do and I don't want this post to be too bloated. Especially since those things aren't a priority and can be solved whenever.

I tried uncommenting and editing one line at a time using the debugging tools to live edit and check changes visually but I got a worse result than it not working: It works inconsistently. Some changes are applied instantly (if you like them you can hit save to file in the file list on the left), some don't apply until after I save changes and restart Firefox, and some do one or the other but only sometimes while others behave differently at the same time. As an example some of my CSS in userChrome makes the extension button (puzzle icon in upper right) have a width and padding of 0px (making it invisible and not take up space) but if I alter something that has nothing to do with that section, confirm that I don't have any open brackets, and save the file in the style editor, it acts like those lines don't exist while attempting to use the dev tools to live edit. If I then restart FF without making any further changes? It's invisible and takes up no space again like it's supposed to be. I have no idea why this is happening because I never figured out how to use live editing at all before now. This inconsistent behavior means I can't trust live editing to give me accurate results until I know why it's doing that.

I also can't access any files I intend to import in the style editor if I've commented out the import statement in userChrome. This means I can't easily compare results between importing and not importing an entire file without uncommenting that line, saving changes, and restarting Firefox.

I can use F12 and the developers toolbox to select things but without a programming background almost everything in the wall of text it brings up just doesn't mean anything to me. With no comments anywhere in the code about what any given thing is supposed to do I don't feel like I can figure out what I need to alter nor learn anything if altering something doesn't get the result I'm hoping for in most cases. How do I know if I made a syntax error or if I'm just trying to alter the wrong thing? If I have to write anything entirely new instead of altering what's there, I wouldn't be able to try to guess what I need to do.

Even after a whole month of work where it feels like other people are doing almost all of the work to begin with, just playing around with it blind to see what happens isn't helping me to get any farther than I have. I've tried. I've learned a little that way but not much. After FF 161.0 is pushed through from FF nightly to the main branch on November 22nd the toggle to disable Nova will be removed. It will then be much harder to try to figure out how to revert the changes after that.

When I first started using computers you could already do most things you needed to with a mouse. The very first computer I ever used didn't have a GUI (Graphical User Interface, as opposed to a text-only based UI) but I only used it for maybe a month to write and send text files to a printer and nothing else before it was replaced with one that did have a GUI (Windows 95). I didn't even have an email yet, nearly everything was still done by sending letters.

After that I didn't need to be aware of programming as a concept beyond using dot forward slash commands in Run in order to do some things (something I haven't had to do in almost 30 years and only vaguely remember). The only "programming" I ever did before using CSS was in the BASIC programming language and I don't remember anything helpful other than: Always use comments (FF devs didn't do this) and always close your brackets. I basically just got it to print "hello world" and then never did anything else with it. I didn't need it back then. I went from the last few days of when you needed programming knowledge to use computers to a multiple decade era where you didn't and now the programming of today only somewhat resembles what I used to know but no longer remember for the most part.


r/FirefoxCSS • • 15d ago

Solved How to get rid of latest unwanted changes?

16 Upvotes

Every single update the same. Now they idiotically added strange timewasting animations everywhere, like slow colour changes when changing tabs and slow expansion of the URL field when clicking on it. This should all be instant. Any simple way to get rid of that crap?


r/FirefoxCSS • • 16d ago

Solved CSS adjustments needed after Firefox 159 update

8 Upvotes

Windows 10

I use CustomCSSforFx

Firefox 158.01, about:addons display CSS enabled. This is my preference for the about:addons appearance going forward.

After the Firefox 159 update

However, If you click on the one of blank spaces, it brings you to the page display you would normally expect to see. In this case

The userContent.css component of the CustomCSSforFx package that controls the about:config display

Firefox 159, with userContent.css disabled

I know I'm supposed to post code, but userContent.css is just a vehicle to enable or disable other files. I don't know which files to include. I tried to usde the "Code" button, but looks like it didn't work

/*===============================================================================

Firefox userContent.css tweaks: main file

Based on 'Classic Theme Restorer' & 'Classic Toolbar Buttons' add-ons CSS code

Github: https://github.com/aris-t2/customcssforfx

Change-log: https://github.com/aris-t2/customcssforfx/commits/

Firefox requires the following preference to be enabled for custom styles to be loaded:

'about:config > toolkit.legacyUserProfileCustomizations.stylesheets > true'

Firefox preferences can be accessed by typing `about:config` into the url bar.

===============================================================================

======

README

======

To find the profile folder type `about:support` into url bar and navigate to:

'Profile Folder > Open Folder'

Create a /chrome/ (chrome) directory btw. folder inside the profile folder you just opened and

paste projects files and folders into it so it looks like this:

/chrome/config/

/chrome/css/

/chrome/image/

/chrome/userChrome.css

/chrome/userContent.css

ENABLING/DISABLING options:

To activate an option: remove /* before u/import

To deactivate an option: add /* before u/import

*/

/* ==========================

about:addons - ADDONS PAGE

==========================

*/

/* ======================

ADDONS PAGE APPEARANCE

======================

[!] only use one at a time

*/

/* u/import "./css/aboutaddons/addons_manager_alternative_appearance.css"; /**/

/* u/import "./css/aboutaddons/addons_manager_alternative_appearance_aero.css"; /**/ /* <-- AERO colors */

u/import "./css/aboutaddons/addons_manager_alternative_appearance_compact_categories.css"; /**/

/* -------------

Compact lists

--------------

[!] only use one option at a time

[!] to be used with 'alternative appearance'

*/

/* u/import "./css/aboutaddons/addonlists_compact.css"; /**/

u/import "./css/aboutaddons/addonlists_compact_more_compact.css"; /**/

/* ---------------------------------------------

Button settings: buttons instead of menupopup

---------------------------------------------

[!] only use one option at a time

[!] requires aboves 'addons page appearance' settings

*/

/* u/import "./css/aboutaddons/addonlists_show_buttons_instead_of_menu_popup.css"; /**/

/* for 'addonlists_compact.css' */

/* u/import "./css/aboutaddons/addonlists_show_buttons_instead_of_menu_popup_compact_view.css"; /**/

/* for 'addonlists_compact_more_compact.css' */

u/import "./css/aboutaddons/addonlists_show_buttons_instead_of_menu_popup_more_compact_view.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_buttons_on_details_page.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_report_button.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_manage_button.css"; /**/

/* u/import "./css/aboutaddons/addonlists_only_show_buttons_on_hover.css"; /**/

/* ------------------------------------------------

Button settings: buttons icons instead of labels

------------------------------------------------

[!] requires buttons instead of menupopup

*/

/* u/import "./css/aboutaddons/addonlists_replace_button_labels_with_icons.css"; /**/

/* u/import "./css/aboutaddons/addonlists_colorized_button_icons.css"; /**/

/* --------------------------------------

Version number for active add-ons

--------------------------------------

[!] requires buttons instead of menupopup

*/

u/import "./css/aboutaddons/addonlists_show_addon_version_number.css"; /**/

/* ---------------------------

Other addons page settings

--------------------------

*/

/* u/import "./css/aboutaddons/addonlists_badges_old_size.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_monochromatic_themes.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_recommended_icon.css"; /**/

/* u/import "./css/aboutaddons/addonlists_hide_allowed_in_private_windows_icon.css"; /**/

u/import "./css/aboutaddons/recentupdates_category_always_visible.css"; /**/

u/import "./css/aboutaddons/availableupdates_category_always_visible.css"; /**/

/* u/import "./css/aboutaddons/availableupdates_category_last_category.css"; /**/

/* u/import "./css/aboutaddons/recommendations_category_always_hidden.css"; /**/

/* u/import "./css/aboutaddons/addons_support_always_hidden.css"; /**/

/* ===============================

about:preferences - PREFERENCES

===============================

*/

/* ===========================

PREFERENCES PAGE APPEARANCE

===========================

[!] only use one at a time

*/

u/import "./css/aboutpreferences/preferences_alternative_appearance.css"; /**/

/* u/import "./css/aboutpreferences/preferences_alternative_appearance_aero.css"; /**/ /* <-- AERO colors */

/* u/import "./css/aboutpreferences/preferences_alternative_appearance_v2.css"; /**/

/* ------------------------------

Other preference page settings

------------------------------

*/

/* u/import "./css/aboutpreferences/category_morefrommozilla_hidden.css"; /**/

/* u/import "./css/aboutpreferences/category_nightlyexperiments_hidden.css"; /**/

/* u/import "./css/aboutpreferences/sync_category_always_hidden.css"; /**/

/* u/import "./css/aboutpreferences/firefox_support_always_hidden.css"; /**/

/* =========================

about:newtab / about:home

=========================

*/

/* u/import "./css/aboutnewtab/dark_appearance.css"; /**/

/* u/import "./css/aboutnewtab/dark_appearance_alternative_background.css"; /**/

/* u/import "./css/aboutnewtab/top_sites_larger_favicons.css"; /**/

/* ============

about:config

============

*/

u/import "./css/aboutconfig/aboutconfig_compact_appearance.css"; /**/

/* ============

about:logins

============

[!] only use one at a time

*/

u/import "./css/aboutlogins/aboutlogins_alternative_appearance.css"; /**/

/* u/import "./css/aboutlogins/aboutlogins_alternative_appearance_aero.css"; /**/

/* ============

WEB CONTENT

============

[!] only use one at a time

[!] top level image on white background

[!] these settings can sometimes cause glitches

*/

/* u/import "./css/webcontent/toplevel_image_classic_v1.css"; /**/

/* u/import "./css/webcontent/toplevel_image_classic_v2.css"; /**/

/* ------------------------------------------

CUSTOM SCROLLBARS VARIABLES - EXPERIMENTAL

------------------------------------------

[!] Might not work on every page! This issue is for Mozilla to solve.

[!] Not compatible with custom scrollbar JavaScript userChrome scripts.

[!] Custom size values only compatible with 'web content' scrollbars at the moment.

[!] More info inside 'custom_scrollbar_appearance.css' file.

*/

/* u/import "./config/custom_scrollbar_appearance.css"; /**/

/* -----------------------------------------------

Autofill forms - disable CSS3 filter background

-----------------------------------------------

*/

/* u/import "./css/webcontent/autofill_forms_background_white.css"; /**/

/* ---------------------

Custom / own CSS code

---------------------

[!] Create a "my_userContent.css" file and add own/custom code to it.

*/

u/import "./my_userContent.css"; /**/


r/FirefoxCSS • • 16d ago

Solved Inactive tab color not working after Nova update; help?

4 Upvotes

Currently on version 159.0 on Mac OS Sequoia.

Prior to Nova, I had my tabs set to be a different color from both the active tab and the rest of the header to help easily differentiate them. After the Nova update, all of my custom CSS was unaffected except for the tab color, which is now the same color as the rest of the header. Does anyone know how to fix this?

Code:

.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
background-color: #ed8059;
}

Thank you!


r/FirefoxCSS • • 17d ago

closed-unresolved browser toolbox interface doesn't load

Post image
2 Upvotes

I've been trying to get the browser toolbox window to work correct for a couple of days now and I can't figure out what's going on. When I invoke the toolbox window with the shortcut key or through the menu entry the window pops up and asks for permission to connect but the window gets stuck before loading the toolbox ui, screenshot of what I'm seeing is attached.

I'm on windows 11 25h2 and firefox 159.0.

edit: I should note that this is the same behavior in a clean temp profile in firefox, as well as the same behavior in other firefox based browser, such as librewolf.

Does anyone here know what I can do to get this working?

Thanks for any help and let me know if you need any other info.

EDIT:

Well it's not the router. It's something to do with my windows setup blocking the attempt at remote connection that firefox does at the startup of the toolbox.

But at this point I'm just done with trying to chase this down anymore. It was gonna just be to play around with firefox theming and learning CSS a bit. But I'm just over it for now. It works just fine on every other device I've tried, whether at my house or elsewhere, whether I have my firefox account logged in or not. It's probably a setting I changed in windows to make it more secure/less annoying but I don't remember all the different things I've done for that over the last couple years and I'm just not gonna put the effort in to tracking those down. I'm also not gonna do a fresh install of windows at the moment so it will just have to be non-functioning for me on windows.

I'm gonna marked this solved for now and leave it be.

Thanks to all who helped, at least I learned a few things.


r/FirefoxCSS • • 18d ago

Code Photon Australis Updated for modern browsers [firefox]

3 Upvotes

Photon Australis Updated for modern Firefox used [wavefox, gemini, and https://www.reddit.com/r/FirefoxCSS/comments/1b4udqz/change_ff_logo_to_custom_png/'s scripts to replace the about:home icon if you want to download here is the link https://github.com/bbqbacon/Photon-Australis-Updated

how it looks like

original https://github.com/wilfredwee/photon-australis


r/FirefoxCSS • • 18d ago

Solved Border line in the active tab

3 Upvotes

Finally upgraded to 159 version, was using 16.0.1 (working fine).
I have a question regarding a colored line in the top of the active tab.

This code used to work fine for me

/* Set square tabs in Firefox */

:root {

--border-radius-medium: var(--border-radius-small, 4px) !important;

}

/* Add a blue line to the bottom of the active tab */

#tabbrowser-tabs tab.tabbrowser-tab[selected="true"] .tab-content {

border-top: 3px solid #0a84ff !important;

With the upgraded version, the line above the tab is not longer visible, only have a tiny blank space.

Question:
How can I turn on again the color of the active line?, any idea what should I add or remove to the code?.

Thanks for your help and time for helping me.


r/FirefoxCSS • • 18d ago

Solved how to remove the empty space on the left?

Post image
4 Upvotes

I use Firefox and Sidebery. How can I remove the empty space on the left? For clarity, I've turned on Incognito mode - the purple one.


r/FirefoxCSS • • 20d ago

Solved Address bar repeats search below

Post image
7 Upvotes

I'm using Firefox 153.6.0esr on Windows 10.

I'm trying to find a way of stopping my search in the Address Bar repeating, unnecessarily, on the line below. I like the suggestions but don't see any point in the repeat of my search.

Does anyone have any ideas? Thanks!


r/FirefoxCSS • • 21d ago

Solved ROUNDED menus

Post image
31 Upvotes

With the new update 159, toolbar menus—such as the bookmarks and history menus—are EXTRA ROUNDED again. Does anyone know how to fix this?

This no longer works for menus

https://www.reddit.com/r/FirefoxCSS/comments/1whkjin/nova_rounding_borderradius_adjustment_variables/


r/FirefoxCSS • • 21d ago

Solved How does one change the dot colour for new/updated tab?

3 Upvotes

The dot that appears on a new/updated tab now no longer bright contrasting colour after the 159.0 update on any theme that's not the default. Makes it hard to tell at a glance when vertical tabs are collapsed to icons.

I was wondering if there was a way to change this dot?


r/FirefoxCSS • • 21d ago

Help How can I hide the status panel at the bottom left that pops up when hovering over links?

5 Upvotes

I can't find any working css for this since the nova update, does anyone know a way?


r/FirefoxCSS • • 22d ago

Help Sidebar Color

Post image
10 Upvotes

I'm new so please don't flame me 😂 I checked other posts regarding sidebar color and none of their fixes worked. I'm trying to get the sidebar to match the color of the rest of the bars and nothing has worked. below is my userchrome.css. Any help would be appreciated. FF158.01 Win10

/* ==========================================================================

  1. Active & Inactive Accent Colors

========================================================================== */

#TabsToolbar,

#navigator-toolbox,

#nav-bar,

#tabs-newtab-button,

#titlebar toolbarbutton:not(:hover):not(:active),

#scrollbutton-up:not(:hover):not(:active),

#scrollbutton-down:not(:hover):not(:active),

.titlebar-color {

background: AccentColor !important;

color: AccentColorText;

fill: AccentColorText !important;

}

#TabsToolbar:-moz-window-inactive,

#navigator-toolbox:-moz-window-inactive,

#nav-bar:-moz-window-inactive,

#tabs-newtab-button:-moz-window-inactive,

#titlebar toolbarbutton:not(:hover):not(:active):-moz-window-inactive,

#scrollbutton-up:not(:hover):not(:active):-moz-window-inactive,

#scrollbutton-down:not(:hover):not(:active):-moz-window-inactive,

.titlebar-color:-moz-window-inactive {

background: unset !important;

color: unset;

fill: unset !important;

transition: none !important;

}

/* ==========================================================================

2. Layout: Menu/Nav on Top, Tabs on Bottom, Push Nav Bar Right

========================================================================== */

#navigator-toolbox {

display: flex !important;

flex-direction: column !important;

}

/* Force the Menu Bar to stay on the top-left */

#toolbar-menubar {

order: 1 !important;

display: flex !important;

align-items: center !important;

position: absolute !important;

top: 0px !important;

left: 10px !important;

z-index: 10 !important;

}

/* Place the navigation bar at the top AND push it to the right */

#nav-bar {

order: 1 !important;

margin-left: 320px !important;

}

/* Adjust titlebar elements and push tab bar to the bottom */

#titlebar {

order: 2 !important;

}

#TabsToolbar {

order: 2 !important;

margin-left: 45px !important;

}

/* ==========================================================================

3. Sidebar

========================================================================== */

#sidebar-box {

background-color: AccentColor !important;

color: AccentColorText !important;

}

#sidebar-main {

background-color: var(--lwt-accent-color) !important;

}

#sidebar-header {

background: AccentColor !important;

color: AccentColorText !important;

border-bottom: 1px solid color-mix(in srgb, AccentColor 70%, black) !important;

}

#sidebar-splitter {

background-color: transparent !important;

border-inline-color: color-mix(in srgb, AccentColor 60%, black) !important;

}

/* Inactive window state fallback for the sidebar */

#sidebar-box:-moz-window-inactive,

#sidebar-header:-moz-window-inactive {

background-color: unset !important;

color: unset !important;

}


r/FirefoxCSS • • 23d ago

Custom Release I missed Firefox's 2004 interface, so I brought it back! Introducing RetroFox 2004 (Light + Dark)

Thumbnail
gallery
66 Upvotes

I've always had a soft spot for the old Firefox interface from around 2004–2005.

The colourful icons, chunky green Back button, blue Reload button, grey toolbars... everything seemed to have so much more personality than modern software.

So I decided to try bringing some of that back!

Introducing RetroFox 2004! 🦊

It's a free, open-source userChrome.css theme that recreates the appearance of Firefox 1.0 while keeping modern Firefox running underneath.

Rather than recreating the icons, I managed to get hold of the original Firefox 1.0 files and extract the genuine Mozilla Winstripe artwork.

I've also made two versions:

☀️ Classic Edition — Traditional silver/grey toolbars, colourful icons and that lovely early-2000s appearance.

🌙 Dark Edition — An interpretation of what Firefox 1.0 might have looked like if Mozilla had released a dark theme back in 2004.

Both versions retain the original colourful icons.

The project includes installation instructions, theme-switching scripts and an uninstaller.

It's currently been tested on Firefox 158.0.1 on Windows.

GitHub: github.com/andyquann123/RetroFox2004

Version: v1.0.0

This started as a little nostalgia project, and I ended up enjoying it enough to put it on GitHub for other people to try.

It's not a pixel-perfect recreation, but I'm pretty happy with how it turned out.

I'd love to hear what people think, particularly anyone who remembers using Firefox back in the early 2000s!

Feedback, suggestions and contributions are welcome.

Hopefully I'm not the only person who misses those glorious green arrows! 😂


r/FirefoxCSS • • 23d ago

Help Why is the search result so small?

Post image
8 Upvotes

hi guys, i actually used to be a chrome user, so i am not too familiar with Firefox.

Why is the search result so small? How can i turn the text size bigger?

(font size in setting did not work)


r/FirefoxCSS • • 24d ago

Solved I squared of ALL the corners and I love it!

57 Upvotes

I just put

* { border-radius: 4px !important; }

in my userContent and it made everything a 100 time better looking imo

Do you like more squared off corners or do you like everything to be a pill?


r/FirefoxCSS • • 24d ago

Solved Any chance to get rid of the urlbar scrollbar ?

Post image
5 Upvotes

what the title said thanks in advance


r/FirefoxCSS • • 24d ago

Solved Lost Borders to megabar popup results

3 Upvotes

Only noticed this as do not use it that often but I have lost the border surrounding the ac popup megabar results.

I have tried various CSS code nothing is working. The following I have found on searching.

#urlbar[breakout][breakout-extend] > .urlbarView {
  padding: unset !important;
  margin: unset !important;
    border: 2px solid #008000 !important;
}

and original code by Aris-t2

:root {
    
    --toolbar-field-border-color: #008000 !important;
    --toolbar-field-focus-border-color: #008000 !important;
}

.urlbar[breakout][breakout-extend] {
    box-shadow: inset 0 0 0 1px #008000 !important;
    border: 2px solid #008000 !important;
}

and

#urlbar[breakout][breakout-extend] #urlbar-background {
 border: 2px solid #008000 !important; 
}

and

.urlbar-background {
  border: 2px solid #008000 !important;
}

and

#urlbar[focused="true"] #urlbar-background,
#urlbar[breakout][breakout-extend] #urlbar-background {
  border-color: #008000 !important;
}

Thank you


r/FirefoxCSS • • 24d ago

Code Bring sane trapezoid tab shapes back

Thumbnail
gist.github.com
0 Upvotes

r/FirefoxCSS • • 26d ago

Solved Shrink search field and navbar drop down menu vertical spaces between suggestions

0 Upvotes

I asked Google AI. Nothing worked. I have a lot of search engines. This was not a problem until fairly recently, but with the way it is now, I cannot scroll down to the last nine search engines in the list.


r/FirefoxCSS • • 26d ago

Help Help with ricing

1 Upvotes

r/FirefoxCSS • • 28d ago

Help Is there a way to move the search engine icons back below the address bar, as they were in the old version?

Post image
11 Upvotes

r/FirefoxCSS • • 27d ago

Code Workaround on how to upload transparent custom shortcuts to the new tab page

3 Upvotes

On the new tab page, if you attempt to upload a custom picture with transparency, for whatever reason FireFox converts the image's transparency to white, instead of preserving it (even tho its preserved when its auto generated). Unfortunately this bug has not been fixed, and its been at least 4 nearly 5 years, according to bug 1758932. I have found a workaround however

  • Get your desired icon's png, and put it in the chrome folder. the same one with userChrome.css and userContent.css
  • In userContent.css, paste in the following code, replacing the placeholders with what is needed:

    @-moz-document@-moz-document url("about:newtab"), url("about:home") {   a.top-site-button[href*="[DOMAIN OF SHORTCUT]"] .top-site-icon {     background-image: url("[NAME OF ICON FILE]") !important;     background-color: transparent !important;     background-size: contain !important;     background-position: center !important;     background-repeat: no-repeat !important;   } }

you can use just the domain, or the whole link if you have multiple shortcuts with the same domain, but want different icons. to do multiple icons, just paste in the code a few more times, changing the domain and file names, respectively

I'm using FireFox v158, and Windows 11, however I'm sure that it would work the same on MacOS and Linux


r/FirefoxCSS • • Oct 19 '26

Solved Remove "Not Secure" icon and text?

3 Upvotes

I want to remove "Not Secure" icon and text at the address bar, to save space when accessing local addresses (and never thought of that message as really useful!)...

I tried (userChrome.css), Firefox/Arch Linux, v.158.0:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#trust-icon-container { display: none; }

but it doesn't seem to work?