@@ -12,7 +12,7 @@ import { ref, onMounted, onUnmounted, watch } from 'vue';
1212import { EditorView , basicSetup } from ' codemirror' ;
1313import { EditorState , Compartment , Prec } from ' @codemirror/state' ;
1414import { php } from ' @codemirror/lang-php' ;
15- import { oneDark } from ' @codemirror /theme-one-dark' ;
15+ import { oneDark } from ' . /theme-one-dark' ;
1616import { oneLight } from ' ./theme-one-light' ;
1717import { keymap } from ' @codemirror/view' ;
1818import { useData } from ' vitepress' ;
@@ -41,8 +41,8 @@ const { isDark } = useData();
4141
4242const baseTheme = EditorView .theme ({
4343 ' &' : { height: ' 100%' , fontSize: ' var(--playground-font-size, 13.5px)' },
44- ' .cm-scroller' : {
45- overflow: ' auto' ,
44+ ' .cm-scroller' : {
45+ overflow: ' auto' ,
4646 fontFamily: ' var(--vp-font-family-mono)' ,
4747 scrollbarWidth: ' thin' ,
4848 scrollbarColor: ' var(--vp-c-divider) transparent'
@@ -52,7 +52,7 @@ const baseTheme = EditorView.theme({
5252 ' .cm-phpdoc-generic-bracket, .cm-phpdoc-generic-bracket *' : { color: ' #e06c75 !important' , fontWeight: ' 700 !important' , fontStyle: ' normal !important' },
5353 ' .cm-phpdoc-generic-type, .cm-phpdoc-generic-type *' : { color: ' #56b6c2 !important' , fontStyle: ' italic !important' , fontWeight: ' 600 !important' },
5454 ' .cm-phpdoc-variance, .cm-phpdoc-variance *' : { color: ' #d19a66 !important' , fontStyle: ' italic !important' },
55- ' .cm-phpdoc-var, .cm-phpdoc-var *' : { color: ' #e06c75 !important' , fontWeight: ' 600 !important' , fontStyle: ' normal !important' },
55+ ' .cm-phpdoc-var, .cm-phpdoc-var *' : { color: ' #cbd3dd !important' , fontWeight: ' 500 !important' , fontStyle: ' normal !important' },
5656 ' .cm-phpdoc-shape-key, .cm-phpdoc-shape-key *' : { color: ' #61afef !important' , fontWeight: ' 600 !important' , fontStyle: ' normal !important' },
5757 ' .cm-phpdoc-operator, .cm-phpdoc-operator *' : { color: ' #abb2bf !important' },
5858 ' .cm-phpdoc-string, .cm-phpdoc-string *' : { color: ' #98c379 !important' },
@@ -62,7 +62,7 @@ const baseTheme = EditorView.theme({
6262 ' .cm-php-func, .cm-php-func *' : { color: ' #61afef !important' },
6363 ' .cm-php-this, .cm-php-this *' : { color: ' #c678dd !important' , fontStyle: ' italic !important' , fontWeight: ' 600 !important' },
6464 ' .cm-php-self-static, .cm-php-self-static *' : { color: ' #e5c07b !important' , fontStyle: ' italic !important' , fontWeight: ' 600 !important' },
65- ' .cm-php-property, .cm-php-property *' : { color: ' #56b6c2 !important' , fontWeight: ' 500 !important' },
65+ ' .cm-php-property, .cm-php-property *' : { color: ' #cbd3dd !important' , fontWeight: ' 500 !important' },
6666 ' .cm-phpdoc-primitive, .cm-phpdoc-primitive *' : { color: ' #56b6c2 !important' , fontWeight: ' 600 !important' , fontStyle: ' normal !important' },
6767});
6868
@@ -256,8 +256,8 @@ defineExpose({
256256
257257:root:not (.dark ) .playground-editor-wrapper :deep(.cm-phpdoc-var ),
258258:root:not (.dark ) .playground-editor-wrapper :deep(.cm-phpdoc-var ) * {
259- color : #e45649 !important ;
260- font-weight : 600 !important ;
259+ color : #141619 !important ;
260+ font-weight : 500 !important ;
261261}
262262
263263:root:not (.dark ) .playground-editor-wrapper :deep(.cm-phpdoc-shape-key ),
@@ -314,10 +314,10 @@ defineExpose({
314314 font-weight : 500 !important ;
315315}
316316
317- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-phpdoc-primitive ),
318- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-phpdoc-primitive ) * {
319- color : #0184bc !important ;
320- font-weight : 600 !important ;
317+ :root:not (.dark ) .playground-editor-wrapper :deep(.cm-php-property ),
318+ :root:not (.dark ) .playground-editor-wrapper :deep(.cm-php-property ) * {
319+ color : #020202 !important ;
320+ font-weight : 500 !important ;
321321}
322322
323323@media (max-width : 768px ) {
0 commit comments