6969 padding : 0 ;
7070 font-family : system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI' , 'Roboto' ,
7171 'Oxygen' , 'Ubuntu' , 'Cantarell' , 'Fira Sans' , 'Droid Sans' , 'Helvetica Neue' , sans-serif;
72+ font-size : 14px ;
73+ line-height : 22px ;
7274 -webkit-font-smoothing : antialiased;
7375 -moz-osx-font-smoothing : grayscale;
7476 background-color : var (--page-bg );
@@ -81,6 +83,51 @@ body {
8183 min-height : 100vh ;
8284}
8385
86+ /* ===== VS Code-style Heading Typography ===== */
87+ /* Matching VS Code's markdown preview heading sizes and styling */
88+
89+ .bn-editor h1 ,
90+ .bn-editor h2 ,
91+ .bn-editor h3 ,
92+ .bn-editor h4 ,
93+ .bn-editor h5 ,
94+ .bn-editor h6 {
95+ font-weight : 600 ;
96+ margin-top : 24px ;
97+ margin-bottom : 16px ;
98+ line-height : 1.25 ;
99+ }
100+
101+ .bn-editor h1 {
102+ font-size : 2em ;
103+ margin-top : 0 ;
104+ padding-bottom : 0.3em ;
105+ border-bottom : 1px solid var (--editor-border );
106+ }
107+
108+ .bn-editor h2 {
109+ font-size : 1.5em ;
110+ padding-bottom : 0.3em ;
111+ border-bottom : 1px solid var (--editor-border );
112+ }
113+
114+ .bn-editor h3 {
115+ font-size : 1.25em ;
116+ }
117+
118+ .bn-editor h4 {
119+ font-size : 1em ;
120+ }
121+
122+ .bn-editor h5 {
123+ font-size : 0.875em ;
124+ }
125+
126+ .bn-editor h6 {
127+ font-size : 0.85em ;
128+ color : var (--chat-text-secondary );
129+ }
130+
84131/* Code block container background - uses CSS variables that change with theme */
85132.bn-block-content [data-content-type = "codeBlock" ] {
86133 background-color : var (--code-block-bg ) !important ;
@@ -759,19 +806,35 @@ html {
759806 line-height : 1.6 ;
760807 }
761808
762- /* Scale down headings on mobile for better proportion */
809+ /* Scale down headings on mobile for better proportion (VS Code ratios scaled down) */
763810 .bn-editor h1 {
764- font-size : 1.4em !important ;
811+ font-size : 1.6em !important ;
812+ border-bottom : none !important ;
813+ padding-bottom : 0 !important ;
765814 }
766815
767816 .bn-editor h2 {
768- font-size : 1.2em !important ;
817+ font-size : 1.25em !important ;
818+ border-bottom : none !important ;
819+ padding-bottom : 0 !important ;
769820 }
770821
771822 .bn-editor h3 {
772823 font-size : 1.1em !important ;
773824 }
774825
826+ .bn-editor h4 {
827+ font-size : 0.95em !important ;
828+ }
829+
830+ .bn-editor h5 {
831+ font-size : 0.85em !important ;
832+ }
833+
834+ .bn-editor h6 {
835+ font-size : 0.8em !important ;
836+ }
837+
775838 /* Slash menu adjustments for mobile */
776839 .bn-suggestion-menu {
777840 max-width : calc (100vw - 32px ) !important ;
0 commit comments