Skip to content

Custom Github code font by goulinkh

Imported and mirrored from https://gist.githubusercontent.com/goulinkh/1429b3e4d2ac72b55b4295b23b9a5a76/raw/github-custom-code-font.user.css

Details

Authorgoulinkh

LicenseNo License

Categorygithub

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Replace the default code font family with you favourite font that is installed on your system.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Custom Github code font
@namespace      github.com
@version        1.1.4
@description    Replace the default code font family with you favourite font that is installed or your system.
@author         Goulin Khoge

@var text code-font-family "Code font family" monospace

/* ==/UserStyle== */
@-moz-document domain("github.com") {
  /* Custom Github code font*/


  /* github-[hash].css */
  .file-info,
  .hook-delivery-guid,
  .hook-delivery-response-status,
  .export-phrase pre,
  .oauth-app-info-container dl.keys dd,
  .two-factor-recovery-codes,
  .CommunityTemplate-highlight,
  /* frameworks-[hash].css */
  kbd,tt,code, pre,
  .input-monospace,
  .text-mono,
  .file-editor-textarea,
  /* behaviors-[hash].css */
  .branch-name,
  .markdown-body kbd,
  .commit .sha-block,.commit .sha,
  .commit-ref,
  .commit-desc pre,
  .commit-tease-sha,
  .blob-num,
  .blob-code-inner,
  /* Custom */
  .CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like
  {
    font-family: var(--code-font-family);
  }

}

Reviews

No reviews yet.