From 4693bdbda031e002c8684721e5e7d5036acf0ce0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 8 Sep 2023 18:03:01 +0200 Subject: [PATCH] Chroma color tweaks (#26978) --- web_src/css/chroma/dark.css | 22 ++++++++++++---------- web_src/css/chroma/light.css | 16 +++++++++------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/web_src/css/chroma/dark.css b/web_src/css/chroma/dark.css index 2ac816435c..bfe9d69f73 100644 --- a/web_src/css/chroma/dark.css +++ b/web_src/css/chroma/dark.css @@ -1,3 +1,4 @@ +/* https://github.com/alecthomas/chroma/blob/6428fb4e65f3c1493491571c8a6a8f1add1da822/types.go#L208 */ .chroma .bp { color: #fabd2f; } /* NameBuiltinPseudo */ .chroma .c { color: #777e94; } /* Comment */ .chroma .c1 { color: #777e94; } /* CommentSingle */ @@ -37,7 +38,7 @@ .chroma .mi { color: #649bc4; } /* LiteralNumberInteger */ .chroma .mo { color: #649bc4; } /* LiteralNumberOct */ .chroma .n { color: #c9d1d9; } /* Name */ -.chroma .na { color: #b8bb26; } /* NameAttribute */ +.chroma .na { color: #fabd2f; } /* NameAttribute */ .chroma .nb { color: #fabd2f; } /* NameBuiltin */ .chroma .nc { color: #ffaa10; } /* NameClass */ .chroma .nd { color: #8ec07c; } /* NameDecorator */ @@ -57,18 +58,19 @@ .chroma .s { color: #b8bb26; } /* LiteralString */ .chroma .s1 { color: #b8bb26; } /* LiteralStringSingle */ .chroma .s2 { color: #b8bb26; } /* LiteralStringDouble */ -.chroma .sa { color: #649bc4; } /* LiteralStringAffix */ +.chroma .sa { color: #ffaa10; } /* LiteralStringAffix */ .chroma .sb { color: #b8bb26; } /* LiteralStringBacktick */ -.chroma .sc { color: #649bc4; } /* LiteralStringChar */ -.chroma .sd { color: #777e94; } /* LiteralStringDoc */ -.chroma .se { color: #ff7540; } /* LiteralStringEscape */ -.chroma .sh { color: #649bc4; } /* LiteralStringHeredoc */ +.chroma .sc { color: #ffaa10; } /* LiteralStringChar */ +.chroma .sd { color: #b8bb26; } /* LiteralStringDoc */ +.chroma .se { color: #ff8540; } /* LiteralStringEscape */ +.chroma .sh { color: #b8bb26; } /* LiteralStringHeredoc */ .chroma .si { color: #ffaa10; } /* LiteralStringInterpol */ .chroma .sr { color: #9075cd; } /* LiteralStringRegex */ -.chroma .ss { color: #ff7540; } /* LiteralStringSymbol */ +.chroma .ss { color: #ff8540; } /* LiteralStringSymbol */ .chroma .sx { color: #ffaa10; } /* LiteralStringOther */ -.chroma .vc { color: #ff7540; } /* NameVariableClass */ -.chroma .vg { color: #ffaa10; } /* NameVariableGlobal */ -.chroma .vi { color: #ffaa10; } /* NameVariableInstance */ +.chroma .vc { color: #649bee; } /* NameVariableClass */ +.chroma .vg { color: #649bee; } /* NameVariableGlobal */ +.chroma .vi { color: #649bee; } /* NameVariableInstance */ .chroma .vm {} /* NameVariableMagic */ .chroma .w { color: #7f8699; } /* TextWhitespace */ +.chroma .err {/* not styled because Chroma uses it on too many things like JSX */} /* Error */ diff --git a/web_src/css/chroma/light.css b/web_src/css/chroma/light.css index 4bfce8fe71..c1e4cb3545 100644 --- a/web_src/css/chroma/light.css +++ b/web_src/css/chroma/light.css @@ -1,3 +1,4 @@ +/* https://github.com/alecthomas/chroma/blob/6428fb4e65f3c1493491571c8a6a8f1add1da822/types.go#L208 */ .chroma .bp { color: #999999; } /* NameBuiltinPseudo */ .chroma .c { color: #6a737d; } /* Comment */ .chroma .c1 { color: #6a737d; } /* CommentSingle */ @@ -55,20 +56,21 @@ .chroma .p {} /* Punctuation */ .chroma .py {} /* NameProperty */ .chroma .s { color: #106303; } /* LiteralString */ -.chroma .s1 { color: #cc7a00; } /* LiteralStringSingle */ +.chroma .s1 { color: #106303; } /* LiteralStringSingle */ .chroma .s2 { color: #106303; } /* LiteralStringDouble */ -.chroma .sa { color: #106303; } /* LiteralStringAffix */ +.chroma .sa { color: #cc7a00; } /* LiteralStringAffix */ .chroma .sb { color: #106303; } /* LiteralStringBacktick */ -.chroma .sc { color: #106303; } /* LiteralStringChar */ +.chroma .sc { color: #cc7a00; } /* LiteralStringChar */ .chroma .sd { color: #106303; } /* LiteralStringDoc */ -.chroma .se { color: #106303; } /* LiteralStringEscape */ +.chroma .se { color: #994400; } /* LiteralStringEscape */ .chroma .sh { color: #106303; } /* LiteralStringHeredoc */ -.chroma .si { color: #106303; } /* LiteralStringInterpol */ -.chroma .sr { color: #22863a; } /* LiteralStringRegex */ -.chroma .ss { color: #106303; } /* LiteralStringSymbol */ +.chroma .si { color: #cc7a00; } /* LiteralStringInterpol */ +.chroma .sr { color: #4c4dbc; } /* LiteralStringRegex */ +.chroma .ss { color: #994400; } /* LiteralStringSymbol */ .chroma .sx { color: #106303; } /* LiteralStringOther */ .chroma .vc { color: #008080; } /* NameVariableClass */ .chroma .vg { color: #008080; } /* NameVariableGlobal */ .chroma .vi { color: #008080; } /* NameVariableInstance */ .chroma .vm {} /* NameVariableMagic */ .chroma .w { color: #bbbbbb; } /* TextWhitespace */ +.chroma .err {/* not styled because Chroma uses it on too many things like JSX */} /* Error */