Skip to content

About

🦊 Firefox user CSS theme looks similar to Chrome

Topics

Resources

Stars

31 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

🦊 MaterialFox UPDATED (Fork maintained by @joshuataylor)

A Firefox user CSS theme that looks similar to Chrome.

Note

This is a fork of the fantastic MaterialFox UPDATED by edelvarden. Full credit for the original theme goes to them -- this fork exists to continue maintenance and updates.

Note

Firefox's "Nova" redesign is on by default in every channel from Firefox 157 (Release, Beta and Nightly) and changes how the window, tabs, address bar, find bar and new-tab search box look. This theme adapts to it -- see Firefox 155 "Nova" redesign below.

preview

Supported Firefox versions

Only the current Firefox Release, Beta and Nightly are supported. Nightly is best effort: the Nova redesign and Firefox's browser-chrome markup change there every build, so a Nightly update can break things before this theme catches up.

Tip

See https://whattrainisitnow.com for the latest Firefox releases.

As of 2026-11-25 (this will get quickly out of date, so check above...)

Channel Version Support
Release Firefox 161 Supported
Beta Firefox 162 Supported
Nightly Firefox 163 Best effort

Firefox moved to a two-week release cycle with Firefox 155, so these numbers move quickly; the theme tracks whatever the latest three are. If something breaks after a Firefox update, please open an issue with the exact Firefox version and channel.

Firefox 120-154 is not supported. For Firefox 119 or below, the pinned v1.0.7 release still works -- see the install-script note below.

🚀 Getting Started

To start using MaterialFox UPDATED, follow these steps:

  1. Open Firefox and type about:config in the address bar, then press Enter.

  2. If a warning page appears, click Accept the Risk and Continue to access the about:config page.

  3. Search for the following preferences using the search bar at the top of the about:config page, and ensure the following preferences are true:

    • toolkit.legacyUserProfileCustomizations.stylesheets
    • svg.context-properties.content.enabled
  4. Type about:support in the address bar and press Enter.

  5. Scroll down to the Profile Folder section and click Open Folder.

  6. Download the chrome.zip file from the latest release. Use the chrome.zip release asset, not GitHub's "Source code" ZIP.

  7. Extract the contents of chrome.zip into your Firefox profile directory, so that you end up with [profile]/chrome/userChrome.css and [profile]/chrome/userContent.css.

  8. Restart Firefox to apply the changes.

Tip

