forked from gitea/gitea
1
0
Fork 0

Improve arc-green code colors (#12111)

* Improve arc-green code colors

This should fix all previous colors that had too few contrast on the
background. I took solarized-dark as a baseline and did various
improvments. I removed bold/italic flags because I don't think they
fit and generally other tools also don't use those font flags.

* diff tweak
This commit is contained in:
silverwind 2020-07-01 20:15:59 +02:00 committed by GitHub
parent 858c35b731
commit eea25f8d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 72 deletions

View File

@ -221,7 +221,6 @@
/* LiteralStringRegex */ /* LiteralStringRegex */
.chroma .sr { .chroma .sr {
font-weight: bold;
color: #22863a; color: #22863a;
} }
/* LiteralStringSingle */ /* LiteralStringSingle */
@ -303,7 +302,6 @@
.chroma .cs { .chroma .cs {
color: #999999; color: #999999;
font-style: italic;
} }
/* CommentPreproc */ /* CommentPreproc */
@ -325,7 +323,6 @@
.chroma .ge { .chroma .ge {
color: #000000; color: #000000;
font-style: italic;
} }
/* GenericError */ /* GenericError */

View File

@ -46,99 +46,92 @@
/* Keyword */ /* Keyword */
.chroma .k { .chroma .k {
color: #9daccc; color: #f63;
font-weight: bold;
} }
/* KeywordConstant */ /* KeywordConstant */
.chroma .kc { .chroma .kc {
color: #9daccc; color: #fa1;
font-weight: bold;
} }
/* KeywordDeclaration */ /* KeywordDeclaration */
.chroma .kd { .chroma .kd {
color: #9daccc; color: #9daccc;
font-weight: bold;
} }
/* KeywordNamespace */ /* KeywordNamespace */
.chroma .kn { .chroma .kn {
color: #9daccc; color: #fa1;
font-weight: bold;
} }
/* KeywordPseudo */ /* KeywordPseudo */
.chroma .kp { .chroma .kp {
color: #9daccc; color: #5f8700;
font-weight: bold;
} }
/* KeywordReserved */ /* KeywordReserved */
.chroma .kr { .chroma .kr {
color: #9daccc; color: #f63;
font-weight: bold;
} }
/* KeywordType */ /* KeywordType */
.chroma .kt { .chroma .kt {
color: #9daccc; color: #9daccc;
font-weight: bold;
} }
/* NameAttribute */ /* NameAttribute */
.chroma .na { .chroma .na {
color: #8ff; color: #8a8a8a;
} }
/* NameBuiltin */ /* NameBuiltin */
.chroma .nb { .chroma .nb {
color: #e0c46c; color: #9daccc;
} }
/* NameBuiltinPseudo */ /* NameBuiltinPseudo */
.chroma .bp { .chroma .bp {
color: #999999; color: #9daccc;
} }
/* NameClass */ /* NameClass */
.chroma .nc { .chroma .nc {
color: #445588; color: #fa1;
} }
/* NameConstant */ /* NameConstant */
.chroma .no { .chroma .no {
color: #8ff; color: #fa1;
} }
/* NameDecorator */ /* NameDecorator */
.chroma .nd { .chroma .nd {
color: #3c5d5d; color: #9daccc;
} }
/* NameEntity */ /* NameEntity */
.chroma .ni { .chroma .ni {
color: #f8f; color: #fa1;
} }
/* NameException */ /* NameException */
.chroma .ne { .chroma .ne {
color: #f88; color: #af8700;
} }
/* NameFunction */ /* NameFunction */
.chroma .nf { .chroma .nf {
color: #986c88; color: #9daccc;
} }
/* NameLabel */ /* NameLabel */
.chroma .nl { .chroma .nl {
color: #f88; color: #fa1;
} }
/* NameNamespace */ /* NameNamespace */
.chroma .nn { .chroma .nn {
color: #555555; color: #fa1;
} }
/* NameOther */ /* NameOther */
@ -148,206 +141,204 @@
/* NameTag */ /* NameTag */
.chroma .nt { .chroma .nt {
color: #88f; color: #9daccc;
} }
/* NameVariable */ /* NameVariable */
.chroma .nv { .chroma .nv {
color: #cb7832; color: #9daccc;
} }
/* NameVariableClass */ /* NameVariableClass */
.chroma .vc { .chroma .vc {
color: #cb7832; color: #f81;
} }
/* NameVariableGlobal */ /* NameVariableGlobal */
.chroma .vg { .chroma .vg {
color: #cb7832; color: #fa1;
} }
/* NameVariableInstance */ /* NameVariableInstance */
.chroma .vi { .chroma .vi {
color: #cb7832; color: #fa1;
} }
/* LiteralString */ /* LiteralString */
.chroma .s { .chroma .s {
color: #8ab398; color: #1af;
} }
/* LiteralStringAffix */ /* LiteralStringAffix */
.chroma .sa { .chroma .sa {
color: #8ab398; color: #1af;
} }
/* LiteralStringBacktick */ /* LiteralStringBacktick */
.chroma .sb { .chroma .sb {
color: #8ab398; color: #a0cc75;
} }
/* LiteralStringChar */ /* LiteralStringChar */
.chroma .sc { .chroma .sc {
color: #8ab398; color: #1af;
} }
/* LiteralStringDelimiter */ /* LiteralStringDelimiter */
.chroma .dl { .chroma .dl {
color: #8ab398; color: #1af;
} }
/* LiteralStringDoc */ /* LiteralStringDoc */
.chroma .sd { .chroma .sd {
color: #8ab398; color: #6a737d;
} }
/* LiteralStringDouble */ /* LiteralStringDouble */
.chroma .s2 { .chroma .s2 {
color: #8ab398; color: #a0cc75;
} }
/* LiteralStringEscape */ /* LiteralStringEscape */
.chroma .se { .chroma .se {
color: #8ab398; color: #f63;
} }
/* LiteralStringHeredoc */ /* LiteralStringHeredoc */
.chroma .sh { .chroma .sh {
color: #8ab398; color: #1af;
} }
/* LiteralStringInterpol */ /* LiteralStringInterpol */
.chroma .si { .chroma .si {
color: #8ab398; color: #fa1;
} }
/* LiteralStringOther */ /* LiteralStringOther */
.chroma .sx { .chroma .sx {
color: #8ab398; color: #fa1;
} }
/* LiteralStringRegex */ /* LiteralStringRegex */
.chroma .sr { .chroma .sr {
color: #6896ba; color: #97c;
} }
/* LiteralStringSingle */ /* LiteralStringSingle */
.chroma .s1 { .chroma .s1 {
color: #8ab398; color: #a0cc75;
} }
/* LiteralStringSymbol */ /* LiteralStringSymbol */
.chroma .ss { .chroma .ss {
color: #6896ba; color: #fa1;
} }
/* LiteralNumber */ /* LiteralNumber */
.chroma .m { .chroma .m {
color: #6896ba; color: #1af;
} }
/* LiteralNumberBin */ /* LiteralNumberBin */
.chroma .mb { .chroma .mb {
color: #6896ba; color: #1af;
} }
/* LiteralNumberFloat */ /* LiteralNumberFloat */
.chroma .mf { .chroma .mf {
color: #6896ba; color: #1af;
} }
/* LiteralNumberHex */ /* LiteralNumberHex */
.chroma .mh { .chroma .mh {
color: #6896ba; color: #1af;
} }
/* LiteralNumberInteger */ /* LiteralNumberInteger */
.chroma .mi { .chroma .mi {
color: #6896ba; color: #1af;
} }
/* LiteralNumberIntegerLong */ /* LiteralNumberIntegerLong */
.chroma .il { .chroma .il {
color: #6896ba; color: #1af;
} }
/* LiteralNumberOct */ /* LiteralNumberOct */
.chroma .mo { .chroma .mo {
color: #6896ba; color: #1af;
} }
/* Operator */ /* Operator */
.chroma .o { .chroma .o {
color: #9daccc; color: #f63;
} }
/* OperatorWord */ /* OperatorWord */
.chroma .ow { .chroma .ow {
color: #9daccc; color: #5f8700;
} }
/* Comment */ /* Comment */
.chroma .c { .chroma .c {
color: #7f7f7f; color: #6a737d;
} }
/* CommentHashbang */ /* CommentHashbang */
.chroma .ch { .chroma .ch {
color: #7f7f7f; color: #6a737d;
} }
/* CommentMultiline */ /* CommentMultiline */
.chroma .cm { .chroma .cm {
color: #7f7f7f; color: #6a737d;
} }
/* CommentSingle */ /* CommentSingle */
.chroma .c1 { .chroma .c1 {
color: #7f7f7f; color: #6a737d;
} }
/* CommentSpecial */ /* CommentSpecial */
.chroma .cs { .chroma .cs {
color: #7f7f7f; color: #637d;
font-style: italic;
} }
/* CommentPreproc */ /* CommentPreproc */
.chroma .cp { .chroma .cp {
color: #7f7f7f; color: #fc6;
} }
/* CommentPreprocFile */ /* CommentPreprocFile */
.chroma .cpf { .chroma .cpf {
color: #7f7f7f; color: #fc6;
} }
/* GenericDeleted */ /* GenericDeleted */
.chroma .gd { .chroma .gd {
color: #9e9e9e; color: #fff;
background-color: #ffdddd; background-color: #5f3737;
} }
/* GenericEmph */ /* GenericEmph */
.chroma .ge { .chroma .ge {
color: #9e9e9e;
font-style: italic; font-style: italic;
} }
/* GenericError */ /* GenericError */
.chroma .gr { .chroma .gr {
color: #aa0000; color: #f33;
} }
/* GenericHeading */ /* GenericHeading */
.chroma .gh { .chroma .gh {
color: #999999; color: #fa1;
} }
/* GenericInserted */ /* GenericInserted */
.chroma .gi { .chroma .gi {
color: #9e9e9e; color: #fff;
background-color: #ddffdd; background-color: #3a523a;
} }
/* GenericOutput */ /* GenericOutput */
@ -362,18 +353,17 @@
/* GenericStrong */ /* GenericStrong */
.chroma .gs { .chroma .gs {
color: #a8a8a2;
font-weight: bold; font-weight: bold;
} }
/* GenericSubheading */ /* GenericSubheading */
.chroma .gu { .chroma .gu {
color: #888; color: #9daccc;
} }
/* GenericTraceback */ /* GenericTraceback */
.chroma .gt { .chroma .gt {
color: #aa0000; color: #f63;
} }
/* GenericUnderline */ /* GenericUnderline */