StylishThemes / GitHub-Dark

:octocat: Dark GitHub style
https://raw.githubusercontent.com/StylishThemes/GitHub-Dark/master/github-dark.user.css
BSD 2-Clause "Simplified" License
9.65k stars 654 forks source link

Theme request: Monokai - Spacegray Eighties #425

Closed torrentails closed 8 years ago

torrentails commented 8 years ago

Unstyled Content

Monokai - Spacegray Eighties theme from Sublime Text.
The Monokai theme already available is nice, but the background colour is ugly and some of the syntax highlighting isn't quite the same colour and it's bugging me.

https://github.com/pyoio/monokai-spacegray

Mottie commented 8 years ago

Hi @torrentails!

We would love to be able to easily add new themes, but GitHub is using "prettylights" as their syntax highlighter, which hasn't been publicly released. It is pretty much impossible to find themes for it.

The themes we have were all hand-crafted to the best of our ability. They aren't perfect, because prettylights wraps code it find relevant a lot differently from other syntax highlighters.

It would help us greatly if you would assist in creating this theme. There are actually three different syntax highlighters on GitHub:

  1. GitHub (prettylights)

    This GitHub style would need to be hand crafted.

    We do have a _template.css file which can be modified. It contains relatively accurate comments for each entry (it's changed several times).

    Or, use the github-syntax-theme-generator created by GitHub. It is set up by defining a JSON file with color definitions; but I have yet to get it to work for me.

  2. CodeMirror (editor)

    A CodeMirror style might be converted from the tmtheme using either of these converters (I have yet to attempt it): https://github.com/codio/tmthemeConverter or https://github.com/dignifiedquire/tmthemeConverter

  3. Pygments (used by Jupyter pages).

    Converting the tmTheme you share into a pygments style wouldn't be difficult, using the pygments-from-tmtheme script for python listed on this page.

As a last resort, each of these styles have a _template.css in their respective directories which can be modified if the above methods don't work.

torrentails commented 8 years ago

I'll have a look at getting this done myself a bit latter today then.

Mottie commented 8 years ago

Thanks again for all your help!

torrentails commented 8 years ago

No worries, glad I could help.