How to change the font size in Chrome Developer Tools
September 30, 2011 8 Comments
When presenting on JavaScript or jQuery I’ll typically spend a lot of time in the Chrome Developer Tools window at the console. The problem is that, depending on the projection facilities and the resolution the fonts can be too small to read.
The Chrome devtools themselves are built out of HTML and CSS so I started digging for how I could edit the stylesheet. You can view the default devtool stylesheet by navigating to chrome-devtools://devtools/devTools.css. You can’t easily edit this though (it’s probably buried as a resource within Chrome), but you can override its styles using the standard custom user stylesheet Custom.css!
Custom.css lives at:
- Windows: C:\Users\<user>\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets
- Mac OS X: ~/Library/Application Support/Google/Chrome/Default
The style(s) to add and override in Custom.css are:
body.platform-mac .monospace, body.platform-mac .source-code {
font-family: Monaco, monospace;
}
/* Keep .platform-mac to make the rule more specific than the general one above. */
body.platform-mac.platform-mac-snowleopard .monospace,
body.platform-mac.platform-mac-snowleopard .source-code {
font-size: 11px !important;
font-family: Menlo, monospace;
}
body.platform-windows .monospace, body.platform-windows .source-code {
font-size: 12px !important;
font-family: Consolas, Lucida Console, monospace;
}
body.platform-linux .monospace, body.platform-linux .source-code {
font-size: 11px !important;
font-family: dejavu sans mono, monospace;
}
A nice touch is that the styles update automatically as you save Custom.css so you can tweak it on the fly to get the right font-size for your audience.
Hope that helps!




I am on Mac Lion. Followed your recipe. Created folders in path and Custom.css file. No effect.
@Vlad Sorry, the path was slightly wrong for OSX – it should have been ~/Library/Application Support/Google/Chrome/Default
That’s it! Thanks.
Excellent! Thanks!
Great !
on linux for chromium this is:
~/.config/chromium/Default/User\ StyleSheets/Custom.css
Thank you
Thanks for blogging this. People are always asking and now I have the right place to point them. :)
very nice! thanks! helped a lot! wonder why there is no easier way to change this. i mean we’re talking about developer tools right?