To update, back up chrome/custom.css (and anything else you've changed), replace the rest of the chrome folder with the new release, then restart Firefox. Keeping your own rules in custom.css makes this painless.

Note

Keep chrome as a real folder inside the profile, not a symbolic link to a folder somewhere else. With a link the browser window is still themed, but Firefox's pages that run in their own process (the New Tab page, about:logins, about:protections) are not, because those processes can only read the profile's own chrome folder. If you keep the theme elsewhere, copy it in.

Installation Script (for Advanced Users)

As an alternative to manual installation, you can use a PowerShell script.

Note

The script asks which Firefox profile to use, then installs chrome.zip and the example user.js from the same release of this fork. It asks before overwriting an existing chrome folder or user.js. Older pinned tags that were only published upstream (such as tags/v1.0.7) are fetched from edelvarden/material-fox-updated.

For Windows, run the following PowerShell command:

$env:MATERIAL_FOX_VERSION = "latest"; PowerShell -ExecutionPolicy Unrestricted -c "iwr https://raw.githubusercontent.com/joshuataylor/material-fox-updated-fork/main/install.ps1 -useb | iex"

For Firefox version 119 or below (Firefox ESR, Floorp or Waterfox)

$env:MATERIAL_FOX_VERSION = "tags/v1.0.7"; PowerShell -ExecutionPolicy Unrestricted -c "iwr https://raw.githubusercontent.com/joshuataylor/material-fox-updated-fork/main/install.ps1 -useb | iex"

Firefox 155 "Nova" redesign

Firefox 155 introduced a large visual redesign codenamed Project Nova, behind browser.nova.enabled in about:config.

It was Nightly-only at first, and has been on by default in every channel since Firefox 157 (Bug 2056186), so Release users get it too. You can still turn it off with browser.nova.enabled set to false up to Firefox 161; the theme supports both. Firefox 162, now in Beta, locks Nova on (Bug 2082898), and userChrome.ui-pre-nova-look and userChrome.ui-material-findbar bring back parts of the older look there.

Firefox 156 onwards continue Nova rather than redesign it again. Firefox 157 also rebuilt the address bar (the results list is now its own popover below the input).

Nova restyles tabs, menus and panels, adds a warmer "fire" colour palette and an active-tab glow, and draws borders and rounded corners around the toolbar, sidebar and web content.

material-fox-updated Nova workarounds

To account for these changes, material-fox-updated tries to work around these new quirks.

  • Window / content border - Firefox 155 wraps the toolbar, sidebar and content in a floating "island" -- a 1px border with rounded corners, plus a gap inset from the window edges. Firefox 156+ drops the gap and only borders the content area and sidebar on the edges that face other chrome. Enable the userChrome.ui-no-nova-border preference (see Available preferences) to remove those borders and rounded corners so the content and sidebar sit flush. The separator under the toolbars and the dividers between split-view panels stay. Off by default, and it only acts while Nova is enabled.
  • Find bar - Firefox 155+ moved the find bar into a CSS grid at the bottom of the content area on every channel (not just Nova). The theme handles this automatically -- no action needed.

Prefer the old top-right floating find bar? Enable the userChrome.ui-findbar-top-right preference (see Available preferences). (Thanks to zerix on Reddit and SKDemon820's tweaks)!

  • New-tab search box - Firefox Nightly (158+) replaces the new-tab search box with the address bar component (<moz-urlbar>); Release and Beta still use the old box. The theme styles both.

More Nova-related notes

A couple of things worth knowing:

  • Do not confuse browser.nova.enabled (the whole-browser redesign) with browser.newtabpage.activity-stream.nova.enabled, which only affects the new-tab page.
  • Nova is under active development in Nightly and changes frequently. If something looks off after a Nightly update, please open an issue.

For more information, see:

💖 Support & Suggestions

If you enjoy this project and want to help @edelvarden maintain it further, buying them a coffee would be greatly appreciated! ☕️

Buy Me a Coffee at ko-fi.com

Important

This fork, material-fox-updated-fork, is maintained by @joshuataylor, and I'm fortunate to be able to maintain this project in my spare time. If you do enjoy this project, please buy @edelvarden a coffee, and not me 🙌.

Your suggestions and bug reports are also welcome on GitHub Issues. For a bug, include your Firefox version and channel, the theme version, your operating system, the userChrome.* preferences you have enabled, and a screenshot.

🎨 Manual Customization

You can apply visual design changes by adding some about:config customization options (preferences).

To set a preference, type about:config in the address bar and press Enter.

To enable a preference:

  1. Create a custom boolean preference by typing the preference name and clicking the plus button. For example, userChrome.ui-chrome-refresh enables the new Chrome design.

To disable a preference:

  1. Search for it by name and delete the preference or toggle its state to false.

Warning

Use only one preference with the prefix theme.

Leave all the userChrome.theme-* preferences off to use the theme's bundled palette. userChrome.theme-chrome-refresh only changes the colours and userChrome.ui-chrome-refresh only changes the layout (shapes and spacing), so you can enable both.

Available preferences

Preference Description
userChrome.ui-chrome-refresh Enable the new Chrome design named "Chrome Refresh".preview-chrome-refresh
userChrome.theme-chrome-refresh Enable a new color scheme like in "Chrome Refresh".
userChrome.theme-material Enable Material colour schemes. The blue palette is bundled, so this works on its own; red, yellow, green or your own palette need one more step. Read more.
userChrome.theme-default Enable the default color scheme. This can be useful if you want to use it with Adaptive Tab Bar Color or native Firefox themes. Firefox's own pages (new tab, settings) keep Firefox's colours too.
userChrome.ui-compact-url-bar Make the URL bar more compact by reducing its height.
userChrome.ui-context-menu-icons Display icons beside right-click menu commands, such as Copy, Paste, Pin Tab and Mute Tab. Independent of userChrome.ui-no-menu-icons.
userChrome.ui-menu-icon-column Line up every right-click menu label with the icons of Back, Forward and Reload, by leaving an empty icon space on the commands without one. Only needed with userChrome.ui-context-menu-icons off, which lines them up already. false by default.
userChrome.ui-no-menu-icons Hide the theme's icons in the main menu and its panels (New Tab, Downloads, Settings and so on). Firefox's own icons can still appear, and context menu icons from userChrome.ui-context-menu-icons are not affected.
userChrome.ui-force-animation Keep the theme's animations, including the tab loading spinner, even when your OS asks for reduced motion or userChrome.ui-no-animation is on. (Not required if you do not disable animation)
userChrome.ui-no-animation Disable the theme's animations, including the tab loading spinner (the OS "reduce motion" setting does this too). Also stops Firefox's own fade between the views of a menu panel, such as the app menu and its History view (Firefox 163 and later).
userChrome.ui-system-font (Windows only) Use the default system font instead of Roboto.
userChrome.ui-force-old-icons Use the theme's older icon set, with or without userChrome.ui-chrome-refresh.
userChrome.ui-no-ripple Disable the Material ripple animation (the circle that grows out over a toolbar button when you press or hover it).
userChrome.ui-no-nova-border Remove the borders and rounded corners the Firefox "Nova" redesign draws around the web content and sidebar, so they sit flush. The separator under the toolbars and the dividers between split-view panels stay. Only acts while browser.nova.enabled is on, the default in every channel since Firefox 157.
userChrome.ui-white-toolbox Changes the whole toolbox to be white instead of the default light-grey tint, so the tab strip and the framing around the toolbars match the white URL-bar and bookmarks rows for an all-white top chrome. The tab strip loses its grey, so unselected tabs rely on the active tab and separators for distinction. Uses --md-background-color-100, so it follows the dark palette in dark mode. No effect with userChrome.theme-default. false by default.
userChrome.ui-findbar-top-right Move the find-in-page bar (Ctrl/Cmd+F) to the top-right corner of the content area, matching its pre-"Nova" floating position, instead of the default bottom dock. Works whether or not browser.nova.enabled is set.
userChrome.ui-findbar-hide-checkboxes With userChrome.ui-findbar-top-right enabled, hide the find bar's four toggle checkboxes (Match Case, Match Diacritics, Whole Words, Highlight All) for a more compact bar at every window width. Below about 1100px wide the theme hides them anyway so the search box fits, and their settings still apply while hidden. Shown by default.
userChrome.ui-material-findbar Use the theme's white Material find bar, with a borderless search field and chip-style toggles, while the new Firefox look ("Nova") is on. Without it the theme only styles the find bar with Nova turned off, and Firefox 162 no longer lets you turn Nova off. Combines with userChrome.ui-findbar-top-right. false by default.
userChrome.ui-no-not-secure-warning Hide the leading "Not Secure" chip shown on insecure (HTTP) pages, for a minimal, Chrome-like address bar. The secure (lock) indicator and breached-connection warnings are always kept. false by default.
userChrome.ui-no-urlbar-history-badge Hide the small clock badge Firefox draws over the site icon of history suggestions in the address bar dropdown, so the icon shows in full. Bookmark and open-tab badges are kept. false by default.
userChrome.ui-no-urlbar-overhang Keep the open address bar dropdown the same width as the address bar. Firefox normally grows it past the bar on every side while it is open (by 8px with the new Firefox look, unless browser.uidensity is compact). false by default.
userChrome.ui-pre-nova-look Bring back details of the Firefox look from before the "Nova" redesign while Nova is on: the focus ring on the address bar, the open address bar growing a few pixels instead of over the tabs (unless userChrome.ui-no-urlbar-overhang is on), the address bar results' spacing and a dash between title and address, notification bars as cards with the coloured edge, a centred icon and grey secondary buttons, the sidebar as a floating card, panels with their smaller corners, rounded search fields instead of pills, and the plain grey tab strip instead of the violet gradient when no Firefox theme with its own colours is applied. Also turns on userChrome.ui-no-nova-border. For the find bar, see userChrome.ui-material-findbar. Does nothing while browser.nova.enabled is off, which Firefox 162 no longer allows. false by default.
userChrome.ui-no-tab-audio-background Drop the circle (fill, border and shadow) behind the audio button on pinned tabs, leaving a plain speaker icon. The hover background is kept. false by default.
userChrome.ui-no-pinned-tab-mute-click Clicking the audio button on a pinned tab selects the tab instead of muting it. Mute from the tab's context menu or with Ctrl+M instead. Regular tabs keep their clickable audio button. false by default.
userChrome.ui-no-tab-title-changed-dot Hide the dot under an unselected pinned tab when its title changes, for example when a chat or mail tab gets new messages. The dot shown when a tab is waiting on a dialog is kept. false by default.
userChrome.ui-chromium-tab-hover Use Chromium's tab hover timing: the hover colour comes in over 100ms and fades back out over 300ms, instead of the theme's quick 83ms fade in and instant change out. The fade out also runs on the tab you switch away from, which shows each tab switch one frame later. Follows the reduce-motion settings like the theme's other animations. false by default.
userChrome.ui-no-inactive-titlebar Keep the titlebar and tab strip in their active colours when the window loses focus, instead of turning grey. Useful when each profile has its own theme colour. false by default.
userChrome.ui-high-contrast-text When your system asks for more contrast (for example macOS "Increase contrast" or a high contrast theme), show secondary text such as descriptions and URLs at full strength, as Firefox does, instead of the theme's grey. false by default.
userChrome.ui-no-tab-dimming (macOS) Show the titles of background tabs at full strength. By default the theme keeps Firefox's earlier fade on them (Firefox 160 made it stronger), on top of its own grey. false by default.
userChrome.ui-tab-counter Show how many tabs are open on the "List all tabs" button, as a number in a rounded outline ("99+" past 99), in place of its icon. Counts the tabs in the horizontal tab strip. false by default.
userChrome.ui-themed-pages Colour Firefox's own pages (Settings, Add-ons, about:config and the rest) with the theme's palette: page and card backgrounds and text follow the toolbar colours, so a preset from custom.css such as Dracula or GitHub reaches them too. The new tab page follows the palette already. No effect with userChrome.theme-default. false by default.
userChrome.ui-white-urlbar-results Changes the open/focused URL bar and its search-results dropdown to white, like Chrome's omnibox, instead of the material grey tint. Uses --md-background-color-100, so it follows the dark palette in dark mode. No effect with userChrome.theme-default. false by default.

Setting preferences with user.js

Instead of creating each preference by hand, you can put them in a user.js file in your profile directory, next to the chrome folder. The repository's user.js lists them all. For example:

// Compact floating find bar and a plain speaker icon on pinned tabs.
user_pref("userChrome.ui-findbar-top-right", true);
user_pref("userChrome.ui-findbar-hide-checkboxes", true);
user_pref("userChrome.ui-no-tab-audio-background", true);

Firefox reapplies user.js at every startup, so if you later change one of these in about:config, update or remove its line in user.js too.

Custom CSS rules

You can also add your own user CSS rules by using the custom.css file. Additionally, if you want to change some colors, you can override the default variable values with your own.

Follow these steps:

  1. Find and rename the custom_example.css file in the root folder to custom.css.
  2. Open custom.css in a text editor.
  3. Find the desired variable.
  4. Add your values. For example, set the accent colour to red:
@-moz-document url-prefix("chrome:"), regexp("about:(?!blank|srcdoc|devtools).*") {
  :root {
    --md-accent-color: #ea4335 !important;
  }
}
  1. Save the file and restart Firefox to apply changes.

Note

Using this custom.css file can separate your changes from the source project. You can easily back up your file and not worry about overwriting your changes when updating or reinstalling the main files.

Tip

custom.css is imported by both userChrome.css and userContent.css, so an unscoped rule also reaches every web page you visit. That's why the example above is wrapped in the same @-moz-document scope chrome/theme-material-blue.css uses.

The two halves cover different things:

  • url-prefix("chrome:") is the browser window itself (tabs, toolbars, the address bar, menus, the find bar) and other Firefox windows such as the Library.
  • regexp("about:...") is Firefox's own pages (the new tab page, settings, about:downloads and so on), but not about:blank, embedded about:srcdoc frames or the developer tools.

A rule that only touches the browser UI (the tab strip, for example) only needs url-prefix("chrome:"). Variable overrides and anything that also appears on an about: page (the downloads list is in both the downloads panel and about:downloads) need both. If you're not sure, just use both, so the rules never reach ordinary websites.

@-moz-document url-prefix("chrome:"), regexp("about:(?!blank|srcdoc|devtools).*") {
  /* Library window (Bookmarks/History): smaller text so more rows fit */
  window#places {
    font-size: 10pt !important;
  }

  /* Downloads panel and about:downloads */
  #downloadsListBox {
    font-size: 10pt !important;
  }

  /* Find bar search box */
  .findbar-textbox {
    font-size: 12pt !important;
  }
}

