syntax.css 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. @media (prefers-color-scheme: light) {
  2. /* Background */ .bg { color: #272822; }
  3. /* PreWrapper */ .chroma { color: #272822; }
  4. /* Other */ .chroma .x { }
  5. /* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
  6. /* CodeLine */ .chroma .cl { }
  7. /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
  8. /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
  9. /* LineHighlight */ .chroma .hl { background-color: #ffffcc }
  10. /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
  11. /* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
  12. /* Line */ .chroma .line { display: flex; }
  13. /* Keyword */ .chroma .k { color: #00a8c8 }
  14. /* KeywordConstant */ .chroma .kc { color: #00a8c8 }
  15. /* KeywordDeclaration */ .chroma .kd { color: #00a8c8 }
  16. /* KeywordNamespace */ .chroma .kn { color: #f92672 }
  17. /* KeywordPseudo */ .chroma .kp { color: #00a8c8 }
  18. /* KeywordReserved */ .chroma .kr { color: #00a8c8 }
  19. /* KeywordType */ .chroma .kt { color: #00a8c8 }
  20. /* Name */ .chroma .n { color: #111111 }
  21. /* NameAttribute */ .chroma .na { color: #75af00 }
  22. /* NameBuiltin */ .chroma .nb { color: #111111 }
  23. /* NameBuiltinPseudo */ .chroma .bp { color: #111111 }
  24. /* NameClass */ .chroma .nc { color: #75af00 }
  25. /* NameConstant */ .chroma .no { color: #00a8c8 }
  26. /* NameDecorator */ .chroma .nd { color: #75af00 }
  27. /* NameEntity */ .chroma .ni { color: #111111 }
  28. /* NameException */ .chroma .ne { color: #75af00 }
  29. /* NameFunction */ .chroma .nf { color: #75af00 }
  30. /* NameFunctionMagic */ .chroma .fm { color: #111111 }
  31. /* NameLabel */ .chroma .nl { color: #111111 }
  32. /* NameNamespace */ .chroma .nn { color: #111111 }
  33. /* NameOther */ .chroma .nx { color: #75af00 }
  34. /* NameProperty */ .chroma .py { color: #111111 }
  35. /* NameTag */ .chroma .nt { color: #f92672 }
  36. /* NameVariable */ .chroma .nv { color: #111111 }
  37. /* NameVariableClass */ .chroma .vc { color: #111111 }
  38. /* NameVariableGlobal */ .chroma .vg { color: #111111 }
  39. /* NameVariableInstance */ .chroma .vi { color: #111111 }
  40. /* NameVariableMagic */ .chroma .vm { color: #111111 }
  41. /* Literal */ .chroma .l { color: #ae81ff }
  42. /* LiteralDate */ .chroma .ld { color: #d88200 }
  43. /* LiteralString */ .chroma .s { color: #d88200 }
  44. /* LiteralStringAffix */ .chroma .sa { color: #d88200 }
  45. /* LiteralStringBacktick */ .chroma .sb { color: #d88200 }
  46. /* LiteralStringChar */ .chroma .sc { color: #d88200 }
  47. /* LiteralStringDelimiter */ .chroma .dl { color: #d88200 }
  48. /* LiteralStringDoc */ .chroma .sd { color: #d88200 }
  49. /* LiteralStringDouble */ .chroma .s2 { color: #d88200 }
  50. /* LiteralStringEscape */ .chroma .se { color: #8045ff }
  51. /* LiteralStringHeredoc */ .chroma .sh { color: #d88200 }
  52. /* LiteralStringInterpol */ .chroma .si { color: #d88200 }
  53. /* LiteralStringOther */ .chroma .sx { color: #d88200 }
  54. /* LiteralStringRegex */ .chroma .sr { color: #d88200 }
  55. /* LiteralStringSingle */ .chroma .s1 { color: #d88200 }
  56. /* LiteralStringSymbol */ .chroma .ss { color: #d88200 }
  57. /* LiteralNumber */ .chroma .m { color: #ae81ff }
  58. /* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
  59. /* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
  60. /* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
  61. /* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
  62. /* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
  63. /* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
  64. /* Operator */ .chroma .o { color: #f92672 }
  65. /* OperatorWord */ .chroma .ow { color: #f92672 }
  66. /* Punctuation */ .chroma .p { color: #111111 }
  67. /* Comment */ .chroma .c { color: #75715e }
  68. /* CommentHashbang */ .chroma .ch { color: #75715e }
  69. /* CommentMultiline */ .chroma .cm { color: #75715e }
  70. /* CommentSingle */ .chroma .c1 { color: #75715e }
  71. /* CommentSpecial */ .chroma .cs { color: #75715e }
  72. /* CommentPreproc */ .chroma .cp { color: #75715e }
  73. /* CommentPreprocFile */ .chroma .cpf { color: #75715e }
  74. /* Generic */ .chroma .g { }
  75. /* GenericDeleted */ .chroma .gd { }
  76. /* GenericEmph */ .chroma .ge { font-style: italic }
  77. /* GenericError */ .chroma .gr { }
  78. /* GenericHeading */ .chroma .gh { }
  79. /* GenericInserted */ .chroma .gi { }
  80. /* GenericOutput */ .chroma .go { }
  81. /* GenericPrompt */ .chroma .gp { }
  82. /* GenericStrong */ .chroma .gs { font-weight: bold }
  83. /* GenericSubheading */ .chroma .gu { }
  84. /* GenericTraceback */ .chroma .gt { }
  85. /* GenericUnderline */ .chroma .gl { }
  86. /* TextWhitespace */ .chroma .w { }
  87. }
  88. /* use monokai highlight theme in dark */
  89. @media (prefers-color-scheme: dark) {
  90. /* Background */ .bg { color: #f8f8f2; background-color: #272822; }
  91. /* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; }
  92. /* Other */ .chroma .x { }
  93. /* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
  94. /* CodeLine */ .chroma .cl { }
  95. /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
  96. /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
  97. /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
  98. /* LineHighlight */ .chroma .hl { background-color: #ffffcc }
  99. /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
  100. /* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
  101. /* Line */ .chroma .line { display: flex; }
  102. /* Keyword */ .chroma .k { color: #66d9ef }
  103. /* KeywordConstant */ .chroma .kc { color: #66d9ef }
  104. /* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
  105. /* KeywordNamespace */ .chroma .kn { color: #f92672 }
  106. /* KeywordPseudo */ .chroma .kp { color: #66d9ef }
  107. /* KeywordReserved */ .chroma .kr { color: #66d9ef }
  108. /* KeywordType */ .chroma .kt { color: #66d9ef }
  109. /* Name */ .chroma .n { }
  110. /* NameAttribute */ .chroma .na { color: #a6e22e }
  111. /* NameBuiltin */ .chroma .nb { }
  112. /* NameBuiltinPseudo */ .chroma .bp { }
  113. /* NameClass */ .chroma .nc { color: #a6e22e }
  114. /* NameConstant */ .chroma .no { color: #66d9ef }
  115. /* NameDecorator */ .chroma .nd { color: #a6e22e }
  116. /* NameEntity */ .chroma .ni { }
  117. /* NameException */ .chroma .ne { color: #a6e22e }
  118. /* NameFunction */ .chroma .nf { color: #a6e22e }
  119. /* NameFunctionMagic */ .chroma .fm { }
  120. /* NameLabel */ .chroma .nl { }
  121. /* NameNamespace */ .chroma .nn { }
  122. /* NameOther */ .chroma .nx { color: #a6e22e }
  123. /* NameProperty */ .chroma .py { }
  124. /* NameTag */ .chroma .nt { color: #f92672 }
  125. /* NameVariable */ .chroma .nv { }
  126. /* NameVariableClass */ .chroma .vc { }
  127. /* NameVariableGlobal */ .chroma .vg { }
  128. /* NameVariableInstance */ .chroma .vi { }
  129. /* NameVariableMagic */ .chroma .vm { }
  130. /* Literal */ .chroma .l { color: #ae81ff }
  131. /* LiteralDate */ .chroma .ld { color: #e6db74 }
  132. /* LiteralString */ .chroma .s { color: #e6db74 }
  133. /* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
  134. /* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
  135. /* LiteralStringChar */ .chroma .sc { color: #e6db74 }
  136. /* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
  137. /* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
  138. /* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
  139. /* LiteralStringEscape */ .chroma .se { color: #ae81ff }
  140. /* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
  141. /* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
  142. /* LiteralStringOther */ .chroma .sx { color: #e6db74 }
  143. /* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
  144. /* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
  145. /* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
  146. /* LiteralNumber */ .chroma .m { color: #ae81ff }
  147. /* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
  148. /* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
  149. /* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
  150. /* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
  151. /* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
  152. /* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
  153. /* Operator */ .chroma .o { color: #f92672 }
  154. /* OperatorWord */ .chroma .ow { color: #f92672 }
  155. /* Punctuation */ .chroma .p { }
  156. /* Comment */ .chroma .c { color: #75715e }
  157. /* CommentHashbang */ .chroma .ch { color: #75715e }
  158. /* CommentMultiline */ .chroma .cm { color: #75715e }
  159. /* CommentSingle */ .chroma .c1 { color: #75715e }
  160. /* CommentSpecial */ .chroma .cs { color: #75715e }
  161. /* CommentPreproc */ .chroma .cp { color: #75715e }
  162. /* CommentPreprocFile */ .chroma .cpf { color: #75715e }
  163. /* Generic */ .chroma .g { }
  164. /* GenericDeleted */ .chroma .gd { color: #f92672 }
  165. /* GenericEmph */ .chroma .ge { font-style: italic }
  166. /* GenericError */ .chroma .gr { }
  167. /* GenericHeading */ .chroma .gh { }
  168. /* GenericInserted */ .chroma .gi { color: #a6e22e }
  169. /* GenericOutput */ .chroma .go { }
  170. /* GenericPrompt */ .chroma .gp { }
  171. /* GenericStrong */ .chroma .gs { font-weight: bold }
  172. /* GenericSubheading */ .chroma .gu { color: #75715e }
  173. /* GenericTraceback */ .chroma .gt { }
  174. /* GenericUnderline */ .chroma .gl { }
  175. /* TextWhitespace */ .chroma .w { }
  176. }