From eae07877250e34bb886a04894c98754c6efde319 Mon Sep 17 00:00:00 2001 From: translator Date: Thu, 12 Mar 2026 09:18:53 +0900 Subject: [PATCH] fix: dark mode for form controls, lyric preview buttons, sidebar toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - theme-overrides.css: add !important to form control dark mode rules (background/color/border-color) — MetroUI's un-layered select rule was winning the cascade regardless of inline styles; color-scheme: dark forces OS-native chrome (dropdown arrow) to dark theme - ProjectDetail.tsx: add fieldStyle const with CSS vars for all select/input/textarea elements; fix standalone inline-style selects and container divs (log body, ABC header, Sheet/Text toggles) - Separator.tsx: update ctrl style to use var(--background/foreground) and colorScheme: inherit - LyricsLivePreview.tsx: replace dark:bg-gray-800 / dark:text-gray-400 Tailwind dark-mode classes with inline CSS var styles on tab bar container and all tab/icon buttons; add lp-btn hover rule - Sidebar.tsx: fix toggle button clipped by aside overflow:hidden — change aside to overflow:visible, wrap collapsed strip in own overflow:hidden div - ThemeContext.tsx: set root.style.colorScheme = r for OS chrome theming - index.html: add - index.css: Phase 7 — replace @layer base + @apply and @layer utilities + theme() with plain CSS (height: 100%, rem values for sidebar widths) --- SUMMARIES.md | 157 +++++++++ StemEngine UI Fix.md | 308 ++++++++++++++++++ StemEngine WebUI Phase 7.md | 195 +++++++++++ backend/static/index.html | 7 +- frontend/index.html | 3 + frontend/src/App.tsx | 2 +- frontend/src/components/GlobalAudioBar.tsx | 8 +- frontend/src/components/LyricsLivePreview.tsx | 39 ++- frontend/src/components/Sidebar.tsx | 4 +- frontend/src/context/ThemeContext.tsx | 12 + frontend/src/index.css | 66 ++-- frontend/src/main.tsx | 2 + frontend/src/pages/ProjectDetail.tsx | 33 +- frontend/src/pages/Separator.tsx | 5 +- frontend/src/pages/Settings.tsx | 117 +++++-- frontend/src/theme-overrides.css | 161 +++++++++ start.sh | 4 +- 17 files changed, 1038 insertions(+), 85 deletions(-) create mode 100644 StemEngine UI Fix.md create mode 100644 StemEngine WebUI Phase 7.md create mode 100644 frontend/src/theme-overrides.css diff --git a/SUMMARIES.md b/SUMMARIES.md index f52853d..c3c5362 100644 --- a/SUMMARIES.md +++ b/SUMMARIES.md @@ -1042,3 +1042,160 @@ Three regressions introduced in Phase 6 corrected: 2. **Dark mode not switching** — Components now rely on `var(--body-background)`, `var(--border-color)` etc. instead of Tailwind `dark:` classes. These CSS custom properties were only being set if MetroUI's own CSS defined them under `[data-theme="dark"]`. `ThemeContext.tsx` updated to explicitly set all required CSS variables via `root.style.setProperty(...)` in the `apply()` function, guaranteeing correct values for both themes regardless of MetroUI's internal CSS. Light values: `--body-background: #ffffff`, `--border-color: #e2e8f0`, etc. Dark values: `--body-background: #0f172a`, `--border-color: #334155`, etc. Semantic colors (`--color-green`, `--color-red`, `--color-amber`, `--color-blue`, `--color-violet`, `--color-teal`) set once (theme-neutral). 3. **VRAM tier card text overflow** — Card ` + ) + })} + + + {/* Content panel: no border/rounded on mobile to use full width */} +
+ {/* active component */} +
+ +``` + +**Desktop layout** — the existing two-column flex (unchanged). + +The `TABS` array should be defined once above the return, replacing the two +places where the nav items are currently rendered inline. + +--- + +### 3 — `index.css`: replace `@apply dark:*` with plain CSS + +**File:** `frontend/src/index.css` + +**Problem:** Scrollbar styles and range input styles use `@apply dark:bg-*` which +requires Tailwind dark-mode processing. As we remove Tailwind these will break. +Also, `appearance: none` on range inputs conflicts with `accent-color` inline styles +set in components (accentColor is ignored when appearance is none). + +**Fix plan:** Replace the relevant blocks with plain CSS that reads from our custom +properties defined by `ThemeContext`: + +```css +/* Remove these @apply blocks and replace with: */ + +::-webkit-scrollbar-thumb { + background: var(--border-color); + border-radius: 9999px; +} +::-webkit-scrollbar-thumb:hover { + background: color-mix(in srgb, var(--border-color) 80%, black); +} + +/* Range inputs: keep appearance-none (so we control the thumb), but + also set a height so the track is visible. */ +input[type="range"] { + appearance: none; + -webkit-appearance: none; + background: var(--border-color); + height: 6px; + border-radius: 9999px; + cursor: pointer; +} +input[type="range"]::-webkit-slider-thumb { + -webkit-appearance: none; + width: 14px; + height: 14px; + border-radius: 50%; + background: rgb(var(--brand-500, 59 130 246)); + cursor: pointer; +} +input[type="range"]::-moz-range-thumb { + width: 14px; + height: 14px; + border-radius: 50%; + background: rgb(var(--brand-500, 59 130 246)); + cursor: pointer; + border: none; +} +``` + +**Note:** With `appearance: none` active on all range inputs, any `accentColor` set +via inline style has no effect. Either keep `appearance: none` (use the CSS thumb +styling above) **or** remove `appearance: none` (use `accentColor` inline). Do not use +both. The plan is to keep `appearance: none` with the explicit thumb CSS since it +gives better cross-browser control and doesn't require per-element inline styles. + +Remove the `accentColor` property from any inline styles in GlobalAudioBar.tsx and +DynamicMixPlayer.tsx if it was added there. + +--- + +### 4 — GlobalAudioBar: dark mode background + +**File:** `frontend/src/components/GlobalAudioBar.tsx` + +**Problem:** The bar uses `backdropFilter: blur(8px)` but the background colour is +unset (transparent or inherited). In dark mode the blur has nothing to tint, so the +bar reads light text on a potentially light-coloured backdrop. + +**Fix plan:** Add a semi-transparent `--body-background` background that reads from +our ThemeContext vars: + +```tsx +// outer fixed div — change background property: +background: 'color-mix(in srgb, var(--body-background) 85%, transparent)', +// or a safe fallback: +background: 'rgba(var(--body-background-raw, 255 255 255), 0.85)', +``` + +Alternatively — the simplest approach without new CSS vars: + +```tsx +background: 'var(--body-background)', +opacity: undefined, // remove any opacity +// add a top border instead of backdrop blur for a cleaner look: +borderTop: '1px solid var(--border-color)', +backdropFilter: 'blur(8px)', +``` + +Also add `--body-background` with a small alpha (e.g. `rgba(15,23,42,0.92)` in dark, +`rgba(255,255,255,0.92)` in light) to ThemeContext so `backdrop-filter` can work as +a frosted-glass effect rather than a full opaque bar. + +--- + +## Future phases (out of scope for this plan) + +| Phase | Scope | Key files | +|---|---|---| +| Phase 7 | Sidebar.tsx full MetroUI migration | `Sidebar.tsx` — already uses only MetroUI `button cycle flat` / `sidebar-open` / `sidebar-closed`; internal layout cards/badges still need inline-style conversion | +| Phase 8 | Separator.tsx | Heavy Tailwind; job submission form, file upload, model select | +| Phase 9 | KaraokeEditor + LyricsLivePreview | Hardcoded hex colour palette; canvas-based editor has special requirements | +| Phase 10 | DynamicMixPlayer | Range inputs, stem volume sliders, waveform vis | +| Phase 11 | Remove Tailwind entirely | Delete `tailwind.config.js`, `postcss.config.js`, remove devDep; replace remaining `@tailwind` directives and `@apply` in `index.css` | + +--- + +## CSS variable reference (ThemeContext) + +All vars are set on `document.documentElement` by `ThemeContext.apply()`: + +| Variable | Light | Dark | +|---|---|---| +| `--body-background` | `#ffffff` | `#0f172a` | +| `--background` | `#f8fafc` | `#1e293b` | +| `--border-color` | `#e2e8f0` | `#334155` | +| `--sidebar-background` | `#f1f5f9` | `#0f172a` | +| `--color-green` | `#22c55e` | `#22c55e` | +| `--color-red` | `#ef4444` | `#ef4444` | +| `--color-amber` | `#f59e0b` | `#f59e0b` | +| `--color-blue` | `#0ea5e9` | `#0ea5e9` | +| `--color-violet` | `#8b5cf6` | `#8b5cf6` | +| `--color-teal` | `#14b8a6` | `#14b8a6` | +| `--brand-500` (raw) | `59 130 246` | (unchanged, set in index.css) | + +Usage pattern in inline styles: +```tsx +// Solid brand colour: +rgb(var(--brand-500, 59 130 246)) + +// Brand with opacity: +rgba(var(--brand-500, 59 130 246), 0.12) + +// Semantic colours: +var(--color-green) +var(--border-color) +var(--body-background) +``` + +--- + +## Shared style constants already in Settings.tsx + +```tsx +const sHdr: CSSProperties = { + display: 'flex', alignItems: 'center', gap: 12, + paddingBottom: 16, borderBottom: '1px solid var(--border-color)', +} +const sFieldLabel: CSSProperties = { + display: 'block', fontSize: 13, fontWeight: 500, marginBottom: 6, +} +const sCtrl: CSSProperties = { + width: '100%', padding: '7px 10px', fontSize: 13, borderRadius: 6, + border: '1px solid var(--border-color)', + background: 'var(--body-background)', color: 'inherit', + boxSizing: 'border-box', +} +const sCard: CSSProperties = { + border: '1px solid var(--border-color)', + borderRadius: 10, padding: 16, background: 'var(--background)', +} +``` + +These should be reused everywhere in Settings.tsx rather than duplicated. + +--- + +## Implementation order + +1. **Fix #1** — `MaintenanceCard` accent props (small, safe, no layout change) +2. **Fix #3** — `index.css` range + scrollbar CSS (no JSX change, fixes slider rendering) +3. **Fix #4** — `GlobalAudioBar` dark background (2-line change in one file) +4. **Fix #2** — Settings mobile nav (larger change; test on narrow viewport first) diff --git a/StemEngine WebUI Phase 7.md b/StemEngine WebUI Phase 7.md new file mode 100644 index 0000000..27e0d3b --- /dev/null +++ b/StemEngine WebUI Phase 7.md @@ -0,0 +1,195 @@ +# StemEngine WebUI — Phase 7: Sidebar Full MetroUI Migration +_Created: 2026-03-11_ + +## Summary + +`Sidebar.tsx` is already almost entirely on inline styles and MetroUI class names. +There is no Tailwind utility class left in the file itself — only `"sidebar-open"` and +`"sidebar-closed"`, which are _defined_ in `index.css` using Tailwind's `@apply` and +`theme()`. Phase 7 converts those two class definitions (and the global `@layer base` +block) to plain CSS, and adds two missing CSS custom properties to `ThemeContext`. + +**`Tailwind` directives (`@tailwind base/components/utilities`) are NOT removed in this +phase** — unmigrated pages (Separator, KaraokeEditor, DynamicMixPlayer, LyricsLivePreview) +still depend on them. Tailwind removal is Phase 11. + +--- + +## Current state + +### What is already done (no changes needed) + +| Component | Status | +|---|---| +| `StatusDot` | ✅ Inline styles + MetroUI vars | +| `ActiveJobItem` | ✅ Inline styles + MetroUI vars | +| `ProjectTile` | ✅ Inline styles + brand CSS vars | +| `SubsonicPanel` | ✅ Inline styles + MetroUI vars | +| `ImportedFileRow` | ✅ Inline styles + MetroUI vars | +| `Sidebar` (main) | ✅ Inline styles + MetroUI vars | +| `AutoPipelineDialog` | ✅ Inline styles + MetroUI vars | + +All `className=` values remaining in `Sidebar.tsx` are MetroUI classes: +`"button cycle flat"`, `"button"`, and `"sidebar-open"` / `"sidebar-closed"`. + +--- + +## Work to do (3 edits) + +--- + +### Edit 1 — `index.css`: convert `@layer base` to plain CSS + +**Current (lines 106–116):** +```css +@layer base { + html { + @apply h-full; + } + body { + @apply h-full antialiased; + } + #root { + @apply h-full; + } +} +``` + +**Replace with:** +```css +html, body, #root { + height: 100%; +} +body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +``` + +`h-full` = `height: 100%`. `antialiased` = the two font-smoothing properties above. +No behavioural change. + +--- + +### Edit 2 — `index.css`: convert sidebar utility classes to plain CSS + +**Current (lines 118–140):** +```css +@layer utilities { + .sidebar-open { + @apply w-72; + } + .sidebar-closed { + @apply w-14; + } +} + +/* On small screens the sidebar overlays content instead of pushing it */ +@media (max-width: 639px) { + .sidebar-open { + position: absolute; + top: 0; + bottom: 0; + left: 0; + z-index: 30; + width: theme('spacing.72'); + } + .sidebar-closed { + width: theme('spacing.10'); + } +} +``` + +**Replace with:** +```css +/* Sidebar width states */ +.sidebar-open { width: 18rem; } /* Tailwind w-72 = 72 × 0.25rem = 18rem = 288px */ +.sidebar-closed { width: 3.5rem; } /* Tailwind w-14 = 14 × 0.25rem = 3.5rem = 56px */ + +/* On small screens the sidebar overlays content instead of pushing it */ +@media (max-width: 639px) { + .sidebar-open { + position: absolute; + top: 0; + bottom: 0; + left: 0; + z-index: 30; + width: 18rem; /* was: theme('spacing.72') */ + } + .sidebar-closed { + width: 2.5rem; /* was: theme('spacing.10') = 10 × 0.25rem = 2.5rem = 40px */ + } +} +``` + +**Tailwind spacing reference:** +| Tailwind token | Value | +|---|---| +| `spacing.72` / `w-72` | `18rem` (288 px) | +| `spacing.14` / `w-14` | `3.5rem` (56 px) | +| `spacing.10` | `2.5rem` (40 px) — mobile collapsed only | + +Note: desktop collapsed (`w-14` = 56 px) vs mobile collapsed (`spacing.10` = 40 px) differ +intentionally — the narrower mobile value fits behind the touch toggle without wasting screen space. + +--- + +### Edit 3 — `ThemeContext.tsx`: add missing CSS vars + +Two CSS custom properties are referenced in `Sidebar.tsx` but not set by `ThemeContext`: + +| Variable | Where used | Current fallback | +|---|---|---| +| `--label-color` | `sectionHeaderStyle` (section header text) | none — renders as `undefined` | +| `--color-gray` | Collapsed project-count badge background | `#64748b` inline fallback | + +**Add to `ThemeContext.apply()`:** +```ts +root.style.setProperty('--label-color', dark ? '#94a3b8' : '#64748b') // slate-400 / slate-500 +root.style.setProperty('--color-gray', '#64748b') // slate-500, theme-neutral +``` + +`--label-color` is used for the dimmed uppercase section headers ("IN PROGRESS", +"SUBSONIC IMPORT"). In dark mode it should be lighter (slate-400); in light mode darker +(slate-500). `--color-gray` is a neutral badge colour — same in both modes. + +`--input-background` (also referenced in Sidebar) already falls back to `var(--background)`, +which IS set by ThemeContext. No change needed. + +--- + +## Files changed + +| File | Change | +|---|---| +| `frontend/src/index.css` | Remove `@layer base` + `@layer utilities`; replace `@apply` / `theme()` with plain CSS values | +| `frontend/src/context/ThemeContext.tsx` | Add `--label-color` and `--color-gray` to `apply()` | + +`Sidebar.tsx` and `AutoPipelineDialog.tsx` — **no changes needed**. + +--- + +## After Phase 7: `index.css` Tailwind dependency map + +| Section | Tailwind after Phase 7 | +|---|---| +| `@tailwind base/components/utilities` | ✅ Still present (needed by Separator, KaraokeEditor, etc.) | +| `@layer base` | ❌ Removed — replaced with plain CSS | +| `@layer utilities` (sidebar) | ❌ Removed — replaced with plain CSS | +| Scrollbar styles | ❌ Already plain CSS (Phase 7 fix #2) | +| Range input styles | ❌ Already plain CSS (Phase 7 fix #2) | + +After Phase 7, `index.css` no longer uses `@apply` or `theme()` anywhere. Tailwind +is still compiled (for Separator/KaraokeEditor/etc.) but no longer processes any of +our custom CSS blocks. + +--- + +## Future phases + +| Phase | Scope | +|---|---| +| Phase 8 | `Separator.tsx` — heavy Tailwind; job form, file upload, model select | +| Phase 9 | `KaraokeEditor.tsx` + `LyricsLivePreview.tsx` — hardcoded hex palette, canvas | +| Phase 10 | `DynamicMixPlayer.tsx` — stem volume sliders, waveform | +| Phase 11 | Remove Tailwind entirely — delete `tailwind.config.js`, `postcss.config.js`, remove `@tailwind` directives | diff --git a/backend/static/index.html b/backend/static/index.html index 2c65eef..2556c44 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -14,13 +14,16 @@ + + + - - + +
diff --git a/frontend/index.html b/frontend/index.html index 1e064d4..075fdb7 100755 --- a/frontend/index.html +++ b/frontend/index.html @@ -14,6 +14,9 @@ + + + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ac82151..a16a948 100755 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -157,7 +157,7 @@ function AppShell() { background: `linear-gradient(90deg, rgb(var(--brand-500, 59 130 246)), #a855f7, #f43f5e)`, }} /> -
+
{/* Brand */}
diff --git a/frontend/src/components/GlobalAudioBar.tsx b/frontend/src/components/GlobalAudioBar.tsx index 5aea723..cb8686c 100755 --- a/frontend/src/components/GlobalAudioBar.tsx +++ b/frontend/src/components/GlobalAudioBar.tsx @@ -31,8 +31,8 @@ export default function GlobalAudioBar() {
getActions().seek(parseFloat(e.target.value))} - style={{ flex: 1, minWidth: 0, cursor: 'pointer', accentColor: 'rgb(var(--brand-500, 59 130 246))' }} + style={{ flex: 1, minWidth: 0, cursor: 'pointer' }} /> {/* Duration */} @@ -110,7 +110,7 @@ export default function GlobalAudioBar() { step={0.05} value={volume} onChange={e => getActions().setVolume(parseFloat(e.target.value))} - style={{ width: 56, cursor: 'pointer', accentColor: 'rgb(var(--brand-500, 59 130 246))' }} + style={{ width: 56, cursor: 'pointer' }} title="Volume" />
diff --git a/frontend/src/components/LyricsLivePreview.tsx b/frontend/src/components/LyricsLivePreview.tsx index efc6e52..4d9eb5b 100755 --- a/frontend/src/components/LyricsLivePreview.tsx +++ b/frontend/src/components/LyricsLivePreview.tsx @@ -2111,57 +2111,72 @@ export default function LyricsLivePreview({ lrcText, audioUrl, stems, title, sty style={undefined} > {/* Visual style tabs + toolbar — scrollable on narrow screens */} -
+
{VISUAL_STYLES.map(s => ( ))} {hasElrc && ( - ELRC + ELRC )}
diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 27e3119..7af1f74 100755 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -530,7 +530,7 @@ export default function Sidebar({ isOpen, onToggle, onOpenProject, onDeleteProje borderRight: '1px solid var(--border-color)', background: 'var(--sidebar-background, var(--body-background))', transition: 'width 0.2s ease-in-out', - overflow: 'hidden', + overflow: 'visible', }} > {/* Toggle tab — always visible */} @@ -555,6 +555,7 @@ export default function Sidebar({ isOpen, onToggle, onOpenProject, onDeleteProje {/* ── Collapsed indicator strip ──────────────────────────────────────── */} {!isOpen && ( +
)}
+
)} {/* ── Expanded content ───────────────────────────────────────────────── */} diff --git a/frontend/src/context/ThemeContext.tsx b/frontend/src/context/ThemeContext.tsx index 860bf0a..05dae24 100755 --- a/frontend/src/context/ThemeContext.tsx +++ b/frontend/src/context/ThemeContext.tsx @@ -38,12 +38,24 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) { } // MetroUI dark mode root.setAttribute('data-theme', r) + // color-scheme: tells the browser to use dark OS chrome (scrollbars, native tooltips, form controls) + root.style.colorScheme = r // Explicit CSS custom properties — guaranteed regardless of MetroUI var availability const dark = r === 'dark' root.style.setProperty('--body-background', dark ? '#0f172a' : '#ffffff') root.style.setProperty('--background', dark ? '#1e293b' : '#f8fafc') root.style.setProperty('--border-color', dark ? '#334155' : '#e2e8f0') root.style.setProperty('--sidebar-background', dark ? '#0f172a' : '#f1f5f9') + // Semi-transparent variant for frosted-glass bars (backdropFilter needs transparency) + root.style.setProperty('--bar-background', dark ? 'rgba(15,23,42,0.92)' : 'rgba(255,255,255,0.92)') + // Text colours — set directly on body (inline style beats MetroUI stylesheet) + // Also exposed as CSS vars for components that need to reference them explicitly + const fg = dark ? '#e2e8f0' : '#1e293b' + document.body.style.color = fg + root.style.setProperty('--foreground', fg) + root.style.setProperty('--foreground-muted', dark ? '#94a3b8' : '#64748b') + root.style.setProperty('--label-color', dark ? '#94a3b8' : '#64748b') + root.style.setProperty('--color-gray', '#64748b') root.style.setProperty('--color-green', '#22c55e') root.style.setProperty('--color-red', '#ef4444') root.style.setProperty('--color-amber', '#f59e0b') diff --git a/frontend/src/index.css b/frontend/src/index.css index 93555e7..81930aa 100755 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -103,25 +103,21 @@ --brand-950: 8 51 68; } -@layer base { - html { - @apply h-full; - } - body { - @apply h-full antialiased; - } - #root { - @apply h-full; - } +/* Phase 7: converted from @layer base + @apply */ +html, body, #root { + height: 100%; +} +body { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } -@layer utilities { - .sidebar-open { - @apply w-72; - } - .sidebar-closed { - @apply w-14; - } +/* Phase 7: converted from @layer utilities + @apply / theme() */ +.sidebar-open { + width: 18rem; /* was: @apply w-72 */ +} +.sidebar-closed { + width: 3.5rem; /* was: @apply w-14 */ } /* On small screens the sidebar overlays content instead of pushing it */ @@ -132,10 +128,10 @@ bottom: 0; left: 0; z-index: 30; - width: theme('spacing.72'); + width: 18rem; /* was: theme('spacing.72') */ } .sidebar-closed { - width: theme('spacing.10'); + width: 2.5rem; /* was: theme('spacing.10') */ } } @@ -146,26 +142,44 @@ } ::-webkit-scrollbar-track { - @apply bg-transparent; + background: transparent; } ::-webkit-scrollbar-thumb { - @apply bg-slate-300 dark:bg-gray-600 rounded-full; + background: var(--border-color, #cbd5e1); + border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { - @apply bg-slate-400 dark:bg-gray-500; + background: color-mix(in srgb, var(--border-color, #94a3b8) 80%, #000); } -/* Range input styling */ +/* Range input styling — appearance: none so we fully control thumb shape. + Height must be set explicitly; without it the track collapses to ~0px. + accent-color is NOT used here because it is ignored when appearance: none is active. */ input[type="range"] { - @apply bg-slate-200 dark:bg-gray-700 rounded-lg appearance-none cursor-pointer; + appearance: none; + -webkit-appearance: none; + background: var(--border-color, #e2e8f0); + height: 6px; + border-radius: 9999px; + cursor: pointer; } input[type="range"]::-webkit-slider-thumb { - @apply appearance-none w-4 h-4 rounded-full bg-brand-500 cursor-pointer; + -webkit-appearance: none; + width: 14px; + height: 14px; + border-radius: 50%; + background: rgb(var(--brand-500, 59 130 246)); + cursor: pointer; } input[type="range"]::-moz-range-thumb { - @apply w-4 h-4 rounded-full bg-brand-500 cursor-pointer border-0; + width: 14px; + height: 14px; + border-radius: 50%; + background: rgb(var(--brand-500, 59 130 246)); + cursor: pointer; + border: none; } diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 78f5a21..96a63f6 100755 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -6,6 +6,8 @@ import './index.css' // MetroUI — Phase 1 shell redesign import '@olton/metroui/lib/metro.css' import '@olton/metroui/lib/icons.css' +// Dark-mode overrides — must come after metro.css so un-layered rules win +import './theme-overrides.css' import '@fontsource/archivo' import '@fontsource/eb-garamond' import '@fontsource/inter' diff --git a/frontend/src/pages/ProjectDetail.tsx b/frontend/src/pages/ProjectDetail.tsx index 4adfc54..fb7dc6e 100755 --- a/frontend/src/pages/ProjectDetail.tsx +++ b/frontend/src/pages/ProjectDetail.tsx @@ -11,6 +11,14 @@ import type { ProjectDetail as PD, Job, JobFile } from '../types' import DynamicMixPlayer from '../components/DynamicMixPlayer' import LyricsLivePreview from '../components/LyricsLivePreview' +// ─── shared form-field style (overrides MetroUI/Tailwind bg in dark mode) ─── +const fieldStyle = { + background: 'var(--background)', + color: 'var(--foreground)', + borderColor: 'var(--border-color)', + colorScheme: 'inherit' as const, +} as const + // ─── helpers ──────────────────────────────────────────────────────────────── function formatTime(s: number): string { @@ -1038,7 +1046,7 @@ function MixesSection({