Просмотр исходного кода

Change color cm theme original light

satof3 2 лет назад
Родитель
Сommit
239a50e383
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      packages/editor/src/services/editor-theme/original-light.ts

+ 7 - 4
packages/editor/src/services/editor-theme/original-light.ts

@@ -16,20 +16,23 @@ export const originalLight: Extension = createTheme({
     gutterForeground: '#6e7781',
   },
   styles: [
-    { tag: [t.standard(t.tagName), t.tagName], color: '#116329' },
+    { tag: [t.standard(t.tagName), t.tagName], color: '#377148' },
     { tag: [t.comment, t.bracket], color: '#6a737d' },
     { tag: [t.className, t.propertyName], color: '#6f42c1' },
-    { tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#005cc5' },
+    { tag: [t.variableName, t.attributeName, t.number, t.operator], color: '#516883' },
     { tag: [t.keyword, t.typeName, t.typeOperator, t.typeName], color: '#d73a49' },
-    { tag: [t.string, t.meta, t.regexp], color: '#032f62' },
     { tag: [t.name, t.quote], color: '#22863a' },
-    { tag: [t.heading, t.strong], color: '#24292e', fontWeight: 'bold' },
+    { tag: [t.heading], color: '#24292e', fontWeight: 'bold' },
     { tag: [t.emphasis], color: '#24292e', fontStyle: 'italic' },
     { tag: [t.deleted], color: '#b31d28', backgroundColor: 'ffeef0' },
+    { tag: [t.string, t.meta, t.regexp], color: '#032F62' },
     { tag: [t.atom, t.bool, t.special(t.variableName)], color: '#e36209' },
     { tag: [t.url, t.escape, t.regexp, t.link], color: '#032f62' },
     { tag: t.link, textDecoration: 'underline' },
     { tag: t.strikethrough, textDecoration: 'line-through' },
+    { tag: [t.character], color: '#516883' },
+    { tag: [t.strong], color: '#744763' },
+    { tag: [t.brace, t.processingInstruction, t.inserted], color: '#516883' },
     { tag: t.invalid, color: '#cb2431' },
   ],
 });