Keyboard shortcut to switch between light/dark theme

It’d be great to change Github theme with a keyboard shortcut, that would save you the trip to settings. Some views are better in light, others in dark and I also tend to prefer light theme occasionally.


Hi @nejckorasa - thanks for taking the time to share this great suggestion! We’ve discussed this as a team and I’d love to learn more about how you would expect this feature to work. Currently we have 3 theme options: Default to system, light and dark. If you don’t mind me asking, which theme are you using? And if you were to “design” this feature what would it look like?

Are you currently leveraging other keyboard shortcuts in GitHub? Thanks again! :pray:

I use the keyboard shortcuts very frequently and am really expecting to have a shortcut for theme switch. I’d say if I decide to switch the theme via shortcuts, it likely means that I don’t want default to system because I want to control it manually, so if I use that shortcut, it toggles between dark/light, what do you think?


Agreed, this would be highly appreciated. Until then, I’ll probably stick to the Dark Reader extension instead

1 Like

This would be a great feature to add. :pray:

1 Like

Thanks @ones66790 for sharing details on how you would use keyboard shortcuts! I’ve added this use case to our backlog tracking issue so our team can take it into consideration :pray:

A keyboard short cut or alternatively an easily accessable button/link is needed.

There are a lot of files that have images with transparent background
and black lines and text. In dark mode, it is impossible to read the text.

I normally prefer dark mode, but … without a quick way to temporarily switch back and forth,
I doubt dark mode will end up as my default.

1 Like

Hi @soegaard - thanks for reaching out! We are looking into many options and look forward to being able to share at least one of them in the future. We have also received a ton of similar feedback from the community on the issue of images with transparent backgrounds and dark elements. Theme context for images is something we’ll be investigating as well so we hope to be able to make dark mode work as your default soon!

Hi there,

Apologies if this has been discussed, but is there a quick(er) way to switch between dark mode and normal mode? I don’t like dark mode in the day but need it at night.

1 Like

Is this released? what is the keyboard shortcut?

1 Like

Hi everyone!
Yesterday we announced the new GitHub Command Palette, available in beta to all users across The command palette helps you quickly navigate across your repositories and organizations, and jump-to your pull requests, issues, projects, files and more. Most importantly, it also allows you to execute time saving commands including the ability to quickly change your theme; all without lifting your hands off the keyboard.

Open the command palette using one of the following keyboard shortcuts:

  • Windows and Linux: Ctl k or Ctl alt k
  • Mac: ⌘ k or ⌘ option k
  • Then type > to enter command mode

To open directly to command mode:

  • Windows and Linux: Ctrl shift k or Ctl shift k
  • Mac: ⌘ shift k or ⌘ shift k

Once in command mode, use the “Switch theme to [theme name]” command to toggle between themes.

Learn more about the command palette in our documentation.

cc @nejckorasa @kezhenxu94 @bonno42h @kaborso @soegaard @eugenevdm @alok87


Excellent!!! I’ve tried it out and really helpful

1 Like