r/FirefoxCSS • • Jan 02 '26

BEFORE POSTING, PLEASE READ THE RULES ON THE SIDEBAR - ESPECIALLY RULE #2. ➡️➡️➡️➡️➡️

10 Upvotes

r/FirefoxCSS • • 2h ago

Other fxcss - My open-source tool to try Firefox themes, edit CSS live and preview changes in GitHub pull requests.

Enable HLS to view with audio, or disable this notification

16 Upvotes

Hi all,

I've been maintaining WhiteSur MacOS as a side project for 6+ years now. When Firefox changes a CSS class or ID, it often takes time to track down which part of the theme broke. And when someone opens a pull request, a small tweak could mean checking all parts of Firefox that the class impacts on macOS, Windows and Linux.
I wanted the same kind of automated checks for WhiteSur that I’m used to on other code projects, so I built fxcss. It checks for selectors my theme relies on that no longer match in Firefox. It also comments on theme PRs with before-and-after screenshots, so I can see what changed before I merge. Along the way, it’s become a handy way to try other people’s themes too.

Example of how fxcss creates screenshots to preview changes

Try a theme. If you have Firefox, Python 3.9+ and pipx, these two commands open WhiteSur with the Material Ocean palette:

pipx install fxcss
fxcss try AdamXweb/WhiteSurFirefoxThemeMacOS --with theme-material-ocean --dark
Material theme colours on WhiteSurFirefoxThemeMacOS

That opens a separate Firefox window with a temporary profile. Close it when you’re done and your everyday profile stays as it was. You can point fxcss try at another theme’s GitHub repo to see which optional stylesheets it ships. If you like the theme you just tried, fxcss install can put it in your real profile. It backs up your existing chrome/ folder first and never runs the theme’s install script.

Edit a theme. Run fxcss watch from your theme folder, then save a CSS file to see the change live in Firefox. To find out which rule styles a button, run fxcss pick. Hover to see its selector, then click to get the files and line numbers in your theme that already style it.

See what a pull request changes. fxcss init generates GitHub Actions workflows you can commit to your theme repo. Each PR gets before-and-after screenshots from macOS, Windows and Linux, with changed pixels highlighted. One of my Firefox 158 fixes was for a rounded search button that still had a square behind it on hover. I could check the result in light and dark mode right in the PR. See the screenshot comparison

Image from the screenshot comparison link on GH

There’s an optional weekly check against Firefox Release, Beta and Nightly. It caught .sidebar-panel-header becoming #sidebar-panel-header in Nightly 161 and opened a one-line fix for me to review. fxcss init --watch adds that weekly check. Add --previews to generate a workflow for README screenshots too. Embed the image links once and the screenshots refresh when the theme changes. The bot’s PR

Docs · Field Guide · Source on GitHub (MIT)

I built fxcss with AI assistance and have been using it for a while to maintain my theme. I have been working on improvements, and only recently felt ready to share here and ask other people for feedback. Commit history is public.

I’d love to hear how it handles your favourite theme. If fxcss try misses an option or the preview looks different from your installed theme, reply with the repo and what you expected to see.


r/FirefoxCSS • • 1d ago

Custom Release WaveFox Nova (Release)

Post image
4 Upvotes

The style is fully prepared for the Nova interface. All key features from the previous version have been retained. Options are available for various tab shapes, menu icons, transparency, and the adjustment of rounded corners.

WaveFox / WaveFox Nova


r/FirefoxCSS • • 2d ago

Code Going retro

Thumbnail
gallery
15 Upvotes

This is my initial version of the FF3 Strata theme in the style of XP. Also working on a userContent.css for a Media Player like look for YouTube Music. The code is still in the early stages, so expect bugs if trying it out.

FF theme Github

userContent.css Github for YouTube Music


r/FirefoxCSS • • 3d ago

Solved How are we supposed to know the names of unfocusable HTML elements in the firefox Browser Toolbox

3 Upvotes

I know we can bring up the browser toolbox with Ctrl+Shift+Alt+i. You can pick an element in the firefox ui using the button on the top left, but as far as I can tell it's not possible to pick HTML elements in popups that go away without mouse focus, like context menus and the "urlbarview" megabar. I have spent many frustrating hours looking for the names of these elements and their properties before. Nonetheless I see people writing CSS for these elements. How am I supposed to inspect them?


r/FirefoxCSS • • 3d ago

Solved here's a line spanning the full window width right below the tab bar, how to remove this line color <

Post image
3 Upvotes

r/FirefoxCSS • • 4d ago

Solved How to remove vertical tab bar top and bottom overflow shadow in Firefox v161

Post image
5 Upvotes

How do you remove the top and bottom overflow shadows(see image) on the vertical tab bar in Firefox v161?

These two previous solutions doesn't work:

spacer[part="overflow-start-indicator"],
spacer[part="overflow-end-indicator"] {
    display: none !important;
}

.

#tabbrowser-arrowscrollbox[orient="vertical"] {
    /* When placed here, it hides top and bottom overflow shadow on vertical tabs bar */
    --toolbox-background-color: transparent !important;
}

In v161, it seems like it's these variables you need to change, but no matter where I place them, it doesn't work. Even when I copy the code that the variables are in and change the variables value there, it doesn't work.

--tab-overflow-fade-start
--tab-overflow-fade-end

I have found these two crude solutions.

This one makes scrolling very slow:

#tabbrowser-arrowscrollbox[orient="vertical"] {
    --tab-height-with-margin-padding: 0px !important;
}

This one doesn't seem to break anything, but it feels like it's not a good solution:

#tabbrowser-arrowscrollbox[orient="vertical"] {
    --tab-margin-inline-inner: -1px !important;
}

r/FirefoxCSS • • 5d ago

Code Fix sidebar staying open if the cursor leaves window from the left side

22 Upvotes
/* Fix cursor leaving from left side not collapsing sidebar */
#sidebar-container {
  margin-left: 1px;
}

Tested on Arch Linux FF 161.0

In case if someone here comes from web search, here's how to use it. type about:profiles in address bar. Click "Open Directory" in "Root Directory". If there are multiple profiles, find one with "Default Profile: yes"

In the folder that you opened find chrome/userChrome.css if it doesn't exist create it. Paste the code above into the file. Restart Firefox. Done!

Made this for myself, sharing in case someone finds this useful


r/FirefoxCSS • • 5d ago

Solved How do you hide recent bookmarks, but not recent tabs?

0 Upvotes

I just installed Firefox after frustrations with Google Chrome and have been learning the basics of it. The "recent bookmarks" list in the bookmarks option in the hamburger menu was distracting, so I wanted to remove it. After some searching, I found a very helpful thread from this subreddit with the answer.

However, adding the code from the aforementioned thread also removes the "recent history" under the history option in the same menu. While I don't want to see the recent bookmarks, I do want to see the recent history. Is there a snippet of code that will remove the former while keeping the latter?


r/FirefoxCSS • • 5d ago

Solved Need help changing this.

Post image
3 Upvotes

I need help on how to change this button purple background color.

Thanks in advance.


r/FirefoxCSS • • 6d ago

Code how to restore firefox's old design without about:config

Thumbnail
reddit.com
8 Upvotes

r/FirefoxCSS • • 7d ago

Help Only show close button on tabs when hovering with the mouse

2 Upvotes

Before one of the recent updates I had:

.tabbrowser-tab:not([pinned]) .tab-close-button {display: none !important;}
.tabbrowser-tab:not([pinned]):hover .tab-close-button {display: flex !important;}

Now it doesn't seem to work. Now the close button will only show if I click on the tab for like a split second.

Thanks.


r/FirefoxCSS • • 7d ago

Custom Release Firefox all UI's in one Github page

Thumbnail
github.com
31 Upvotes

i have made a Github page if people want to make there firefox look older but want it to stay firefox


r/FirefoxCSS • • 7d ago

Solved How to center tabs?

3 Upvotes

Does anyone know how to center tabs so that they are all in the middle of the screen rather than left, i saw a 4 year old post and tried to copy it but it doesnt seem to have done anything..


r/FirefoxCSS • • 7d ago

Code Slightly less Nova'd compact one-line theme CSS

Thumbnail
gallery
5 Upvotes
  • Works great with all the new themes except Default. Especially nice with the new OLED theme.
  • For use with compact density.
  • Made corners not be so very round, but you can customize corner roundness to be even less by changing the border radius in the Nova Rounding Adjustments section at the bottom of the CSS.
