@@ -645,6 +645,69 @@ chart-kit-preview {
645645: root {
646646 --chart-kit-preview-padding-x : 10px ;
647647 --chart-kit-preview-padding-y : 10px ;
648+ --chart-kit-preview-surface : # 10131a ;
649+ --chart-kit-playground-frame-surface : # 10131a ;
650+ --chart-kit-playground-preview-surface : # 0f1218 ;
651+ }
652+
653+ : root [data-theme = "light" ] {
654+ --chart-kit-preview-surface : # ffffff ;
655+ --chart-kit-playground-frame-surface : # ffffff ;
656+ --chart-kit-playground-preview-surface : # ffffff ;
657+ }
658+
659+ : root [data-theme = "light" ][data-chart-theme = "spectrum" ] {
660+ --chart-kit-preview-surface : # f4f7ff ;
661+ --chart-kit-playground-frame-surface : # f8fbff ;
662+ --chart-kit-playground-preview-surface : # f4f7ff ;
663+ }
664+
665+ : root [data-theme = "light" ][data-chart-theme = "aurora" ] {
666+ --chart-kit-preview-surface : # f7f2ff ;
667+ --chart-kit-playground-frame-surface : # fbf7ff ;
668+ --chart-kit-playground-preview-surface : # f7f2ff ;
669+ }
670+
671+ : root [data-theme = "light" ][data-chart-theme = "verdant" ] {
672+ --chart-kit-preview-surface : # f1fbf5 ;
673+ --chart-kit-playground-frame-surface : # f8fdf9 ;
674+ --chart-kit-playground-preview-surface : # f1fbf5 ;
675+ }
676+
677+ : root [data-theme = "light" ][data-chart-theme = "cupertino" ] {
678+ --chart-kit-preview-surface : # f2f7ff ;
679+ --chart-kit-playground-frame-surface : # f8fbff ;
680+ --chart-kit-playground-preview-surface : # f2f7ff ;
681+ }
682+
683+ : root [data-theme = "light" ][data-chart-theme = "material" ] {
684+ --chart-kit-preview-surface : # fff7fb ;
685+ --chart-kit-playground-frame-surface : # fffafd ;
686+ --chart-kit-playground-preview-surface : # fff7fb ;
687+ }
688+
689+ : root [data-theme = "light" ][data-chart-theme = "graphite" ] {
690+ --chart-kit-preview-surface : # f4f5f7 ;
691+ --chart-kit-playground-frame-surface : # fafbfc ;
692+ --chart-kit-playground-preview-surface : # f4f5f7 ;
693+ }
694+
695+ : root [data-theme = "light" ][data-chart-theme = "contrast" ] {
696+ --chart-kit-preview-surface : # ffffff ;
697+ --chart-kit-playground-frame-surface : # ffffff ;
698+ --chart-kit-playground-preview-surface : # ffffff ;
699+ }
700+
701+ : root [data-theme = "light" ][data-chart-theme = "midnight" ] {
702+ --chart-kit-preview-surface : # edf3fb ;
703+ --chart-kit-playground-frame-surface : # f6f9fd ;
704+ --chart-kit-playground-preview-surface : # edf3fb ;
705+ }
706+
707+ : root [data-theme = "light" ][data-chart-theme = "studio" ] {
708+ --chart-kit-preview-surface : # fff8ea ;
709+ --chart-kit-playground-frame-surface : # fffdf8 ;
710+ --chart-kit-playground-preview-surface : # fff8ea ;
648711}
649712
650713chart-kit-preview .chart-kit-preview-fallback ,
@@ -653,7 +716,7 @@ chart-kit-preview .chart-kit-preview-fallback,
653716 overflow : hidden;
654717 border : 1px solid var (--sl-color-hairline );
655718 border-radius : 0.9rem ;
656- background : # 10131a ;
719+ background : var ( --chart-kit-preview-surface ) ;
657720 padding : var (--chart-kit-preview-padding-y ) var (--chart-kit-preview-padding-x );
658721 -webkit-touch-callout : none;
659722 -webkit-user-select : none;
@@ -662,7 +725,7 @@ chart-kit-preview .chart-kit-preview-fallback,
662725
663726: root [data-theme = "light" ] chart-kit-preview .chart-kit-preview-fallback ,
664727: root [data-theme = "light" ] .chart-kit-live-preview__frame {
665- background : # ffffff ;
728+ background : var ( --chart-kit-preview-surface ) ;
666729}
667730
668731.chart-kit-live-preview__pro-link {
@@ -777,7 +840,7 @@ chart-kit-playground .chart-kit-preview-fallback pre {
777840 overflow : hidden;
778841 border : 1px solid var (--sl-color-hairline );
779842 border-radius : 0.9rem ;
780- background : # 10131a ;
843+ background : var ( --chart-kit-playground-frame-surface ) ;
781844}
782845
783846.chart-kit-playground__frame [data-resizing = "true" ] {
@@ -790,7 +853,7 @@ chart-kit-playground .chart-kit-preview-fallback pre {
790853}
791854
792855: root [data-theme = "light" ] .chart-kit-playground__frame {
793- background : # ffffff ;
856+ background : var ( --chart-kit-playground-frame-surface ) ;
794857}
795858
796859.chart-kit-playground__grid {
@@ -819,14 +882,14 @@ chart-kit-playground .chart-kit-preview-fallback pre {
819882
820883.chart-kit-playground__preview-pane {
821884 min-height : 28rem ;
822- background : # 0f1218 ;
885+ background : var ( --chart-kit-playground-preview-surface ) ;
823886 -webkit-touch-callout : none;
824887 -webkit-user-select : none;
825888 user-select : none;
826889}
827890
828891: root [data-theme = "light" ] .chart-kit-playground__preview-pane {
829- background : # ffffff ;
892+ background : var ( --chart-kit-playground-preview-surface ) ;
830893}
831894
832895.chart-kit-playground__resize-handle {
0 commit comments