Code Monkey home page Code Monkey logo

github-vscode-theme's Introduction

GitHub's VS Code themes

GitHub VS Code theme

Install

  1. Go to VS Marketplace.
  2. Click on the "Install" button.
  3. Then select a theme. The GitHub themes try to match the themes available in github.com's settings:
    • GitHub Light Default
    • GitHub Light High Contrast ✨ new ✨
    • GitHub Light Colorblind ✨ new ✨
    • GitHub Dark Default
    • GitHub Dark High Contrast
    • GitHub Dark Colorblind ✨ new ✨
    • GitHub Dark Dimmed

Additionally, there are also two older themes. Note: They might not get updated frequently and are kept for legacy reasons:

  • GitHub Light (legacy)
  • GitHub Dark (legacy)

Override this theme

To override this (or any other) theme in your personal config file, please follow the guide in the color theme documentation. This is handy for small tweaks to the theme without having to fork and maintain your own theme.

Contribute

  1. Clone and open this repo in VS Code
  2. Run yarn to install the dependencies.
  3. Press F5 to open a new window with your extension loaded
  4. Open Code > Preferences > Color Theme [⌘k ⌘t] and pick the "GitHub ..." theme you want to test. Note: It seems this has to be done 2x because the first time it switches back to the default light theme. This might be a bug?
  5. Make changes to the /src/theme.js file.
    • UI: For all changes to the "outer UI", like (status bar, file navigation etc.), take a look at the Theme Color reference.
    • Syntax: For changes to the "code highlighting", examine the syntax scopes by invoking the Developer: Inspect Editor Tokens and Scopes command from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac) in the Extension Development Host window.
  6. Run yarn build to update the theme. You can also run yarn start instead to automatically rebuild the theme while making changes and no reloading should be necessary.
  7. Once you're happy, commit your changes and open a PR.

Note:

Publish (internal)

Note: Publishing a new version of this theme is only meant for maintainers.

This repo uses changesets to automatically make updates to CHANGELOG.md and publish a new version to the VS Marketplace.

github-vscode-theme's People

Contributors

abeprincec avatar adptheoctocat avatar akiirui avatar ashtom avatar broccolinisoup avatar brunocoimbra avatar cdalvaro avatar clavin avatar dcastil avatar dependabot[bot] avatar dominicegginton avatar github-actions[bot] avatar icebeam030 avatar jeffgennari avatar jonrohan avatar keremciu avatar magic-akari avatar maximedegreve avatar mekomancer avatar orsenkucher avatar paramaggarwal avatar raik avatar serpilacar avatar shadiestgoat avatar simurai avatar this-fifo avatar tyriar avatar windsoilder avatar yamatsum avatar zwhitey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-vscode-theme's Issues

Hard to see highlighted occurrences of marked variable in dark theme

Thanks for the awesome theme, it immediately became my favourite one! 😍

However, I rely on VS Code highlighting all occurrences of a variable when my text cursor is placed in one. In the dark theme it is really hard to see those as the contrast between highlight and background is too low.

In following screenshot, the variable value occurs in lines 44, 67 and 72.

Screenshot 2020-05-09 at 17 19 30

White text is too bright

This might be irrelevant to this issue but I feel using #fff as white in general is too bright in a dark theme and kind of hurts my eyes. I am not sure if the iOS app uses #fff as white but we can test that out.

Originally posted by @icebeam030 in #19 (comment)

Installation does not work

I have installed extension, but on choosing theme VSCode shows an error - extension folder does not have themes directory with dark and light json files. This is confusing. I navigated to .vscode-oss folder with extension and inside github.github-vscode-theme-1.1.2 made

npm i; npm run build

Then extension start to work normally.

I use VSCodium on Mac.

"GitHub Dark" is missing..

I'd love to give this theme a try, but after installing the extension on my VSCode, I only get the option "GitHub Light". I'm on Windows 10.
I have uninstalled and re-installed again, but "GitHub Dark" is still missing.
Let me know if you need more info.

Should we include Octicons?