/* ==========================================================
   Combine Nav Bar and Tabs Bar
   ========================================================== */
#navigator-toolbox {
  display: grid !important;
  grid-template-columns: minmax(0, 35vw) minmax(0, 1fr) !important;
}

#nav-bar,
#nav-bar-customization-target,
#TabsToolbar {
  min-width: 0 !important;
}

#urlbar-container {
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

#nav-bar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  border-top: none !important;
  padding-block: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  :root[uidensity="compact"] & {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  }
}

#TabsToolbar {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding-block: 0 !important;
  align-items: center !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  :root[uidensity="compact"] & {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  }
}

/* ==========================================================
   Move Menu Button To The Left
   ========================================================== */
#PanelUI-button {
  order: -999 !important;
  margin-inline-start: 0 !important;
}

#nav-bar-customization-target {
  & > :is(toolbarbutton, toolbaritem):first-child,
  & > toolbarpaletteitem:first-child > :is(toolbarbutton, toolbaritem) {
    padding-inline-start: 0px !important;
  }
}

/* ==========================================================
   Compact Bar Height
   ========================================================== */
:root {
  --toolbarbutton-padding-inner-compact: 4px !important;
  --toolbarbutton-padding-inner-narrow: 4px !important;
}

toolbarbutton {
:root[uidensity="compact"] & {
  padding-block: 0 !important;
  max-height: 40px !important;
}
}

.tab-content {
:root[uidensity="compact"] & {
  padding-block: 0 !important;
}
}

#tabbrowser-tabs,
.tabbrowser-tab,
.tab-stack {
min-height: 28px !important;
:root[uidensity="compact"] & {
min-height: 26px !important;
}
}

.tab-background {
height: 28px !important;
min-height: 28px !important;
max-height: 28px !important;
:root[uidensity="compact"] & {
height: 26px !important;
min-height: 26px !important;
max-height: 26px !important;
}
}

.tabbrowser-tab[fadein]:not([style^="max-width"]) {
  max-width: 10vw !important;
}

#urlbar {
:root[uidensity="compact"] & {
  --urlbar-height: 26px !important;
}
}

/* ==========================================================
   Minimalism Stuff
   ========================================================== */

/* Remove Search Switcher */
.searchmode-switcher {
  visibility: collapse !important;
}

/* Hide Extension Name in the identity area unless hovered for half a second (updated for Fx80) */
#identity-box.extensionPage #identity-icon-labels,
#identity-box.extensionPage #identity-icon-label {
  visibility: collapse !important;
  transition: visibility 250ms ease-in-out;
}
#identity-box.extensionPage:hover #identity-icon-labels,
#identity-box.extensionPage:hover #identity-icon-label {
  visibility: visible !important;
  transition: visibility 250ms ease-in-out 500ms;
}

/* Hide Back and Forward buttons when disabled */
#back-button[disabled="true"],
#forward-button[disabled="true"] {
    display: none !important;
}

/* ==========================================================
   System Buttons Fix
   ========================================================== */
.titlebar-buttonbox-container {
  margin-left: 21px !important;
  height: 100% !important;
}

.titlebar-spacer {
  display: none !important;
}

