dracula / github

🧛🏻‍♂️ Dark theme for Github
https://draculatheme.com/github
MIT License
25 stars 8 forks source link

Unable to set custom font #19

Closed git58 closed 1 year ago

git58 commented 1 year ago

I have various installed fonts on my Arch Linux PC. Set custom font to "FiraCode" or "JetBrainsMono Nerd Font Mono" has no effect. I successfully applied this fonts in other extensions for Vivaldi browser, but not in Dracula Github style for Stylish. What goes wrong?

I change default style settings to this:

@var checkbox purple-logo "Use purple logo" 1
@var checkbox purple-topbar "Use purple topbar" 1
@var checkbox colored-status "Use dracula colors on status badges" 1
@var checkbox black-btn-text "Use black text on colored buttons" 1
@var checkbox contributor-graph-colors "Use dracula colors for profile contributor graphs" 1

@var checkbox custom-font-enabled "Use custom code font" 1
@var text custom-font "Custom Font" "JetBrainsMono Nerd Font Mono Regular"
moeshin commented 1 year ago

It works for me

  .react-code-text, .comment-body pre {
    if custom-font-enabled {
      font-family: custom-font;
    }
  }

  #read-only-cursor-text-area {
    if custom-font-enabled {
      font-family: custom-font !important;
    }
  }
asportnoy commented 1 year ago

I cannot reproduce this. @git58 is this still an issue?