diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 48b953cc..12cfc63e 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -90,18 +90,16 @@ {:else}
-
- -
- {#if !authInitialized} -
- -
- {:else} - - {/if} -
-
+ +
+ {#if !authInitialized} +
+ +
+ {:else} + + {/if} +
{/if} diff --git a/frontend/src/app.css b/frontend/src/app.css index 34dc3d44..3f0df861 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -52,6 +52,22 @@ --color-code-bg: #0f172a; + /* Surface tokens for layered UI */ + --color-surface-overlay: #ffffff; + --color-dark-surface-overlay: #1f2937; + + /* Interactive states */ + --color-interactive-hover: #f9fafb; + --color-dark-interactive-hover: #374151; + + /* Skeleton/loading states */ + --color-skeleton: #e5e7eb; + --color-dark-skeleton: #374151; + + /* Tooltip */ + --color-tooltip-bg: #111827; + --color-tooltip-fg: #ffffff; + /* Font Families */ --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; @@ -413,13 +429,6 @@ Editor Component Styles ========================================================================== */ - /* Bare input (no border/background) for inline editing */ - .form-input-bare { - @apply bg-transparent border-0 focus:ring-0 w-full text-sm font-medium - text-fg-default dark:text-dark-fg-default - placeholder-fg-muted dark:placeholder-dark-fg-muted; - } - /* Output container for code execution results */ .output-container { @apply bg-bg-alt dark:bg-dark-bg-alt border border-border-default @@ -440,7 +449,13 @@ .output-pre, .custom-scrollbar { scrollbar-width: thin; - scrollbar-color: #9ca3af #e5e7eb; /* neutral-400 neutral-200 */ + scrollbar-color: var(--color-fg-subtle) var(--color-skeleton); + } + + :is(.dark .output-content), + :is(.dark .output-pre), + :is(.dark .custom-scrollbar) { + scrollbar-color: var(--color-dark-fg-subtle) var(--color-dark-skeleton); } .output-content::-webkit-scrollbar, @@ -501,7 +516,7 @@ /* Small input variant for admin tables */ .input-sm { - @apply px-2 py-1 text-sm border border-gray-300 dark:border-gray-600 - rounded bg-white dark:bg-gray-700 text-fg-default dark:text-dark-fg-default; + @apply px-2 py-1 text-sm border border-border-input dark:border-dark-border-input + rounded bg-surface-overlay dark:bg-dark-surface-overlay text-fg-default dark:text-dark-fg-default; } } diff --git a/frontend/src/components/ErrorDisplay.svelte b/frontend/src/components/ErrorDisplay.svelte index 964d38f3..fe9da4ab 100644 --- a/frontend/src/components/ErrorDisplay.svelte +++ b/frontend/src/components/ErrorDisplay.svelte @@ -59,7 +59,7 @@ diff --git a/frontend/src/components/Footer.svelte b/frontend/src/components/Footer.svelte index f71c0769..f74c6de4 100644 --- a/frontend/src/components/Footer.svelte +++ b/frontend/src/components/Footer.svelte @@ -4,8 +4,8 @@ const githubIcon = ``; -