@@ -18,7 +18,6 @@ import { oneLight } from './scripts/theme-one-light';
1818import { keymap } from ' @codemirror/view' ;
1919import { useData } from ' vitepress' ;
2020import { phpdocHighlighter } from ' ./scripts/phpdoc-highlighter' ;
21- import { rainbowBrackets } from ' ./scripts/rainbow-brackets' ;
2221import { phpdocKeymap } from ' ./scripts/phpdoc-keymap' ;
2322import { createPhpdocAutocomplete } from ' ./scripts/phpdoc-autocomplete' ;
2423import {
@@ -120,7 +119,6 @@ onMounted(() => {
120119 lintGutter (),
121120 php (),
122121 phpdocHighlighter ,
123- rainbowBrackets ,
124122 createPhpdocAutocomplete (() => ({
125123 files: props .projectFiles ,
126124 activeFile: props .activeFile ,
@@ -687,59 +685,15 @@ defineExpose({
687685 color : var (--vp-c-text-3 );
688686}
689687
690- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-0 ),
691- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-0 ) * {
692- color : #94a3b8 !important ;
693- font-weight : 500 !important ;
694- }
695-
696- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-1 ),
697- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-1 ) * {
698- color : #38bdf8 !important ;
699- font-weight : 600 !important ;
700- }
701-
702- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-2 ),
703- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-2 ) * {
704- color : #f472b6 !important ;
705- font-weight : 600 !important ;
706- }
707-
708- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-3 ),
709- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-3 ) * {
710- color : #34d399 !important ;
711- font-weight : 600 !important ;
712- }
713-
714- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-unmatched ),
715- .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-unmatched ) * {
716- color : #ef4444 !important ;
717- font-weight : 700 !important ;
718- text-decoration : underline wavy #ef4444 ;
719- }
720-
721- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-0 ),
722- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-0 ) * {
723- color : #64748b !important ;
724- }
725-
726- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-1 ),
727- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-1 ) * {
728- color : #0284c7 !important ;
729- }
730-
731- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-2 ),
732- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-2 ) * {
733- color : #db2777 !important ;
734- }
735-
736- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-3 ),
737- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-3 ) * {
738- color : #059669 !important ;
688+ .playground-editor-wrapper :deep(.cm-matchingBracket ) {
689+ background-color : rgba (56 , 189 , 248 , 0.18 ) !important ;
690+ outline : 1px solid rgba (56 , 189 , 248 , 0.45 );
691+ border-radius : 2px ;
739692}
740693
741- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-unmatched ),
742- :root:not (.dark ) .playground-editor-wrapper :deep(.cm-line .cm-rainbow-bracket-unmatched ) * {
743- color : #dc2626 !important ;
694+ .playground-editor-wrapper :deep(.cm-nonmatchingBracket ) {
695+ background-color : rgba (239 , 68 , 68 , 0.22 ) !important ;
696+ outline : 1px solid rgba (239 , 68 , 68 , 0.55 );
697+ border-radius : 2px ;
744698}
745699 </style >
0 commit comments