Next to file icons, VS Code now (1.45) allows to have custom icons for the rest of the UI, like the sidebar or status bar. They call it "product icons". We might can consider using the Octicons V2 for it.

  • Not sure if it can be included with this theme or if it needs to be a separate one.
  • It seems that we would need to convert it to an "icon font".
  • We might need to make additional icons just for VS Code.

/cc @ashygee @colebemis

There is White (#ffffff) line in dark theme in bottom of maximized window on macOS

It looks like this:

image

I believe it's produced by the theme but it seems like a bug. It's distracting and it shouldn't be there. It should blend in with the colors of sidebar/editor/terminalv etc.

In case the screenshot above shows it unclearly, here is a closeup of it:

image

Can replicate it 100% of times on vscode version 1.48.0-insider and macOS.

Highlighting of folded lines not visible

When a line is part of a section of folded code, highlighting on that line does not appear.

In the following, L77 is folded, and is highlighted in both cases, but the highlight is not visible.

Screen Shot 2020-05-17 at 12 44 49 PM

Screen Shot 2020-05-17 at 12 45 13 PM

All Dark Color Font / Text when using Github Dark with Source Code Pro

image

Please see attached screenshot.

I don't know if it's a known issue, done in purposes or it's a bug. Also I didn't try other font family.
As showing on the screenshot, when set font Family Source Code Pro, all text become dark black. Remove fontFamily fix the problem

OS: MacOS Big Sur
VS Code: Version: 1.47.1

Theming tools

Do you know some tools to get token of UI element, like we have with Inspect Editor Tokens and Scopes, but for vscode itself?

Strings are too light

Feedback from a DM:

The contrast of the string is a bit light

Screenshot 2020-05-08 at 10 20 47

compared to the default

Screenshot 2020-05-08 at 10 20 08

Improved Tab scrolling

I've added two tweaks to my settings.json that removes the Tab drop-shadow on scroll:

"workbench.colorCustomizations": {
  "contrastBorder": "#00000000",
  "scrollbar.shadow": "#ffffff00",
},

Result
image

I've found that it gives the editor chrome a more minimal feel that aligns with the overall visual direction of the theme. I'm not sure if this is something you'll want to implement, so this is just a suggestion.

Hovered command palette item color is invisible with dark theme

Normally, when hovering items in the command palette, there's a visible difference in the item's background color to differentiate it from the rest, but the highlight is invisible when using the dark theme.

Light (notice how the Toggle Developer Tools item is hovered):
image

Dark:
image

List selection color is stronger than focus + selection

Hi vscode dev here 👋

Seen with GitHub light and GitHub sharp

  1. Click on any list, for example explorer
  2. Now the element is select and focused
  3. Press down, now the elemnt up is just selected, but it has a darker shade than previously 🐛

Selection + focus are stronger than just selection and thus the color should be stronger, not lighter.

I like your theme, thanks for that.

State after step 2
Screenshot 2020-04-24 at 10 58 32

State after step 3
Screenshot 2020-04-24 at 10 58 36

Adopt semantic highlighting

Since 1.43, VSCode themes can take advantage of semantic highlighting.

Every theme controls whether semantic tokens are enabled. Only built-in themes have it enabled by default. It would be great if the GitHub themes enable it by default too.

To turn on semantic highlighting for a theme, all you have to do is put

"semanticHighlighting": true

in the theme's definition file.

With that, semantic tokens will come in from the languages servers and are rendered on top of the TextMate based highlighting. So far TypeScript supports semantic tokens but more languages are in the works (Java, C++, C#).

Semantic tokens have their own classification system and themes can also write rules against this classification system, but we have a default mapping from semantic tokens to common TextMate scopes. For most themes, no adoptions are needed if they cover the common TextMate scopes.

To try this out, just add

	"editor.semanticTokenColorCustomizations": {
		"[GitHub Dark]": {
			"enabled": true
		},
		"[GitHub Light]": {
			"enabled": true
		}
	},

to the user settings.

  • Open a TypeScript file, wait for the semantic tokens to come in
  • Use the Inspect Editor Tokens and Scopes tool to see the semantic tokens and how they are mapped.

Check out our Semantic Highlighting Wiki and the Semantic Highlighting Guide for more details and feel free to ping me in this issue if I can help.

Github Markdown Support

Hope this can support GitHub Markdown favor, especially in checkbox. Or make a new extension for that. Current Markdown extensions on VS Code Market are not so good.

Make editor.lineHighlightBorder transparent, for better extension support

The border around highlighted lines is currently invisible (I assume as a creative decision), however a better way of doing this than what is currently done would be to make editor.lineHighlightBorder transparent, in order to allow extensions to access this "creative decision". For example, this is what a highlighted line looks like in the default editor:

image

However, the css code var(--vscode-editor-lineHighlightBorder) is still slightly grey, meaning that somehow editor.lineHighlightBorder has not actually been set as transparent by the theme, despite the border being hidden:

image

(this is also the case with the dark theme)

Dark font in status bar

Hi! Cool theme =)

Too dark font in Status Bar in debug mode in dark version of the theme.

Screen Shot 2020-05-14 at 14 11 12

Improve `.json` readability

Thanks for the great theme!

However, the current theme is not that suitable for .json files, especially for boolean and int types.

image

It would be better to add most contrast.

Absolutely gorgeous!

I had to create an issue here to say how happy I am with this stellar theme. I've always loved the code highlighting in GitHub, and now I have the same styling and appearance on my code editor that is on the web.

I've used PHPStorm for years, and honestly this theme is making me switch -- it's that pretty.

Thank you! ❤️

Highlight colors in peekViewEditor

I believe now default very orange color is used, so you can barely read highlight text in alt+F12 window. I want to suggest more sane colors for it😄. I'm using dark theme

"peekViewEditor.matchHighlightBackground": "#ffd33d22", // or smth else :)
"peekViewResult.matchHighlightBackground": "#ffd33d22",

Current one

image

Red and green colors in the Working Tree should have more contrast

Github theme

On the split view that previews the difference between the old and modified file, modified lines have a red (for removed) and green (for added). These colors don't have enough contrast and they are quite difficult to spot, specially the reds.

Also, the actual changed text has a different background, but with the current colors it is almost impossible to spot.

You can see the original theme has a much higher contrast, which makes changes easier to see:

Default theme

Highlight colors when debugging

Basically #38 , but in different area)
image
This orange is too intense
We can probably leave a border of this color, but make fill color more diluted

Import colours from Primer Colors by name

As it stand today, this theme is going to get incredibly difficult to manage with all the hardcoded color values in the light.json theme. Also it will be difficult to auto-generate a dark version of the same theme.

Hence here is proposal. Include @primer/primitives as a dev-dependency and then make a config that is converted to the actual theme file before publishing.

We will use this as the source: https://github.com/primer/primitives/blob/master/primitives/colors.json

Also, we might need the color npm module to make some slight darken(), lighten() operations on the raw color values. This way, the intention behind the choice of the color is always documented.

Hence we will have foreground: colors.gray[8] instead of "foreground": "#444d56".

Invalid syntax in unreadable

When syntax becomes invalid, the fg color turns white and makes it unreadable:

invalid

I guess the red background color is missing? 🤔 Although we might want something a bit more subtler since this can happen often when editing.

Problem with =>

I'm using %=>% pipe with R. The = and > are colored differently, and thus ligatures are not applied either. Is there a way that everything inside %% can be of same color? Even if this cannot be implemented within the theme, I can make my own fork as long as there is a way to do so. Thanks.

How to change the line gutter color?

Maybe not relevant to the theme but how can I change this gutter color to be the same color as the background of the theme (#ffffff in light mode)?

CleanShot 2020-08-04 at 11 56 54@2x

I thought to search #f6f8fa in this codebase but found nothing. I assume this theme doesn't set it?

I also tried to do:

  "workbench.colorCustomizations": {
    "editorGutter.background": "#ffffff",
  },

But that did nothing.

Alt+F8 window

vscode has this error/warning window, you can open it with alt+F8
image

Light theme with a slightly darkened background

How about adding a background like in your code snippets in markdown?
For example:

function thunkify(fn) {
  return function() {
    var args = [].slice.call( arguments );
    return function(cb) {
      args.push( cb );
      return fn.apply( null, args );
    };
  };
}

The pure white color makes eyes more tired.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.