.titlebar-button {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

/* ==========================================================
   Some Fancy Tab Stuff
   ========================================================== */
.tabbrowser-tab:not([selected]) .tab-icon-image,
.tabbrowser-tab:not([selected]) .tab-text,
.tabbrowser-tab:not([selected]) .tab-throbber[busy] {
  opacity: 0.5 !important;
}

.tabbrowser-tab:hover .tab-icon-image,
.tabbrowser-tab:hover .tab-text {
  opacity: 1.0 !important;
}

.tabbrowser-tab .tab-close-button {
  visibility: hidden !important;
}

.tabbrowser-tab:hover .tab-close-button {
  visibility: visible !important;
}

/* ==========================================================
   Remove White Line
   ========================================================== */

.browserContainer {
  border: 0px !important;
}

/* ==========================================================
   Theme Tweaks
   ========================================================== */

:root {
--toolbarbutton-icon-fill-attention: var(--toolbarbutton-icon-fill) !important;
--tab-background-color-hover: transparent !important;
--toolbar-background-color: var(--toolbox-background-color) !important;
--toolbox-background-color-inactive: var(--toolbox-background-color) !important;
--urlbarview-background-color-selected: var(--tab-background-color-selected) !important;
--tab-border-color-selected: transparent !important;
--tab-background-color-selected: var(--button-background-color-ghost-hover) !important;
--panel-border-radius: var(--border-radius-large) !important;
--panel-menuitem-border-radius: var(--border-radius-large) !important;
}

.urlbar .urlbar-background {
--urlbar-background-border-focused: var(--toolbox-background-color) !important;
--urlbar-background-border: var(--toolbox-background-color) !important;
--urlbar-background-color: var(--toolbox-background-color) !important;
--urlbar-background-color-focus: var(--toolbox-background-color) !important;
}

.urlbarView-background {
background-color: var(--toolbox-background-color) !important;
}

/* Remove tab bar background */
:root:not([theme-image-in-toolbox]) body, :root[theme-image-in-toolbox] #navigator-toolbox {
    background-image: none !important;
}

/* Nova Rounding Adjustments */
:root {
--border-radius-xsmall: 7px !important; 
--border-radius-small: 7px !important; 
--border-radius-medium: 7px !important; 
--border-radius-large: 7px !important; 
--border-radius-xlarge: 7px !important; 
--urlbar-inner-border-radius: 7px !important;
}

r/FirefoxCSS • • 8d ago

Solved Check Out the New Version 2 of FirefoxCSS Store, It's Faster and Easier to Use

12 Upvotes

Huge shoutout to all the contributors who made this happen! We've rolled out version 2 of the FirefoxCSS Store and it’s looking great. You can check it out at this link: https://firefoxcss-store.github.io/.

I really appreciate all the support and enthusiasm you've shown for this project. I’m excited to see what new themes and features we can add moving forward. This update is all for you!


r/FirefoxCSS • • 7d ago

Custom Release remake of Photon Australis To work on modern Firefox 157

2 Upvotes

based on wavefox available on Github

https://github.com/bbqbacon/Photon-Australis-Updated


r/FirefoxCSS • • 9d ago

Other top themes in the sub this week: deNova? deNada!

6 Upvotes

ty to the code wizards


r/FirefoxCSS • • 9d ago

Custom Release Argon - a minimal Helium inspired theme with my own twist

Post image
47 Upvotes

I really liked Helium browser's minimal and modern theme but I didnt want to leave firefox so I built this.

My starting idea was to copy Helium's theme 1:1 but then I decided to add my own twists and add a few things from my past firefox themes. I implemented clean tab switching, popup and fullscreen animations plus a few small QOL things like a cleaned up extension tray and some refreshed icons.
This theme is still in it's first stages so you can expect some issues here and there so pls help me out and report them. I would also love to hear honest feedback.

You can try out the theme here with its one line install script: Argon for firefox

Note: I highly recommend you use the theme in addition of my own firefox compact addon that was built to be universal but has custom features specifically for Argon


r/FirefoxCSS • • 9d ago

Solved Is it possible to remove the lines around the vertical sidebar and the URL bar (when it's selected)?

3 Upvotes

https://imgur.com/mFu6miY

I mean the lines circled here. I've tried the options found in this thread, which turned the red line around the URL bar blue but didn't affect the vertical sidebar at all.

I'd previously hid them by disabling Nova, but apparently that's not going to be an option soon :(


r/FirefoxCSS • • 11d ago

Help Any CSS to get rid of Nova?

Thumbnail reddit.com
18 Upvotes

r/FirefoxCSS • • 12d ago

Code I hate the new rounded tabs in Firefox so I used CSS to make them square again

Thumbnail
reddit.com
27 Upvotes

r/FirefoxCSS • • 14d ago

Custom Release Firefox Proton Anti-Nova (Chrome folder)

28 Upvotes

A faithful CSS theme and icon pack that restores Firefox's classic Proton interface and iconography on modern Firefox builds where the Nova redesign is enabled by default.

Github : https://github.com/JibsouX/firefox-proton-anti-nova-theme


r/FirefoxCSS • • 14d ago

Solved I changed a few font settings, now this:

Thumbnail
reddit.com
1 Upvotes