@@ -147,18 +147,18 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
147147 } ;
148148
149149 return (
150- < div className = "bg-gray-800/30 backdrop-blur-sm rounded-2xl overflow-hidden border border-gray-700 flex flex-col h-full" >
151- < div className = "bg-gray-700 /50 px-6 py-4 border-b border-gray-600 flex items-center justify-between" >
152- < h3 className = "text-white font-semibold text-lg flex items-center gap-2" >
150+ < div className = "bg-card border border-border rounded-2xl overflow-hidden shadow-sm flex flex-col h-full" >
151+ < div className = "bg-muted /50 px-6 py-4 border-b border-border flex items-center justify-between" >
152+ < h3 className = "text-card-foreground font-semibold text-lg flex items-center gap-2" >
153153 { title }
154154 { ! isConverting && (
155155 < >
156- < span className = "text-gray-300 " > { selectedStack ?. icon } </ span >
156+ < span className = "text-muted-foreground " > { selectedStack ?. icon } </ span >
157157 < span > { selectedStack ?. label } </ span >
158158 </ >
159159 ) }
160160 { isEditable && isEditing && (
161- < span className = "text-xs bg-blue -600 text-white px-2 py-1 rounded-full" >
161+ < span className = "text-xs bg-slate -600 dark:bg-slate-400 text-white dark:text-slate-900 px-2 py-1 rounded-full" >
162162 Editing
163163 </ span >
164164 ) }
@@ -170,8 +170,8 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
170170 onClick = { toggleEditMode }
171171 className = { `transition-colors ${
172172 effectiveDisableEdit
173- ? 'text-gray-600 cursor-not-allowed'
174- : 'text-gray-400 hover:text-white '
173+ ? 'text-muted-foreground/50 cursor-not-allowed'
174+ : 'text-muted-foreground hover:text-card-foreground '
175175 } `}
176176 disabled = { ! ! effectiveDisableEdit }
177177 data-tooltip-id = "edit-tooltip"
@@ -194,8 +194,8 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
194194 onClick = { onFileUpload }
195195 className = { `transition-colors ${
196196 isUploading || uploadDisabled
197- ? 'text-gray-600 cursor-not-allowed'
198- : 'text-gray-400 hover:text-white '
197+ ? 'text-muted-foreground/50 cursor-not-allowed'
198+ : 'text-muted-foreground hover:text-card-foreground '
199199 } `}
200200 disabled = { isUploading || uploadDisabled }
201201 data-tooltip-id = "upload-tooltip"
@@ -211,8 +211,8 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
211211 onClick = { onReset }
212212 className = { `transition-colors ${
213213 disableEdit
214- ? 'text-gray-600 cursor-not-allowed'
215- : 'text-gray-400 hover:text-white '
214+ ? 'text-muted-foreground/50 cursor-not-allowed'
215+ : 'text-muted-foreground hover:text-card-foreground '
216216 } `}
217217 disabled = { disableEdit }
218218 data-tooltip-id = "reset-tooltip"
@@ -225,7 +225,7 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
225225 { code && ! isConverting && onCopy && (
226226 < button
227227 onClick = { handleCopyToClipboard }
228- className = "text-gray-400 hover:text-white transition-colors"
228+ className = "text-muted-foreground hover:text-card-foreground transition-colors"
229229 data-tooltip-id = "copy-tooltip"
230230 data-tooltip-content = "Copy to clipboard"
231231 >
@@ -235,7 +235,7 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
235235 { code && ! isConverting && onDownload && (
236236 < button
237237 onClick = { handleDownload }
238- className = "text-gray-400 hover:text-white transition-colors"
238+ className = "text-muted-foreground hover:text-card-foreground transition-colors"
239239 data-tooltip-id = "download-tooltip"
240240 data-tooltip-content = "Download converted code"
241241 >
@@ -247,18 +247,18 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
247247
248248 < div className = "relative flex-1 h-full min-h-[20rem]" >
249249 { isConverting ? (
250- < div className = "p-6 bg-gray-800 /30 backdrop-blur-sm rounded-2xl " >
250+ < div className = "p-6 bg-muted /30" >
251251 < Skeleton
252252 count = { 16 }
253253 height = { 18 }
254254 style = { { marginBottom : 6 , borderRadius : 3 } }
255- baseColor = "rgba(30,41,59,0.6 )"
256- highlightColor = "rgba(59,130,246,0.15 )"
255+ baseColor = "hsl(var(--muted) )"
256+ highlightColor = "hsl(var(--accent) )"
257257 />
258258 </ div >
259259 ) : isUploading || isDetectingStack ? (
260- < div className = "px-6 py-8 flex flex-col items-center justify-center text-blue-300 text-sm min-h-[20rem]" >
261- < Loader2 className = "h-10 w-10 mb-2 text-blue-400 animate-spin" />
260+ < div className = "px-6 py-8 flex flex-col items-center justify-center text-primary text-sm min-h-[20rem]" >
261+ < Loader2 className = "h-10 w-10 mb-2 text-primary animate-spin" />
262262 < div > { isUploading ? 'Uploading file...' : 'Detecting stack...' } </ div >
263263 </ div >
264264 ) : uploadedFile && (
@@ -270,7 +270,7 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
270270 ref = { textareaRef }
271271 value = { safeCode }
272272 onChange = { handleCodeChange }
273- className = "w-full h-full min-h-[20rem] bg-gray-900 /50 text-gray-100 font-mono text-sm leading-relaxed p-4 rounded-lg border border-gray-600 focus:border-blue-500 focus:outline-none resize-none"
273+ className = "w-full h-full min-h-[20rem] bg-muted /50 text-card-foreground font-mono text-sm leading-relaxed p-4 rounded-lg border border-border focus:border-ring focus:outline-none resize-none"
274274 style = { { fontSize : 14 } }
275275 placeholder = { `// Enter your ${ stack } code here...\n// You can edit this code directly and then convert it to another framework` }
276276 spellCheck = { false }
@@ -288,21 +288,21 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
288288 )
289289 ) : (
290290 // Otherwise, show batch upload UI (zip)
291- < div className = "px-6 py-8 flex flex-col items-center justify-center text-blue-300 text-sm min-h-[20rem]" >
292- < Upload className = "h-10 w-10 mb-2 text-blue-400 " />
291+ < div className = "px-6 py-8 flex flex-col items-center justify-center text-primary text-sm min-h-[20rem]" >
292+ < Upload className = "h-10 w-10 mb-2 text-primary " />
293293 < div className = "mb-2" >
294294 < strong > Uploaded file:</ strong > { uploadedFile . name } ({ ( uploadedFile . size / 1024 ) . toFixed ( 1 ) } KB)
295295 </ div >
296296 < div className = "mb-4" > Ready for batch conversion.</ div >
297297 { uploadMessage && (
298- < div className = { uploadMessage . includes ( 'success' ) ? 'text-green- 400 mb-2' : 'text-red-400 mb-2' } >
298+ < div className = { uploadMessage . includes ( 'success' ) ? 'text-emerald-600 dark:text-emerald- 400 mb-2' : 'text-red-600 dark: text-red-400 mb-2' } >
299299 { uploadMessage }
300300 </ div >
301301 ) }
302302 { onRemoveFile && (
303303 < button
304304 onClick = { onRemoveFile }
305- className = "bg-gray-700 hover:bg-gray-600 text-white px-4 py-2 rounded transition-colors"
305+ className = "bg-secondary hover:bg-secondary/80 text-secondary-foreground px-4 py-2 rounded transition-colors"
306306 disabled = { isUploading }
307307 >
308308 Remove File
@@ -319,7 +319,7 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
319319 ref = { textareaRef }
320320 value = { safeCode }
321321 onChange = { handleCodeChange }
322- className = "w-full h-full min-h-[20rem] bg-gray-900 /50 text-gray-100 font-mono text-sm leading-relaxed p-4 rounded-lg border border-gray-600 focus:border-blue-500 focus:outline-none resize-none"
322+ className = "w-full h-full min-h-[20rem] bg-muted /50 text-card-foreground font-mono text-sm leading-relaxed p-4 rounded-lg border border-border focus:border-ring focus:outline-none resize-none"
323323 style = { { fontSize : 12 } }
324324 placeholder = { `// Enter your ${ stack } code here...\n// You can edit this code directly and then convert it to another framework` }
325325 spellCheck = { false }
@@ -336,7 +336,7 @@ const CodePanel: React.FC<CodePanelPropsWithTooltips> = ({
336336 </ SyntaxHighlighter >
337337 ) }
338338 { safeShowEmptyState && ! code && (
339- < div className = "absolute inset-0 h-full w-full flex items-center justify-center text-gray-500 pointer-events-none" >
339+ < div className = "absolute inset-0 h-full w-full flex items-center justify-center text-muted-foreground pointer-events-none" >
340340 < div className = "text-center" >
341341 { emptyStateIcon }
342342 < p > { emptyStateMessage } </ p >
0 commit comments