@@ -148,20 +148,22 @@ function FileEditor() {
148148 } ;
149149
150150 return (
151- < div className = "flex h-full w-full flex-1 flex-col gap-6 bg-slate-900/20 px-10 py-8" >
152- < header className = "flex flex-wrap items-center justify-between gap-4 border-b border-white/10 pb-4" >
151+ < div className = "flex h-full w-full flex-1 flex-col gap-6 bg-background px-10 py-8 text-foreground " >
152+ < header className = "flex flex-wrap items-center justify-between gap-4 border-b border-border pb-4" >
153153 < div >
154- < p className = "text-xs font-semibold uppercase tracking-[0.4em] text-white/40 " > Editing</ p >
155- < h2 className = "text-2xl font-semibold text-white " > { filename } </ h2 >
156- < p className = "text-sm text-white/60 " > PowerSync CLI YAML configuration</ p >
154+ < p className = "text-xs font-semibold uppercase tracking-[0.4em] text-muted-foreground " > Editing</ p >
155+ < h2 className = "text-2xl font-semibold text-foreground " > { filename } </ h2 >
156+ < p className = "text-sm text-muted-foreground " > PowerSync CLI YAML configuration</ p >
157157 </ div >
158158 < div className = "flex flex-wrap items-center gap-3" >
159159 < button
160160 type = "button"
161161 disabled = { validation . errors === 0 && validation . warnings === 0 }
162162 onClick = { ( ) => setShowValidation ( ( open ) => ! open ) }
163163 className = { `flex items-center gap-2 rounded-full border px-3 py-1 text-xs font-semibold transition ${ validationBadge . tone } ${
164- validation . errors > 0 || validation . warnings > 0 ? 'hover:border-white/60 hover:bg-white/10' : ''
164+ validation . errors > 0 || validation . warnings > 0
165+ ? 'hover:border-destructive/50 hover:bg-destructive/5'
166+ : ''
165167 } ${ validation . errors === 0 && validation . warnings === 0 ? 'cursor-not-allowed opacity-60' : '' } `} >
166168 { validationBadge . icon }
167169 { validationBadge . label }
@@ -175,34 +177,34 @@ function FileEditor() {
175177 type = "button"
176178 onClick = { handleReset }
177179 disabled = { ! hasChanges || status === 'saving' }
178- className = "inline-flex items-center gap-2 rounded-full border border-white/20 px-4 py-2 text-sm font-semibold text-white/80 transition hover:border-white /50 disabled:cursor-not-allowed disabled:opacity-50" >
180+ className = "inline-flex items-center gap-2 rounded-full border border-border px-4 py-2 text-sm font-semibold text-foreground transition hover:border-primary /50 disabled:cursor-not-allowed disabled:opacity-50" >
179181 < RotateCcw size = { 16 } /> Reset
180182 </ button >
181183 < button
182184 type = "button"
183185 onClick = { handleSave }
184186 disabled = { ! hasChanges || status === 'saving' }
185- className = "inline-flex items-center gap-2 rounded-full bg-gradient-to-r from-cyan-500 to-blue-500 px-5 py-2 text-sm font-semibold text-white shadow-lg shadow-cyan-500 /30 transition hover:from-cyan-400 hover:to-blue-400 disabled:cursor-not-allowed disabled:opacity-60" >
187+ className = "inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2 text-sm font-semibold text-primary-foreground shadow-lg shadow-primary /30 transition hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-60" >
186188 { status === 'saving' ? < Loader2 size = { 16 } className = "animate-spin" /> : < Save size = { 16 } /> } Save changes
187189 </ button >
188190 </ div >
189191 </ header >
190192
191193 { errorMessage && (
192- < div className = "rounded-xl border border-rose-500/40 bg-rose-500 /10 p-4 text-sm text-rose-100 " >
194+ < div className = "rounded-xl border border-destructive/30 bg-destructive /10 p-4 text-sm text-destructive-foreground " >
193195 { errorMessage }
194196 </ div >
195197 ) }
196198
197199 { showValidation && validationMarkers . length > 0 && (
198- < div className = "rounded-xl border border-rose-400/40 bg-rose-500 /5 px-4 py-3 text-sm text-white/90 " >
200+ < div className = "rounded-xl border border-destructive/25 bg-destructive /5 px-4 py-3 text-sm text-foreground " >
199201 < div className = "mb-2 flex items-center justify-between" >
200- < div className = "flex items-center gap-2 font-semibold text-rose-50 " >
201- < Info size = { 16 } className = "text-rose-200 " /> Validation details
202+ < div className = "flex items-center gap-2 font-semibold text-destructive-foreground " >
203+ < Info size = { 16 } className = "text-destructive " /> Validation details
202204 </ div >
203205 < button
204206 type = "button"
205- className = "text-xs font-semibold text-white/60 underline-offset-4 hover:text-white "
207+ className = "text-xs font-semibold text-muted-foreground underline-offset-4 hover:text-foreground "
206208 onClick = { ( ) => setShowValidation ( false ) } >
207209 Hide
208210 </ button >
@@ -211,18 +213,18 @@ function FileEditor() {
211213 { validationMarkers . map ( ( marker , idx ) => {
212214 const isError = ERROR_SEVERITIES . has ( marker . severity ) ;
213215 const tone = isError
214- ? 'text-rose-100 bg-rose-500 /15 border-rose-300 /40'
215- : 'text-amber-100 bg-amber-500 /15 border-amber-300 /40' ;
216- const label = isError ? 'Error' : 'Warning ' ;
216+ ? 'text-destructive-foreground bg-destructive /15 border-destructive /40'
217+ : 'text-warning-foreground bg-warning /15 border-warning /40' ;
218+ const label = isError ? 'Error' : 'Info ' ;
217219 return (
218220 < li key = { `${ marker . message } -${ marker . startLineNumber } -${ idx } ` } className = "flex items-start gap-3" >
219221 < span
220222 className = { `mt-0.5 inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px] font-semibold ${ tone } ` } >
221223 { label }
222224 </ span >
223- < div className = "flex-1 leading-relaxed text-white/90 " >
224- < div className = "font-semibold text-white " > Line { marker . startLineNumber } </ div >
225- < div className = "text-white/80 " > { marker . message } </ div >
225+ < div className = "flex-1 leading-relaxed text-foreground " >
226+ < div className = "font-semibold text-foreground " > Line { marker . startLineNumber } </ div >
227+ < div className = "text-muted-foreground " > { marker . message } </ div >
226228 </ div >
227229 </ li >
228230 ) ;
@@ -231,7 +233,7 @@ function FileEditor() {
231233 </ div >
232234 ) }
233235
234- < div className = "flex flex-1 min-h-0 overflow-hidden rounded-3xl border border-white/10 bg-slate-950 shadow-[0_20px_120px_rgba(14,165,233 ,0.12 )]" >
236+ < div className = "flex flex-1 min-h-0 overflow-hidden rounded-3xl border border-border bg-card shadow-[0_16px_72px_rgba(0,0,0 ,0.08 )]" >
235237 { isBrowser ? (
236238 < MonacoEditor
237239 className = "flex-1"
0 commit comments