Skip to content

Instantly share code, notes, and snippets.

@dangh
Last active September 6, 2023 19:35
Show Gist options
  • Save dangh/25315d954898f20a76a0d9b6f14c9b4d to your computer and use it in GitHub Desktop.
Save dangh/25315d954898f20a76a0d9b6f14c9b4d to your computer and use it in GitHub Desktop.
Prominent tab color for Firefox container

firefox container tab color

  1. Go to about:config, enable these flags:
    • toolkit.legacyUserProfileCustomizations.stylesheets
    • layout.css.color-mix.enabled
  2. Go to about:support, look for profile folder.
  3. Add the CSS below to chrome/userChrome.css inside the profile folder.
/**/
.tabbrowser-tab[usercontextid] .tab-context-line {
display: none;
}
.tabbrowser-tab[usercontextid] .tab-background {
background: var(--identity-tab-bgcolor) !important;
border: 1px solid var(--identity-tab-border-color);
box-shadow: 0 0 4px var(--identity-tab-shadow-color) !important;
}
.tabbrowser-tab[usercontextid] {
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 20%, transparent);
--identity-tab-border-color: color-mix(in srgb, var(--identity-tab-color) 50%, transparent);
}
.tabbrowser-tab[usercontextid]:hover {
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 30%, transparent);
}
.tabbrowser-tab[usercontextid][selected] {
--identity-tab-bgcolor: color-mix(in srgb, var(--identity-tab-color) 50%, var(--tab-selected-bgcolor, var(--toolbar-bgcolor)));
--identity-tab-border-color: color-mix(in srgb, var(--identity-tab-color) 90%, currentColor);
--identity-tab-shadow-color: var(--identity-tab-color, #000);
}
/**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment