+ {/* Enable/Disable Toggle */}
+
+
+ Enable VSCode theme
+
+
+
+
+ {isEnabled && (
+ <>
+ {/* Theme Presets Grid */}
+
+ {presets.map((preset) => (
+ handlePresetSelect(preset.id)}
+ />
+ ))}
+
+
+ {/* Custom Theme Toggle */}
+
+
+ {isUsingCustomTheme && (
+ Currently using custom theme
+ )}
+
+
+ {/* Custom Theme Input */}
+ {showCustomInput && (
+
+
+
+
+ Custom VSCode Theme JSON
+
+
{
+ setCustomJson(e.target.value)
+ setCustomError(null)
+ }}
+ placeholder={`{
+ "name": "My Theme",
+ "type": "dark",
+ "colors": {
+ "editor.background": "#1e1e1e",
+ "editor.foreground": "#d4d4d4",
+ ...
+ }
+}`}
+ className="font-mono text-xs min-h-[200px]"
+ />
+
+ Paste a VSCode theme JSON. Must include "name", "type"
+ (dark/light), and "colors" object.
+
+
+
+ {customError && (
+
+
+ Invalid theme
+ {customError}
+
+ )}
+
+
+
+
+
+
+
+ )}
+ >
+ )}
+
+