Last active
December 3, 2023 15:40
-
-
Save HangX-Ma/20d155a196efacf565e86467094aba1e to your computer and use it in GitHub Desktop.
This is a code highlighting style for Jekyll and Pygments inspired by Atom's One Dark theme.
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
// onedark vivid | |
$highlight-chalky : #e5c07b; | |
$highlight-coral : #ef596f; | |
$highlight-dark : #5c6370; | |
$highlight-error : #f44747; | |
$highlight-fountainBlue : #2bbac5; | |
$highlight-green : #89ca78; | |
$highlight-invalid : #ffffff; | |
$highlight-lightDark : #7f848e; | |
$highlight-lightWhite : #abb2bf; | |
$highlight-malibu : #61afef; | |
$highlight-purple : #d55fde; | |
$highlight-whiskey : #d19a66; | |
$highlight-deepRed : #be5046; | |
$highlight-background : #282c34; | |
/** | |
* Syntax highlighting styles inspired by Atom's One Dark theme | |
*/ | |
.highlight > pre { | |
background: $highlight-background; //DONE | |
.lineno { color: $highlight-lightWhite;} | |
.c { color: #667689; font-style: italic } // Comment | |
.err { color: $highlight-error; background-color: #e3d2d2 } // Error | |
.k { font-weight: bold } // Keyword | |
.o { font-weight: bold } // Operator | |
.cm { color: #667689; font-style: italic } // Comment.Multiline | |
.cp { color: #ABB2BF; } // Comment.Preproc | |
.c1 { color: #667689; font-style: italic } // Comment.Single | |
.cs { color: #667689; font-weight: bold; font-style: italic } // Comment.Special | |
.gd { color: #000; background-color: #fdd } // Generic.Deleted | |
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific | |
.ge { font-style: italic } // Generic.Emph | |
.gr { color: #a00 } // Generic.Error | |
.gh { color: #999 } // Generic.Heading | |
.gi { color: #000; background-color: #dfd } // Generic.Inserted | |
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific | |
.go { color: #888 } // Generic.Output | |
.gp { color: $highlight-lightDark; } // Generic.Prompt | |
.gs { font-weight: bold } // Generic.Strong | |
.gu { color: #aaa } // Generic.Subheading | |
.gt { color: #a00 } // Generic.Traceback | |
.k { color: $highlight-purple; font-weight: normal;} | |
.kc { color: $highlight-purple; font-weight: bold } // Keyword.Constant | |
.kd { color: #C678DD; } // Keyword.Declaration | |
.kp { font-weight: bold } // Keyword.Pseudo | |
.kr { color: #C678DD; } // Keyword.Reserved | |
.kt { color: $highlight-purple; font-weight: bold } // Keyword.Type | |
.m { color: $highlight-whiskey } // Literal.Number | |
.p { color: #ABB2BF;} | |
.s { color: $highlight-green } // Literal.String | |
.na { color: $highlight-chalky; } // Name.Attribute | |
.nb { color: $highlight-whiskey; } // Name.Builtin | |
.nc { color: $highlight-chalky; } // Name.Class | |
.no { color: $highlight-fountainBlue } // Name.Constant | |
.ni { color: $highlight-purple } // Name.Entity | |
.ne { color: $highlight-malibu; font-weight: bold } // Name.Exception | |
.nf { color: $highlight-malibu; } // Name.Function | |
.nn { color: $highlight-lightDark; } // Name.Namespace | |
.nt { color: #D86C74 } // Name.Tag | |
.nv { color: $highlight-fountainBlue } // Name.Variable | |
.nx { color: $highlight-lightWhite;} | |
.ow { font-weight: bold } // Operator.Word | |
.w { color: #bbb } // Text.Whitespace | |
.mf { color: $highlight-whiskey } // Literal.Number.Float | |
.mh { color: $highlight-fountainBlue } // Literal.Number.Hex | |
.mi { color: $highlight-whiskey } // Literal.Number.Integer | |
.mo { color: $highlight-whiskey } // Literal.Number.Oct | |
.sb { color: $highlight-coral } // Literal.String.Backtick | |
.sc { color: $highlight-coral } // Literal.String.Char | |
.sd { color: $highlight-coral } // Literal.String.Doc | |
.s2 { color: $highlight-green; } // Literal.String.Double | |
.se { color: $highlight-coral } // Literal.String.Escape | |
.sh { color: $highlight-coral } // Literal.String.Heredoc | |
.si { color: $highlight-coral } // Literal.String.Interpol | |
.sx { color: $highlight-coral } // Literal.String.Other | |
.sr { color: #009926 } // Literal.String.Regex | |
.s1 { color: $highlight-green; } // Literal.String.Single | |
.ss { color: $highlight-purple } // Literal.String.Symbol | |
.bp { color: #999 } // Name.Builtin.Pseudo | |
.vc { color: $highlight-fountainBlue } // Name.Variable.Class | |
.vg { color: $highlight-fountainBlue } // Name.Variable.Global | |
.vi { color: $highlight-fountainBlue } // Name.Variable.Instance | |
.il { color: $highlight-whiskey } // Literal.Number.Integer.Long | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment