ace-porter-theme.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. import ace from 'ace-builds/src-noconflict/ace';
  2. ace["define"](
  3. "ace/theme/porter",
  4. ["require", "exports", "module", "ace/lib/dom"],
  5. (acequire, exports) => {
  6. exports.isDark = true;
  7. exports.cssClass = "ace-porter";
  8. exports.cssText = `.ace-porter, div.ace_content, div.ace_line, div.ace_gutter-cell {\
  9. font-family: monospace;
  10. font-size: 14px;
  11. }
  12. .ace-porter {
  13. background-color: #1b1d26;
  14. }
  15. .ace-porter .ace_gutter {
  16. background: #1b1d26;
  17. color: #929292
  18. }
  19. .ace-porter .ace_print-margin {
  20. width: 1px;
  21. background: #1b1d26
  22. }
  23. .ace-porter .ace_cursor {
  24. color: #bfc7d5
  25. }
  26. .ace-porter .ace_marker-layer .ace_selection {
  27. background: #32374D
  28. }
  29. .ace-porter.ace_multiselect .ace_selection.ace_start {
  30. box-shadow: 0 0 3px 0px #191919;
  31. }
  32. .ace-porter .ace_marker-layer .ace_step {
  33. background: rgb(102, 82, 0)
  34. }
  35. .ace-porter .ace_marker-layer .ace_bracket {
  36. margin: -1px 0 0 -1px;
  37. border: 1px solid #BFBFBF
  38. }
  39. .ace-porter .ace_marker-layer .ace_active-line {
  40. background: rgba(215, 215, 215, 0.031)
  41. }
  42. .ace-porter .ace_gutter-active-line {
  43. background-color: rgba(215, 215, 215, 0.031)
  44. }
  45. .ace-porter .ace_marker-layer .ace_selected-word {
  46. border: 1px solid #424242
  47. }
  48. .ace-porter .ace_invisible {
  49. color: #343434
  50. }
  51. .ace-porter .ace_keyword,
  52. .ace-porter .ace_meta,
  53. .ace-porter .ace_storage,
  54. .ace-porter .ace_storage.ace_type,
  55. .ace-porter .ace_support.ace_type {
  56. color: #ff5572
  57. }
  58. .ace-porter .ace_keyword.ace_operator {
  59. color: #ff5572
  60. }
  61. .ace-porter .ace_constant.ace_character,
  62. .ace-porter .ace_constant.ace_language,
  63. .ace-porter .ace_constant.ace_numeric,
  64. .ace-porter .ace_keyword.ace_other.ace_unit,
  65. .ace-porter .ace_support.ace_constant,
  66. .ace-porter .ace_variable.ace_parameter {
  67. color: #F78C6C
  68. }
  69. .ace-porter .ace_constant.ace_other {
  70. color: gold
  71. }
  72. .ace-porter .ace_invalid {
  73. color: yellow;
  74. background-color: red
  75. }
  76. .ace-porter .ace_invalid.ace_deprecated {
  77. color: #CED2CF;
  78. background-color: #B798BF
  79. }
  80. .ace-porter .ace_fold {
  81. background-color: #7AA6DA;
  82. border-color: #DEDEDE
  83. }
  84. .ace-porter .ace_entity.ace_name.ace_function,
  85. .ace-porter .ace_support.ace_function,
  86. .ace-porter .ace_variable {
  87. color: #7AA6DA
  88. }
  89. .ace-porter .ace_support.ace_class,
  90. .ace-porter .ace_support.ace_type {
  91. color: #E7C547
  92. }
  93. .ace-porter .ace_heading,
  94. .ace-porter .ace_string {
  95. color: #80CBC4
  96. }
  97. .ace-porter .ace_entity.ace_name.ace_tag,
  98. .ace-porter .ace_entity.ace_other.ace_attribute-name,
  99. .ace-porter .ace_meta.ace_tag,
  100. .ace-porter .ace_string.ace_regexp,
  101. .ace-porter .ace_variable {
  102. color: #ff5572
  103. }
  104. .ace-porter .ace_comment {
  105. color: #949eff
  106. }
  107. .ace-porter .ace_indent-guide {
  108. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLBWV/8PAAK4AYnhiq+xAAAAAElFTkSuQmCC) right repeat-y;
  109. }`;
  110. var dom = acequire("../lib/dom");
  111. dom.importCssString(exports.cssText, exports.cssClass);
  112. }
  113. );