@@ -932,6 +932,10 @@ section {
932932 border : 1px solid var (--border );
933933}
934934
935+ .docs-article .highlight {
936+ margin-bottom : 1.5rem ;
937+ }
938+
935939.docs-article pre {
936940 background : var (--bg-secondary );
937941 border : 1px solid var (--border );
@@ -950,6 +954,68 @@ section {
950954 color : var (--text-primary );
951955}
952956
957+ /* Chroma syntax highlighting — dark theme (default) */
958+ .highlight pre { background : var (--bg-secondary ); }
959+ .highlight .chroma { background : var (--bg-secondary ); color : var (--text-primary ); }
960+ .chroma .line { display : flex; }
961+ .chroma .cl { /* code line */ }
962+ .chroma .c , .chroma .ch , .chroma .cm , .chroma .c1 , .chroma .cs ,
963+ .chroma .cp , .chroma .cpf { color : # 75715e ; } /* comments */
964+ .chroma .k , .chroma .kc , .chroma .kd , .chroma .kn , .chroma .kp ,
965+ .chroma .kr { color : # 66d9ef ; } /* keywords */
966+ .chroma .kt { color : # 66d9ef ; } /* keyword type */
967+ .chroma .n , .chroma .ni , .chroma .nl , .chroma .nn , .chroma .nx ,
968+ .chroma .py { color : # f8f8f2 ; } /* names */
969+ .chroma .na { color : # a6e22e ; } /* name attribute */
970+ .chroma .nb { color : # f8f8f2 ; } /* name builtin */
971+ .chroma .nc { color : # a6e22e ; } /* name class */
972+ .chroma .nf , .chroma .fm { color : # a6e22e ; } /* name function */
973+ .chroma .no { color : # 66d9ef ; } /* name constant */
974+ .chroma .nv , .chroma .vc , .chroma .vg , .chroma .vi , .chroma .vm { color : # f8f8f2 ; } /* variables */
975+ .chroma .o , .chroma .ow { color : # f92672 ; } /* operators */
976+ .chroma .p { color : # f8f8f2 ; } /* punctuation */
977+ .chroma .s , .chroma .sa , .chroma .sb , .chroma .sc , .chroma .dl ,
978+ .chroma .s2 , .chroma .sh , .chroma .s1 , .chroma .ss { color : # e6db74 ; } /* strings */
979+ .chroma .se { color : # ae81ff ; } /* string escape */
980+ .chroma .si { color : # e6db74 ; } /* string interpol */
981+ .chroma .m , .chroma .mb , .chroma .mf , .chroma .mh , .chroma .mi ,
982+ .chroma .mo , .chroma .il { color : # ae81ff ; } /* numbers */
983+
984+ /* Chroma syntax highlighting — light theme */
985+ [data-theme = "light" ] .chroma { background : var (--bg-secondary ); color : var (--text-primary ); }
986+ [data-theme = "light" ] .chroma .c , [data-theme = "light" ] .chroma .ch ,
987+ [data-theme = "light" ] .chroma .cm , [data-theme = "light" ] .chroma .c1 ,
988+ [data-theme = "light" ] .chroma .cs , [data-theme = "light" ] .chroma .cp ,
989+ [data-theme = "light" ] .chroma .cpf { color : # 6a737d ; }
990+ [data-theme = "light" ] .chroma .k , [data-theme = "light" ] .chroma .kc ,
991+ [data-theme = "light" ] .chroma .kd , [data-theme = "light" ] .chroma .kn ,
992+ [data-theme = "light" ] .chroma .kp , [data-theme = "light" ] .chroma .kr { color : # d73a49 ; }
993+ [data-theme = "light" ] .chroma .kt { color : # d73a49 ; }
994+ [data-theme = "light" ] .chroma .n , [data-theme = "light" ] .chroma .ni ,
995+ [data-theme = "light" ] .chroma .nl , [data-theme = "light" ] .chroma .nn ,
996+ [data-theme = "light" ] .chroma .nx , [data-theme = "light" ] .chroma .py { color : # 24292e ; }
997+ [data-theme = "light" ] .chroma .na { color : # 6f42c1 ; }
998+ [data-theme = "light" ] .chroma .nb { color : # 005cc5 ; }
999+ [data-theme = "light" ] .chroma .nc { color : # 6f42c1 ; }
1000+ [data-theme = "light" ] .chroma .nf , [data-theme = "light" ] .chroma .fm { color : # 6f42c1 ; }
1001+ [data-theme = "light" ] .chroma .no { color : # 005cc5 ; }
1002+ [data-theme = "light" ] .chroma .nv , [data-theme = "light" ] .chroma .vc ,
1003+ [data-theme = "light" ] .chroma .vg , [data-theme = "light" ] .chroma .vi ,
1004+ [data-theme = "light" ] .chroma .vm { color : # e36209 ; }
1005+ [data-theme = "light" ] .chroma .o , [data-theme = "light" ] .chroma .ow { color : # d73a49 ; }
1006+ [data-theme = "light" ] .chroma .p { color : # 24292e ; }
1007+ [data-theme = "light" ] .chroma .s , [data-theme = "light" ] .chroma .sa ,
1008+ [data-theme = "light" ] .chroma .sb , [data-theme = "light" ] .chroma .sc ,
1009+ [data-theme = "light" ] .chroma .dl , [data-theme = "light" ] .chroma .s2 ,
1010+ [data-theme = "light" ] .chroma .sh , [data-theme = "light" ] .chroma .s1 ,
1011+ [data-theme = "light" ] .chroma .ss { color : # 032f62 ; }
1012+ [data-theme = "light" ] .chroma .se { color : # 032f62 ; }
1013+ [data-theme = "light" ] .chroma .si { color : # 032f62 ; }
1014+ [data-theme = "light" ] .chroma .m , [data-theme = "light" ] .chroma .mb ,
1015+ [data-theme = "light" ] .chroma .mf , [data-theme = "light" ] .chroma .mh ,
1016+ [data-theme = "light" ] .chroma .mi , [data-theme = "light" ] .chroma .mo ,
1017+ [data-theme = "light" ] .chroma .il { color : # 005cc5 ; }
1018+
9531019.docs-article table {
9541020 width : 100% ;
9551021 border-collapse : collapse;
0 commit comments