Available variables

Variable name Description
--md-accent-color accent color
--md-background-color-0 dark tones
--md-background-color-50 middle tones
--md-background-color-100 light tones
--md-text-primary main text color
--md-text-secondary secondary text color
--md-text-on-accent text on primary button
--md-menu-background-color menu background color
--md-menu-background-color-hover menu items background color on mouse over
--md-menu-border-color controls border color
--md-icon-color-primary navigation bar icons color
--md-icon-color-secondary URL bar icons color
--md-content-separator-color separator line between browser and content area
--md-selection-text-color text selection color
--md-selection-background-color selection background color

Tip

You can find more variables in the variables/_colors.scss file. To use these variables, simply add the --md- prefix. For example, "accent-color": #a8c7fa, becomes --md-accent-color: #a8c7fa;.

Custom css use cases

Here are some examples of how you can use the custom.css file:

  • Replacing the font with your own. Change "YourFontName" to the name of your font:

    @-moz-document url-prefix("chrome:"), regexp("about:(?!blank|srcdoc|devtools).*") {
      :root,
      html,
      body {
        --md-font-family: "YourFontName", sans-serif !important;
      }
    }
  • Removing the separator line between the browser and content:

    @-moz-document url-prefix("chrome:") {
      :root {
        --md-content-separator-color: transparent !important;
      }
    }

