[Nova] Let static themes set chrome corner radius and tab/toolbar spacing
Categories
(Firefox :: Theme, enhancement)
Tracking
()
People
(Reporter: joel.lisenby, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:157.0) Gecko/20100101 Firefox/157.0
Steps to reproduce
Firefox 157.0 Release, Nova on (browser.nova.enabled true, the default).
-
Install a static theme from AMO (colors and images only). Look for any theme setting that changes Nova corner radius or the space above, below, and between tabs / the nav bar. There isn't one.
-
Compact density (Settings → General → Appearance → Window density) tightens some chrome. Radius stays Nova-round, and tab padding is still larger than I want.
-
The documented theme key has no geometry:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme
theme.properties is color_scheme, content_color_scheme, additional_backgrounds_alignment/tiling, backgrounds_area. -
theme_experiment can map the CSS variables below, but only on Nightly / Developer Edition with extensions.experiments.enabled. It cannot ship as a listed AMO theme.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme_experiment -
On Release, this is the path that actually changes the look: about:config → toolkit.legacyUserProfileCustomizations.stylesheets = true, create <profile>/chrome/userChrome.css, paste the rules below, restart. Nova stays on.
:root {
--border-radius-xsmall: 0px;
--border-radius-small: 0px;
--border-radius-medium: 0px;
--border-radius-large: 0px;
--border-radius-xlarge: 0px;
--border-radius-circle: 0px;
--tab-margin-block: 1px;
--tab-overflow-clip-margin: 1px;
--tab-inline-padding: 6px;
}
.tabbrowser-tab {
padding-inline: var(--tab-overflow-clip-margin);
}
.tab-background {
margin-block: var(--tab-margin-block);
}
Those tokens already exist in chrome (Nova defaults in parentheses):
Radius: --border-radius-xsmall (4px), small (8px), medium (12px), large (16px), xlarge (24px), plus --tab-border-radius, --toolbarbutton-border-radius, --button-border-radius, --urlbar-icon-border-radius, --arrowpanel-border-radius, --panel-border-radius, --panel-menuitem-border-radius, --menuitem-border-radius, --popup-border-radius, --input-text-border-radius, --card-border-radius.
Tab / nav spacing: --tab-margin-block (6px standard, 4px compact), --tab-overflow-clip-margin (2px), --tab-inline-padding (8px standard, 6px compact).
Actual results
The AMO theme can change colors and header images. Corner radius and tab/nav spacing stay at Nova defaults.
Compact density is a browser-wide control, not a theme, and it does not change radius.
A signed static theme on Release has no way to write the tokens in step 5. Most people will never create a profile chrome folder or flip toolkit.legacyUserProfileCustomizations.stylesheets.
I want Nova on, with smaller (or square) corners and tighter tabs, as a theme a regular user can install from AMO.
Expected results
A signed static theme can set chrome corner radius and tab/nav spacing through theme.properties. The user installs the theme from AMO. Nova stays enabled. No profile CSS, no about:config, no theme_experiment.
A small, token-based API is enough. Two ideas that match how the chrome is already built:
-
A 0–100 scale that multiplies the existing --border-radius-* set (0 = square, 100 = current Nova). Tabs, urlbar, panels, and buttons stay concentric.
-
Lengths for tab strip spacing, mapped to the tokens above: tab_margin_block, tab_overflow_clip_margin, tab_inline_padding.
Sketch:
{
"theme": {
"properties": {
"border_radius_scale": 0,
"tab_margin_block": "1px",
"tab_overflow_clip_margin": "1px",
"tab_inline_padding": "6px"
}
}
}
theme_experiment already describes this kind of mapping. Promoting a short, reviewed list of those variables to the public theme key is what would let listed themes do it.
Not asking for arbitrary chrome CSS in a theme, and not asking to turn Nova off. The tokens are already there; themes cannot write them on Release.
See also:
https://blog.mozilla.org/addons/2026/09/29/nova-is-here-what-changes-for-your-firefox-theme/
Bug 1330337 (early theming API user story included square_tabs; that never shipped as a public property)
Comment 1•1 month ago
|
||
Hi Mark,
I recall we were looking in allowing users to customize the Nova border radius in about:settings? is there a bugzilla issue tracking that?
If we the border radius is something that can be configured from about:settings, then I'm not sure it is something that the theme should be controlling? wdyt?
| Reporter | ||
Comment 2•1 month ago
|
||
Just my 2 cents: I think corner corner radius are kind of "theme" related, no? I feel like it would make sense to allow more creativity by the theme creators, no?
Comment 3•1 month ago
|
||
We had investigated a setting to set tab roundness to square, rounded, or round but we decided not to go ahead with it (for now at least). I don't think a bug was ever filed and the work isn't currently planned
To me, putting the roundness in the theme would likely cause fragmentation in the themes without really allowing authors to differentiate enough to make truly unique themes. It's likely that there are users that want to use a theme with a different roundness than the author's preference (like we have now with Nova)
| Reporter | ||
Comment 4•1 month ago
|
||
So that brings back the problem I've noticed, where you have to enable the about:config setting, then add custom chrome css in order to actually change the roundness to our preferences.
Luca stated it can be adjusted in about:settings, however I am not setting that option available. If it were that would be fine, I'd be happy with that capability to adjust the following elements border radius, padding, margins. This works with nova enabled very well.
userChrome.css
/* Night Better — Nova stays on. Theme-agnostic chrome layout.
Square corners, tighter tabs, hide Share Firefox. Colors come
from the active theme (Night Neutral or any other). The options
slider rewrites the corners block (0 square … 100 Nova).
Profile folder → chrome/userChrome.css
about:config → toolkit.legacyUserProfileCustomizations.stylesheets = true
*/
/* firefox-better:corners-start */
/* firefox-better:corners 0% of Nova (xsmall 0px … xlarge 0px) */
:root {
--border-radius-xsmall: 0px !important;
--border-radius-small: 0px !important;
--border-radius-medium: 0px !important;
--border-radius-large: 0px !important;
--border-radius-xlarge: 0px !important;
--border-radius-circle: 0px !important;
--tab-border-radius: 0px !important;
--toolbarbutton-border-radius: 0px !important;
--button-border-radius: 0px !important;
--urlbar-icon-border-radius: 0px !important;
--arrowpanel-border-radius: 0px !important;
--panel-border-radius: 0px !important;
--panel-menuitem-border-radius: 0px !important;
--menuitem-border-radius: 0px !important;
--popup-border-radius: 0px !important;
--input-text-border-radius: 0px !important;
--card-border-radius: 0px !important;
--card-border-radius-compact: 0px !important;
}
#urlbar-background,
#urlbar,
.urlbar-input-container,
.tab-background,
.tab-group-label,
.tab-group-label-hover-highlight,
.tab-group-label-container,
.tab-group-overflow-count,
toolbarbutton,
toolbaritem,
menupopup,
panel,
.panel-viewstack,
.toolbarbutton-1,
.toolbarbutton-icon,
.toolbarbutton-badge-stack {
border-radius: 0px !important;
}
.tab-group-label,
.tab-group-label-hover-highlight,
.tab-group-label-container {
border-start-start-radius: 0px !important;
border-start-end-radius: 0px !important;
border-end-start-radius: 0px !important;
border-end-end-radius: 0px !important;
}
/* firefox-better:corners-end */
/* firefox-better:tight-tabs
Nova default is 6px above/below (--tab-margin-block) and 8px inner
padding. Overflow-clip padding is the gap between horizontal tabs. */
:root {
--tab-margin-block: 1px !important;
--tab-vertical-block-margin: 1px !important;
--tab-overflow-clip-margin: 1px !important;
--tab-margin-overflow-clip: 1px !important;
--tab-inline-padding: 6px !important;
--tab-padding-inline: 6px !important;
--tab-inner-inline-margin: 2px !important;
--tab-margin-inline-inner: 2px !important;
}
.tabbrowser-tab {
padding-inline: var(--tab-overflow-clip-margin) !important;
}
/* Collapsed group members stay in the DOM at max-width: 0. Firefox zeros
their padding; our padding-inline !important was leaving a 1px box and
the group underline painted in the leftover space. */
tab-group[collapsed] > .tabbrowser-tab:not([visuallyselected], [multiselected]),
tab-group[collapsed] > tab-split-view-wrapper:not([hasactivetab]) .tabbrowser-tab {
min-width: 0 !important;
max-width: 0 !important;
padding: 0 !important;
overflow-clip-margin: 0 !important;
}
tab-group[collapsed] > tab-split-view-wrapper:not([hasactivetab]) {
min-width: 0 !important;
max-width: 0 !important;
padding: 0 !important;
margin: 0 !important;
overflow: hidden !important;
}
tab-group[collapsed] > .tabbrowser-tab:not([visuallyselected], [multiselected]) .tab-group-line,
tab-group[collapsed] > tab-split-view-wrapper:not([hasactivetab]) .tab-group-line {
display: none !important;
}
.tab-background {
margin-block: var(--tab-margin-block) !important;
}
/* firefox-better:hide-share
Share Firefox sits next to About / updates in the app menu. */
#appMenu-referrals-button,
#appMenu-referrals-separator,
#appMenu_menu_referralsPage,
#PanelUI-fxa-menu-share-firefox,
#share-tab-button,
#referrals-button,
toolbarbutton[data-l10n-id="appmenuitem-referrals"],
toolbarbutton[data-l10n-id="appmenu-referrals2"],
toolbarbutton[data-l10n-id="appmenuitem-share-firefox-title2"],
.share-tab-url-item {
display: none !important;
}
userContent.css
/* Firefox Better — corner radius 0% of Nova on built-in pages (about:, settings). */
@-moz-document url-prefix("about:"), url-prefix("chrome:") {
:root {
--border-radius-xsmall: 0px !important;
--border-radius-small: 0px !important;
--border-radius-medium: 0px !important;
--border-radius-large: 0px !important;
--border-radius-xlarge: 0px !important;
--border-radius-circle: 0px !important;
--button-border-radius: 0px !important;
--input-text-border-radius: 0px !important;
--card-border-radius: 0px !important;
--card-border-radius-compact: 0px !important;
}
button,
input,
select,
textarea,
.card,
.toggle-button {
border-radius: 0px !important;
}
}
Comment 5•1 month ago
|
||
I don't believe that a preference to solely control border radius and padding is sensical. KDE recently debated this for a few preferences (like icon size, for their new Union engine). They decided to, instead, continue to solely provide the option to Q[Quick]Style authors. I believe that, for Firefox, this should be configurable in about:config, if a user-facing option is desirable, and, regardless, via themes.
An exception is their border transparency option, but that is an accessibility assistant.
Rather, I would significantly prefer the radius to be inherited from the GTK4/5 or Union CSS3.
| Reporter | ||
Comment 6•1 month ago
|
||
I would be happy with about:config roundness configuration option as well. Just asking for something better than the more difficult current method of needing to identify the folder, and add a new userContent.css and userChrome.css CSS file in order to customize it. It seems like a style / theming related feature, and allowing theme creators to customize it would be awesome as well, and have about:config override it if set in a theme.
The Vivaldi browser offers the ability to set border roundness through their Settings > Themes page with simple "-" and "+" buttons, which go from "disabled" / 0, to 14 (basically a circle) . This is something preset in themes by authors, but can also then be overridden by the user themselves.
I don't see how that would make users more confused than having to deal with CSS and the filesystem, or even about:config.
Comment 8•3 days ago
|
||
We agreed in out triage meeting to move this to Firefox :: Theme, based on the exchange it feels that may be a better bugzilla component where a decision for this enhancement request could be discussed further and determine what would be the more reasonable path forward.
Description
•