Last active
May 4, 2023 13:03
-
-
Save Vivelin/ece1babb13eb95d7c18700d832fb3262 to your computer and use it in GitHub Desktop.
One Dark GitHub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name One Dark Github | |
@namespace vivelin.net | |
@version 1.0.13 | |
@description Displays code and gists on GitHub using colors from Atom's One Dark theme | |
@author Vivelin | |
@updateURL https://gist.githubusercontent.com/Vivelin/ece1babb13eb95d7c18700d832fb3262/raw/One-Dark-Github.user.css | |
@license unlicense | |
==/UserStyle== */ | |
@-moz-document domain("github.com") { | |
/** | |
* General | |
*/ | |
.markdown-body .highlight pre, | |
.markdown-body pre, | |
.highlight .diff-table, | |
.diff-table tr, | |
table.highlight, | |
.hljs { | |
background-color: #282c34; | |
color: #abb2bf; | |
} | |
.diff-table tr.inline-comments { | |
background-color: white; | |
} | |
code, pre, tt { | |
font-family: monospace; | |
} | |
.markdown-body.comment-body table.highlight tr { | |
background-color: #282c34; | |
} | |
.comment-body .highlight .bg-white { | |
background-color: unset !important; | |
} | |
.blob-code-inner { | |
color: #abb2bf; | |
} | |
.js-line-number, | |
.js-linkable-line-number { | |
color: #5c6370; | |
} | |
.blob-num:hover { | |
color: #7f848e; | |
} | |
.selected-line.blob-num, | |
.selected-line.blob-code, | |
.blob-code-inner.highlighted, | |
.blob-code-inner .highlighted { | |
background-color: #e5c07b44; | |
} | |
/** | |
* Diff | |
*/ | |
.blob-num-hunk, | |
.blob-code-hunk, | |
.blob-num-expandable { | |
background-color: #61afef22; | |
color: #abb2bf; | |
} | |
tr:not(.blob-expanded)+.blob-expanded .blob-code, | |
tr:not(.blob-expanded)+.blob-expanded .blob-num, | |
.blob-expanded+tr:not(.blob-expanded) .blob-code, | |
.blob-expanded+tr:not(.blob-expanded) .blob-num { | |
border-top: 1px solid #181a1f; | |
} | |
.blob-expanded .blob-code, .blob-expanded .blob-num { | |
background-color: #181a1f; | |
} | |
.blob-num-addition, | |
.blob-code-addition, | |
.pl-mi1 /* markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted */ { | |
background-color: #37403D; | |
/* color: #98c379 !important; */ | |
} | |
.blob-code-marker-addition:before { | |
color: #98c379; | |
} | |
.blob-num-deletion, | |
.blob-code-deletion, | |
.pl-md /* markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted */ { | |
background-color: #41343D; | |
/* color: #e06c75 !important; */ | |
} | |
.blob-code-marker-deletion:before { | |
color: #e06c75; | |
} | |
/** | |
* Syntax highlighting colors | |
*/ | |
.pl-c /* comment, punctuation.definition.comment, string.comment */ { | |
color: #5c6370; | |
} | |
.pl-c1 /* constant, entity.name.constant, variable.other.constant, variable.language, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header, meta.output */, | |
.pl-s .pl-v /* string variable */ { | |
color: #d19a66; | |
} | |
.pl-e /* entity */, | |
.pl-en /* entity.name */ { | |
color: #e5c07b; | |
} | |
.pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */, | |
.pl-s .pl-s1 /* string source */ { | |
color: #abb2bf; | |
} | |
.pl-ent /* entity.name.tag, markup.quote */ { | |
color: #e06c75; | |
} | |
.pl-k /* keyword, storage, storage.type */ { | |
color: #c678dd; | |
} | |
.pl-s /* string */, | |
.pl-pds /* punctuation.definition.string, source.regexp, string.regexp.character-class */, | |
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, | |
.pl-sr /* string.regexp */, | |
.pl-sr .pl-cce /* string.regexp constant.character.escape */, | |
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */, | |
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ { | |
color: #98c379; | |
} | |
.pl-v /* variable */, | |
.pl-smw /* sublimelinter.mark.warning */ { | |
color: #d19a66; | |
} | |
.pl-bu /* invalid.broken, invalid.deprecated, invalid.unimplemented, message.error, brackethighlighter.unmatched, sublimelinter.mark.error */ { | |
color: #f44747; | |
} | |
.pl-ii /* invalid.illegal */ { | |
color: #fafbfc; | |
background-color: #f44747; | |
} | |
.pl-c2 /* carriage-return */ { | |
color: #fafbfc; | |
background-color: #f44747; | |
} | |
.pl-c2::before /* carriage-return */ { | |
content: "^M"; | |
} | |
.pl-sr .pl-cce /* string.regexp constant.character.escape */ { | |
font-weight: bold; | |
color: #d19a66; | |
} | |
.pl-ml /* markup.list */ { | |
color: #d19a66; | |
} | |
.pl-mh /* markup.heading */, | |
.pl-mh .pl-en /* markup.heading entity.name */, | |
.pl-ms /* meta.separator */ { | |
font-weight: bold; | |
color: inherit; | |
} | |
.pl-mi /* markup.italic */ { | |
font-style: italic; | |
color: inherit; | |
} | |
.pl-mb /* markup.bold */ { | |
font-weight: bold; | |
color: inherit; | |
} | |
.pl-mc /* markup.changed, punctuation.definition.changed */ { | |
color: #e5c07b; | |
/* background-color: #ffebda; */ | |
} | |
.pl-mi2 /* markup.ignored, markup.untracked */ { | |
/* color: #f6f8fa; | |
background-color: #005cc5; */ | |
} | |
.pl-mdr /* meta.diff.range */ { | |
/* font-weight: bold; | |
color: #6f42c1; */ | |
} | |
.pl-ba /* brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote */ { | |
color: #586069; | |
} | |
.pl-sg /* sublimelinter.gutter-mark */ { | |
color: #959da5; | |
} | |
.pl-corl /* constant.other.reference.link, string.other.link */ { | |
text-decoration: underline; | |
color: #56b6c2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment