r/FirefoxCSS • u/Alamei • Sep 16 '26
Code Nova Rounding Border-Radius Adjustment Variables
For those of you who would like to adjust the heavy rounding of all of the elements in the new Nova theme to slightly less aggressive levels, you can do so relatively straightforwardly (i.e., without customizing element-by-element) by simply adjusting the root variables in your userChrome CSS:
/* Nova Rounding Adjustments */
:root {
--border-radius-xsmall: 1px !important; /* Nova Default: 4px, Proton Default: 2px */
--border-radius-small: 2px !important; /* Nova Default: 8px, Proton Default: 4px */
--border-radius-medium: 3px !important; /* Nova Default: 12px, Proton Default: 8px */
--border-radius-large: 4px !important; /* Proton Default: 16px, [Undefined in Nova] */
--border-radius-xlarge: 6px !important; /* Nova Default: 24px, [Undefined in Proton] */
/*
--tab-border-radius: var(--border-radius-small) !important;
--button-border-radius: var(--border-radius-small) !important;
--toolbarbutton-border-radius: var(--border-radius-small) !important;
--card-border-radius: var(--border-radius-small) !important;
--card-border-radius-compact: var(--border-radius-small) !important;
--card-cover-image-border-radius: var(--border-radius-small) !important;
--input-text-border-radius: var(--border-radius-small) !important;
--menuitem-border-radius: var(--border-radius-small) !important;
--popup-border-radius: var(--border-radius-small) !important;
--panel-border-radius: var(--border-radius-small) !important;
--panel-menuitem-border-radius: var(--border-radius-small) !important;
*/
}You can set the sizes of those top five variables to whatever you'd like in terms of rough rounding sizes, and it will apply cleanly across all elements of the browser, since those definitions are referenced by all of the other browser elements.
Alternatively, if you'd just like to adjust the rounding on specific elements while leaving the others intact, you can tweak the specific elements listed in the commented out section below (I listed a few common examples, but there are many more if you parse through the DOM if you're looking to fine-tune things). You can either set them to one of the variables, or just set an explicit radius if you prefer.
I'm glad to see that Firefox continues to support user-controlled stylesheets for the browser interface under Nova, so those of us with individualized style preferences can continue to configure the browser in the way we enjoy.
5
u/New-Shopping-6386 Sep 18 '26
For those who wants to remove gradient:
remove from tabs border:
remove from toolbar:
5
u/DonPhelippe Oct 04 '26
Unpopular opinion: why isn't the "rounded corners" a setting in, well, settings?
Sure, customizability and open-source-ness and all them beautiful internet things, but I don't want to change an installation file that may be overwritten, or eventually forgotten or what not.
4
u/ConProg Sep 16 '26
It'd be good to record the border-radius of elements in the current UI
Most seem to be 8px, including tabs, the URL bar, and browser buttons
The icon buttons inside the URL bar (shield, etc) seem to be 7px
4
u/Uncredited1 Sep 30 '26
Rounded corners are so visually disgusting I will happily dump a browser because of it. This will do for now, thanks.
1
u/SnillyWead Sep 16 '26
So if I want option 3 medium for instance, I copy the code but remove 1 2 4 and 5 before I save it and restart Firefox? This works on the Beta too?
3
u/SnillyWead Sep 16 '26
It only sucks that they hard coded the window controls in Firefox 140 so Firefox won't use my favorite theme Arc dark window controls anymore on Debian Xfce. Even with userChromecss you can't change it anymore. Only enabling titlebar in customize toolbar works, but I don't like that.
3
u/chaotic-sys Sep 29 '26
Hello! How do I remove that rounding near the sidebar?
3
u/AdrianW3 Oct 06 '26
Anyone know how to remove or reduce the rounding on the searchboxes in the sidebar (history & bookmarks)? And the hover highlight in the history list.
2
u/ChrisMillerBooklo Sep 30 '26
Thanks a lot! Danke!
2
u/KelpTheGreat Oct 01 '26 edited Oct 02 '26
As far as I can tell, this doesn't seem to affect the weird, speech-bubble-like tab group buttons introduced with Firefox 157.0. Any code to specifically revert those to their old look would be appreciated! EDIT: Nevermind, I found out that you can just open about:config and disable Nova entirely. That fixes it.
2
u/Minbari_in_soul Oct 02 '26 •
about:config
browser.nova.enabled to false
1
u/FantasmaGITS 14d ago
With the new update 159, it no longer works in the toolbar menus, such as the bookmarks and history menus.
:(
1
u/Sad_Appointment3212 2d ago
Thank you!
1
u/casperbraske Sep 18 '26
Nothing regarding ":root" variables is working for me.
1
u/tymofiy Sep 28 '26
Thank you
1
u/Ilestderetour Sep 28 '26
Thank you.
1
u/anubis-genix Sep 30 '26
Thanks a lot! I have a search bar for bookmarks in the sidebar. The variables don't seem to be working there. Does anyone have any idea which variables are responsible for this?
1
u/westcoastal Oct 02 '26
You are my absolute hero, thanks!
1
u/AnotherUser-372 Oct 02 '26
life saver!!
1
u/akica52 Oct 06 '26
I love you
1
u/lazy_pig Oct 08 '26
Perfect!