@@ -583,3 +583,85 @@ summary:focus {
583583::-webkit-scrollbar-thumb : hover {
584584 background : var (--accent-color );
585585}
586+
587+ /* JSON Viewer Integration */
588+ .json-viewer {
589+ min-height : 200px ;
590+ border-radius : 0.375rem ;
591+ overflow : hidden;
592+ }
593+
594+ /* Override JSONEditor default styles to match our theme */
595+ .jsoneditor {
596+ border : none !important ;
597+ border-radius : 0.375rem !important ;
598+ }
599+
600+ .jsoneditor-outer {
601+ background-color : var (--bg-primary ) !important ;
602+ border : none !important ;
603+ }
604+
605+ .jsoneditor-menu {
606+ background-color : var (--bg-tertiary ) !important ;
607+ border-bottom : 1px solid var (--border-color ) !important ;
608+ }
609+
610+ .jsoneditor-menu > button {
611+ background-color : transparent !important ;
612+ color : var (--text-primary ) !important ;
613+ border : 1px solid var (--border-color ) !important ;
614+ border-radius : 0.25rem !important ;
615+ margin : 0.25rem !important ;
616+ }
617+
618+ .jsoneditor-menu > button : hover {
619+ background-color : var (--accent-color ) !important ;
620+ color : white !important ;
621+ border-color : var (--accent-color ) !important ;
622+ }
623+
624+ .jsoneditor-tree {
625+ background-color : var (--bg-primary ) !important ;
626+ color : var (--text-primary ) !important ;
627+ }
628+
629+ /* JSON content styling */
630+ .jsoneditor-tree .jsoneditor-field ,
631+ .jsoneditor-tree .jsoneditor-value {
632+ color : var (--text-primary ) !important ;
633+ }
634+
635+ .jsoneditor-tree .jsoneditor-string {
636+ color : var (--success-color ) !important ;
637+ }
638+
639+ .jsoneditor-tree .jsoneditor-number {
640+ color : var (--accent-color ) !important ;
641+ }
642+
643+ .jsoneditor-tree .jsoneditor-boolean {
644+ color : var (--warning-color ) !important ;
645+ }
646+
647+ .jsoneditor-tree .jsoneditor-null {
648+ color : var (--text-muted ) !important ;
649+ }
650+
651+ .jsoneditor-tree .jsoneditor-key {
652+ color : var (--text-primary ) !important ;
653+ font-weight : 500 !important ;
654+ }
655+
656+ /* Dark mode adjustments for JSON viewer */
657+ [data-theme = "dark" ] .jsoneditor-tree {
658+ background-color : var (--bg-primary ) !important ;
659+ }
660+
661+ [data-theme = "dark" ] .jsoneditor-outer {
662+ background-color : var (--bg-primary ) !important ;
663+ }
664+
665+ [data-theme = "dark" ] .jsoneditor-menu {
666+ background-color : var (--bg-tertiary ) !important ;
667+ }
0 commit comments