-
Open
~/.mozilla/firefox/<your_profile>/chrome/userContent.css
(create it if does not exist). -
Paste the following content in it.
@namespace url(http://www.w3.org/1999/xhtml); @-moz-document regexp("chrome://browser/content/devtools/**/.*"){ .devtools-monospace { font-family: Consolas, monospace !important; font-size: 8pt !important; } }
-
Restart Firefox.
Last active
April 28, 2025 06:23
-
-
Save vbsessa/6150f39d1e92699e9c2f49e58fcbcc03 to your computer and use it in GitHub Desktop.
How to customize Firefox devtools fonts
The current solution for this - add the following to userContent.css
:
/* --------------------------------------------------------------------
/* DevTools
*/
@-moz-document url-prefix("chrome://devtools/content/")
{
:root {
--theme-code-font-size: 13px !important; /* Inspector */
/* --theme-body-font-size: 24px !important; /* Some of UI */
}
/* Most DevTools text */
.devtools-monospace {
font-family: "Source Code Pro", Consolas, monospace, -moz-fixed !important;
font-size: 13px !important;
font-weight: 400 !important;
}
/* Main tree view in the HTML inspector */
.inspector-panel #markup-view {
font-family: "Source Code Pro", Consolas, monospace, -moz-fixed !important;
font-size: 13px !important;
font-weight: 400 !important;
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@-moz-document url-prefix("chrome://devtools/content"){
.devtools-monospace {
font-family: "Cascadia Mono", "Consolas", "Sarasa Gothic SC", "Microsoft Yahei UI" !important;
}
}
put it in userContent.css