| - |
:root[data-theme="dark"] .highlight .nl { color: var(--color-yellow) }
|
| - |
:root[data-theme="dark"] .highlight .s2 { color: var(--color-fg-highlight-secondary) }
|
| - |
|
| - |
.highlight .nl { color: var(--color-fg-contrast) }
|
| - |
.highlight .s2 { color: var(--color-fg-highlight-secondary) }
|
| - |
|
| |
/* .highlight pre { background-color: #272822; } */
|
| |
.highlight .hll { background-color: #272822; }
|
| - |
.highlight .c { color: #75715e } /* Comment */
|
| - |
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
|
| - |
.highlight .k { color: #66d9ef } /* Keyword */
|
| - |
.highlight .l { color: #ae81ff } /* Literal */
|
| - |
.highlight .n { color: #f8f8f2 } /* Name */
|
| - |
.highlight .o { color: #f92672 } /* Operator */
|
| - |
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
| - |
.highlight .cm { color: #75715e } /* Comment.Multiline */
|
| - |
.highlight .cp { color: #75715e } /* Comment.Preproc */
|
| - |
.highlight .c1 { color: #75715e } /* Comment.Single */
|
| - |
.highlight .cs { color: #75715e } /* Comment.Special */
|
| + |
.highlight .c { color: light-dark(#6a737d, #75715e) } /* Comment */
|
| + |
.highlight .err { color: light-dark(#cb2431, #960050); background-color: light-dark(#ffeaea, #1e0010) } /* Error */
|
| + |
.highlight .k { color: light-dark(#d73a49, #66d9ef) } /* Keyword */
|
| + |
.highlight .l { color: light-dark(#005cc5, #ae81ff) } /* Literal */
|
| + |
.highlight .n { color: light-dark(#24292e, #f8f8f2) } /* Name */
|
| + |
.highlight .o { color: light-dark(#d73a49, #f92672) } /* Operator */
|
| + |
.highlight .p { color: light-dark(#24292e, #f8f8f2) } /* Punctuation */
|
| + |
.highlight .cm { color: light-dark(#6a737d, #75715e) } /* Comment.Multiline */
|
| + |
.highlight .cp { color: light-dark(#d73a49, #75715e) } /* Comment.Preproc */
|
| + |
.highlight .c1 { color: light-dark(#6a737d, #75715e) } /* Comment.Single */
|
| + |
.highlight .cs { color: light-dark(#6a737d, #75715e); font-weight: light-dark(bold, inherit) } /* Comment.Special */
|
| |
.highlight .ge { font-style: italic } /* Generic.Emph */
|
| |
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
| - |
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
|
| - |
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
|
| - |
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
|
| - |
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
|
| - |
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
|
| - |
.highlight .kt { color: #66d9ef } /* Keyword.Type */
|
| - |
.highlight .ld { color: #e6db74 } /* Literal.Date */
|
| - |
.highlight .m { color: #ae81ff } /* Literal.Number */
|
| - |
.highlight .s { color: #e6db74 } /* Literal.String */
|
| - |
.highlight .na { color: #a6e22e } /* Name.Attribute */
|
| - |
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
|
| - |
.highlight .nc { color: #a6e22e } /* Name.Class */
|
| - |
.highlight .no { color: #66d9ef } /* Name.Constant */
|
| - |
.highlight .nd { color: #a6e22e } /* Name.Decorator */
|
| - |
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
| - |
.highlight .ne { color: #a6e22e } /* Name.Exception */
|
| - |
.highlight .nf { color: #a6e22e } /* Name.Function */
|
| - |
.highlight .nl { color: #f8f8f2 } /* Name.Label */
|
| - |
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
| - |
.highlight .nx { color: #a6e22e } /* Name.Other */
|
| - |
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
| - |
.highlight .nt { color: #f92672 } /* Name.Tag */
|
| - |
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
|
| - |
.highlight .ow { color: #f92672 } /* Operator.Word */
|
| - |
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
| - |
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
|
| - |
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
|
| - |
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
|
| - |
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
|
| - |
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
|
| - |
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
|
| - |
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
|
| - |
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
|
| - |
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
|
| - |
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
|
| - |
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
|
| - |
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
|
| - |
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
|
| - |
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
|
| - |
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
|
| - |
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
|
| - |
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
|
| - |
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
|
| - |
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
|
| - |
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
| - |
|
| - |
.highlight .gh { } /* Generic Heading & Diff Header */
|
| - |
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
|
| - |
.highlight .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */
|
| - |
.highlight .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */
|
| - |
|
| - |
/* Light Mode */
|
| - |
|
| - |
/* Light mode syntax highlighting improvements */
|
| - |
:root:not([data-theme="dark"]) .highlight {
|
| - |
/* Base text and background */
|
| - |
.c { color: #6a737d; } /* Comment - GitHub style gray */
|
| - |
.err { color: #cb2431; background-color: #ffeaea; } /* Error */
|
| - |
.k { color: #d73a49; } /* Keyword - GitHub red */
|
| - |
.l { color: #005cc5; } /* Literal - GitHub blue */
|
| - |
.n { color: #24292e; } /* Name - dark gray */
|
| - |
.o { color: #d73a49; } /* Operator - GitHub red */
|
| - |
.p { color: #24292e; } /* Punctuation - dark gray */
|
| - |
|
| - |
/* Comments */
|
| - |
.cm { color: #6a737d; } /* Comment.Multiline */
|
| - |
.cp { color: #d73a49; } /* Comment.Preproc - red for preprocessor */
|
| - |
.c1 { color: #6a737d; } /* Comment.Single */
|
| - |
.cs { color: #6a737d; font-weight: bold; } /* Comment.Special */
|
| - |
|
| - |
/* Keywords */
|
| - |
.kc { color: #005cc5; } /* Keyword.Constant - blue */
|
| - |
.kd { color: #d73a49; } /* Keyword.Declaration - red */
|
| - |
.kn { color: #d73a49; } /* Keyword.Namespace - red */
|
| - |
.kp { color: #005cc5; } /* Keyword.Pseudo - blue */
|
| - |
.kr { color: #d73a49; } /* Keyword.Reserved - red */
|
| - |
.kt { color: #d73a49; } /* Keyword.Type - red */
|
| - |
|
| - |
/* Literals */
|
| - |
.ld { color: #032f62; } /* Literal.Date - dark blue */
|
| - |
.m { color: #005cc5; } /* Literal.Number - blue */
|
| - |
.s { color: #032f62; } /* Literal.String - dark blue */
|
| - |
|
| - |
/* Names */
|
| - |
.na { color: #e36209; } /* Name.Attribute - orange */
|
| - |
.nb { color: #005cc5; } /* Name.Builtin - blue */
|
| - |
.nc { color: #6f42c1; } /* Name.Class - purple */
|
| - |
.no { color: #005cc5; } /* Name.Constant - blue */
|
| - |
.nd { color: #6f42c1; } /* Name.Decorator - purple */
|
| - |
.ni { color: #24292e; } /* Name.Entity - dark gray */
|
| - |
.ne { color: #6f42c1; } /* Name.Exception - purple */
|
| - |
.nf { color: #6f42c1; } /* Name.Function - purple */
|
| - |
.nl { color: #24292e; } /* Name.Label - dark gray */
|
| - |
.nn { color: #24292e; } /* Name.Namespace - dark gray */
|
| - |
.nx { color: #6f42c1; } /* Name.Other - purple */
|
| - |
.py { color: #24292e; } /* Name.Property - dark gray */
|
| - |
.nt { color: #22863a; } /* Name.Tag - green */
|
| - |
.nv { color: #e36209; } /* Name.Variable - orange */
|
| - |
|
| - |
/* Operators */
|
| - |
.ow { color: #d73a49; } /* Operator.Word - red */
|
| - |
.w { color: #24292e; } /* Text.Whitespace - dark gray */
|
| - |
|
| - |
/* Numbers */
|
| - |
.mf { color: #005cc5; } /* Literal.Number.Float - blue */
|
| - |
.mh { color: #005cc5; } /* Literal.Number.Hex - blue */
|
| - |
.mi { color: #005cc5; } /* Literal.Number.Integer - blue */
|
| - |
.mo { color: #005cc5; } /* Literal.Number.Oct - blue */
|
| - |
|
| - |
/* Strings */
|
| - |
.sb { color: #032f62; } /* Literal.String.Backtick - dark blue */
|
| - |
.sc { color: #032f62; } /* Literal.String.Char - dark blue */
|
| - |
.sd { color: #6a737d; } /* Literal.String.Doc - gray */
|
| - |
.s2 { color: #032f62; } /* Literal.String.Double - dark blue */
|
| - |
.se { color: #e36209; } /* Literal.String.Escape - orange */
|
| - |
.sh { color: #032f62; } /* Literal.String.Heredoc - dark blue */
|
| - |
.si { color: #e36209; } /* Literal.String.Interpol - orange */
|
| - |
.sx { color: #032f62; } /* Literal.String.Other - dark blue */
|
| - |
.sr { color: #22863a; } /* Literal.String.Regex - green */
|
| - |
.s1 { color: #032f62; } /* Literal.String.Single - dark blue */
|
| - |
.ss { color: #005cc5; } /* Literal.String.Symbol - blue */
|
| - |
|
| - |
/* Variables */
|
| - |
.bp { color: #005cc5; } /* Name.Builtin.Pseudo - blue */
|
| - |
.vc { color: #e36209; } /* Name.Variable.Class - orange */
|
| - |
.vg { color: #e36209; } /* Name.Variable.Global - orange */
|
| - |
.vi { color: #e36209; } /* Name.Variable.Instance - orange */
|
| - |
.il { color: #005cc5; } /* Literal.Number.Integer.Long - blue */
|
| + |
.highlight .kc { color: light-dark(#005cc5, #66d9ef) } /* Keyword.Constant */
|
| + |
.highlight .kd { color: light-dark(#d73a49, #66d9ef) } /* Keyword.Declaration */
|
| + |
.highlight .kn { color: light-dark(#d73a49, #f92672) } /* Keyword.Namespace */
|
| + |
.highlight .kp { color: light-dark(#005cc5, #66d9ef) } /* Keyword.Pseudo */
|
| + |
.highlight .kr { color: light-dark(#d73a49, #66d9ef) } /* Keyword.Reserved */
|
| + |
.highlight .kt { color: light-dark(#d73a49, #66d9ef) } /* Keyword.Type */
|
| + |
.highlight .ld { color: light-dark(#032f62, #e6db74) } /* Literal.Date */
|
| + |
.highlight .m { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number */
|
| + |
.highlight .s { color: light-dark(#032f62, #e6db74) } /* Literal.String */
|
| + |
.highlight .na { color: light-dark(#e36209, #a6e22e) } /* Name.Attribute */
|
| + |
.highlight .nb { color: light-dark(#005cc5, #f8f8f2) } /* Name.Builtin */
|
| + |
.highlight .nc { color: light-dark(#6f42c1, #a6e22e) } /* Name.Class */
|
| + |
.highlight .no { color: light-dark(#005cc5, #66d9ef) } /* Name.Constant */
|
| + |
.highlight .nd { color: light-dark(#6f42c1, #a6e22e) } /* Name.Decorator */
|
| + |
.highlight .ni { color: light-dark(#24292e, #f8f8f2) } /* Name.Entity */
|
| + |
.highlight .ne { color: light-dark(#6f42c1, #a6e22e) } /* Name.Exception */
|
| + |
.highlight .nf { color: light-dark(#6f42c1, #a6e22e) } /* Name.Function */
|
| + |
.highlight .nl { color: light-dark(#24292e, #f8f8f2) } /* Name.Label */
|
| + |
.highlight .nn { color: light-dark(#24292e, #f8f8f2) } /* Name.Namespace */
|
| + |
.highlight .nx { color: light-dark(#6f42c1, #a6e22e) } /* Name.Other */
|
| + |
.highlight .py { color: light-dark(#24292e, #f8f8f2) } /* Name.Property */
|
| + |
.highlight .nt { color: light-dark(#22863a, #f92672) } /* Name.Tag */
|
| + |
.highlight .nv { color: light-dark(#e36209, #f8f8f2) } /* Name.Variable */
|
| + |
.highlight .ow { color: light-dark(#d73a49, #f92672) } /* Operator.Word */
|
| + |
.highlight .w { color: light-dark(#24292e, #f8f8f2) } /* Text.Whitespace */
|
| + |
.highlight .mf { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number.Float */
|
| + |
.highlight .mh { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number.Hex */
|
| + |
.highlight .mi { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number.Integer */
|
| + |
.highlight .mo { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number.Oct */
|
| + |
.highlight .sb { color: light-dark(#032f62, #e6db74) } /* Literal.String.Backtick */
|
| + |
.highlight .sc { color: light-dark(#032f62, #e6db74) } /* Literal.String.Char */
|
| + |
.highlight .sd { color: light-dark(#6a737d, #e6db74) } /* Literal.String.Doc */
|
| + |
.highlight .s2 { color: light-dark(#032f62, #e6db74) } /* Literal.String.Double */
|
| + |
.highlight .se { color: light-dark(#e36209, #ae81ff) } /* Literal.String.Escape */
|
| + |
.highlight .sh { color: light-dark(#032f62, #e6db74) } /* Literal.String.Heredoc */
|
| + |
.highlight .si { color: light-dark(#e36209, #e6db74) } /* Literal.String.Interpol */
|
| + |
.highlight .sx { color: light-dark(#032f62, #e6db74) } /* Literal.String.Other */
|
| + |
.highlight .sr { color: light-dark(#22863a, #e6db74) } /* Literal.String.Regex */
|
| + |
.highlight .s1 { color: light-dark(#032f62, #e6db74) } /* Literal.String.Single */
|
| + |
.highlight .ss { color: light-dark(#005cc5, #e6db74) } /* Literal.String.Symbol */
|
| + |
.highlight .bp { color: light-dark(#005cc5, #f8f8f2) } /* Name.Builtin.Pseudo */
|
| + |
.highlight .vc { color: light-dark(#e36209, #f8f8f2) } /* Name.Variable.Class */
|
| + |
.highlight .vg { color: light-dark(#e36209, #f8f8f2) } /* Name.Variable.Global */
|
| + |
.highlight .vi { color: light-dark(#e36209, #f8f8f2) } /* Name.Variable.Instance */
|
| + |
.highlight .il { color: light-dark(#005cc5, #ae81ff) } /* Literal.Number.Integer.Long */
|
| |
|
| - |
/* Diff colors */
|
| - |
.gh { color: #24292e; font-weight: bold; } /* Generic Heading */
|
| - |
.gu { color: #6a737d; } /* Generic.Subheading */
|
| - |
.gd { color: #cb2431; background-color: #ffeaea; } /* Generic.Deleted */
|
| - |
.gi { color: #22863a; background-color: #f0fff4; } /* Generic.Inserted */
|
| - |
}
|
| + |
.highlight .gh { color: light-dark(#24292e, inherit) } /* Generic Heading & Diff Header */
|
| + |
.highlight .gu { color: light-dark(#6a737d, #75715e); } /* Generic.Subheading & Diff Unified/Comment? */
|
| + |
.highlight .gd { color: light-dark(#cb2431, #f92672); background-color: light-dark(#ffeaea, transparent) } /* Generic.Deleted & Diff Deleted */
|
| + |
.highlight .gi { color: light-dark(#22863a, #a6e22e); background-color: light-dark(#f0fff4, transparent) } /* Generic.Inserted & Diff Inserted */
|