Custom css use cases for creating your own color themes

Tip

You can use variables to completely recolour the theme. Here are some preset examples with code:

Each example only applies when its own preference is enabled. Copy the file's contents into custom.css, create the preference shown in the table, and leave the built-in userChrome.theme-* preferences off. The colours reach the toolbar and the new tab page. To colour Firefox's other pages (Settings, Add-ons and so on) as well, also turn on userChrome.ui-themed-pages.

Description Preview

System accent colors

Source code:
theme-system-accent.css
Preference: userChrome.theme-system-accent

Github theme

Source code:
theme-github.css
Preference: userChrome.theme-github
preview-github

Dracula theme

Source code:
theme-dracula.css
Preference: userChrome.theme-dracula
preview-dracula

Material Theme

Enabling userChrome.theme-material uses the bundled blue palette, with no download needed. The red, yellow and green examples below also need their own preference (for example userChrome.theme-material-red) alongside userChrome.theme-material; copy the file's contents into custom.css as with the other colour themes.

You can also use the Material Theme Builder to create a colour theme from an image.

  1. Create the userChrome.theme-material preference in the about:config page.

  2. Go to the Material Theme Builder website.

  3. Select from the presented images, upload your own, or use the "Random color" button to generate a theme.

  4. Click the "Pick your fonts" button in the bottom right corner.

  5. Skip this step and click the "Export theme" button.

  6. Click "Export" and select "Web (CSS)" from the dropdown menu.

    material-theme-tutorial

This will download an archive of CSS files. You only need two files: light.css and dark.css. Open these in a text editor and copy the --md-sys-color-* declarations into your custom.css file, keeping userChrome.theme-material enabled:

@-moz-document url-prefix("chrome:"), regexp("about:(?!blank|srcdoc|devtools).*") {
  :root {
    /* Paste the colour declarations from light.css here. */
  }

  @media (prefers-color-scheme: dark) {
    :root {
      /* Paste the colour declarations from dark.css here. */
    }
  }
}

custom.css loads after the bundled blue palette, so your declarations replace it.

Examples with previews

Example Extra preference Preview
theme-material-blue.css (bundled) None material-blue-preview
theme-material-red.css userChrome.theme-material-red material-red-preview
theme-material-yellow.css userChrome.theme-material-yellow material-yellow-preview
theme-material-green.css userChrome.theme-material-green material-green-preview

🔧 Build & Development (for developers)

Prerequisites

  • Node.js and npm. The Node version is pinned in mise.toml, and mise can install and select it for you.

Installation

  1. Open Firefox profile directory in terminal.
  2. Clone this repo with the following command:
git clone https://github.com/joshuataylor/material-fox-updated-fork.git chrome
cd chrome
npm install
npm run dev

Project structure

[Profile Folder]
└── chrome
    ├── chrome
    ├── src
    │   ├── user-chrome
    │   ├── user-content
    │   ├── user-chrome.scss
    │   └── user-content.scss
    ├── package-lock.json
    ├── package.json
    ├── userChrome.css
    └── userContent.css
  1. Then you can modify the files in the src directory, all changes will be automatically build in the [Profile Folder]/chrome/chrome folder.

To subsequently start the development mode, just use the following command:

npm run dev

Testing

Firefox only loads user styles at startup, so restart it after a build. With mise you can test in a separate profile instead of your everyday one:

mise run build
mise run firefox -- --channel stable

The launcher downloads the chosen Firefox channel if needed, keeps its profile under tmp/profiles/ and copies the built chrome/ into it on every launch. Use --channel beta or --channel nightly for the other builds, and --nova off to check the theme with Nova disabled.

Other checks:

npm run lint
mise run firefox-download
mise run verify-theme
mise run screenshots -- --channels stable --schemes light,dark --only findbar

verify-theme checks the rendered browser on each channel, and screenshots go to tmp/screenshots/.

Credits

About

🦊 Firefox user CSS theme looks similar to Chrome

Topics

Resources

Stars

31 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages