File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
vibes.diy/pkg/app/components/ResultPreview Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ const IframeContent: React.FC<IframeContentProps> = ({
132132 useEffect ( ( ) => {
133133 if ( monacoApiRef . current ) {
134134 // Update the Shiki theme in Monaco when dark mode changes from parent
135- const currentTheme = isDarkMode ? "github-dark" : "github-light" ;
135+ const currentTheme = isDarkMode
136+ ? "github-dark-default"
137+ : "github-light-default" ;
136138 // Use monaco editor namespace to set theme
137139 monacoApiRef . current . editor . setTheme ( currentTheme ) ;
138140 }
@@ -260,7 +262,7 @@ const IframeContent: React.FC<IframeContentProps> = ({
260262 width = "100%"
261263 path = "file.jsx"
262264 defaultLanguage = "jsx"
263- theme = { isDarkMode ? "github-dark" : "github-light" }
265+ theme = { isDarkMode ? "github-dark-default " : "github-light-default " }
264266 value = { editedCode }
265267 onChange = { handleCodeChange }
266268 options = { {
Original file line number Diff line number Diff line change @@ -88,7 +88,9 @@ export async function setupMonacoEditor(
8888 } ) ;
8989 setHighlighter ( highlighter ) ;
9090 await shikiToMonaco ( highlighter , monaco ) ;
91- const currentTheme = isDarkMode ? "github-dark" : "github-light" ;
91+ const currentTheme = isDarkMode
92+ ? "github-dark-default"
93+ : "github-light-default" ;
9294 monaco . editor . setTheme ( currentTheme ) ;
9395 const model = editor . getModel ( ) ;
9496 if ( model ) {
You can’t perform that action at this time.
0 commit comments