May also work with gist.github.com. Default code font that GitHub uses, 'Courier' for the most part, just doesn't do it for me
GitHub/Font > Source Code Pro by randy
Details
Authorrandy
LicenseThe Unlicense
Categorygithub
Created
Updated
Size1.3 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
20220717.1.2
- Minor changes prior to publishing
20210429.1.1
- Reduced changes to minimal, updated all references
20210428.1.0
- Found style and began modifying to taste
Source code
/* ==UserStyle==
@name GitHub/Font > Source Code Pro
@author randy
@description `May also work with gist.github.com. Default code font that GitHub uses, 'Courier' for the most part, just doesn't do it for me.
@version 20220717.1.2
@license The Unlicense
@preprocessor uso
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("github.com"),
domain("gist.github.com") {
/* Improve the readability of the GitHub and Gist code font
* --------------------------------------------------------
* Jacked from [-Stash-]; sorry, yours did too much and didn't work on current
* Sorry, but 'Courier' and 'Bitstream Vera Sans Mono' just don't do it for me.
* Substituting Source Code Pro, DejaVu Sans Mono, or Monaco instead.
*/
pre,
pre *,
code,
.CodeMirror-line textarea {
width: 825px !important;
font-family: "Source Code Pro", "DejaVu Sans Mono", "Monaco", monospace !important;
}
.blob-code-inner {
font-family: "Source Code Pro", "DejaVu Sans Mono", "Monaco", monospace !important;
}
.blob-code-addition {
background-color: rgba(46, 160, 67, 0.15)
}
.blob-code-deletion {
background-color: rgba(218, 54, 51, 0.15)
}
}