Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

design: port uselu web look to desktop (de-lila, B/W monogram, web contrast)

purplec11454047235
diff --git a/src/components/chat/ChatView.tsx b/src/components/chat/ChatView.tsx
index 1d275983..79b71145 100644
--- a/src/components/chat/ChatView.tsx
+++ b/src/components/chat/ChatView.tsx
@@ -10,7 +10,6 @@ import { ChatInput } from './ChatInput'
import { RAGPanel } from './RAGPanel'
import { AgentModeToggle } from './AgentModeToggle'
import { AgentWorkspaceBadge } from './AgentWorkspaceBadge'
-import { LuLogo } from '../layout/LuLogo'
import { ErrorBoundary } from '../ui/ErrorBoundary'
import { useSettingsStore } from '../../stores/settingsStore'
import { FEATURE_FLAGS } from '../../lib/constants'
@@ -144,7 +143,7 @@ export function ChatView() {
exit={{ opacity: 0, y: -20 }}
transition={{ duration: 0.2 }}
>
- <LuLogo size={76} className="mb-4 opacity-95" />
+ <img src="/LU-monogram-bw.png" alt="" width={46} height={46} className="dark:invert-0 invert opacity-20 mb-3" />
<p className="text-[0.72rem] text-gray-600">Generate anything. Locally. Uncensored.</p>
{models.length > 0 && !activeModel && (
diff --git a/src/components/chat/VramSwitchCard.tsx b/src/components/chat/VramSwitchCard.tsx
index 9498a8fb..42360bc7 100644
--- a/src/components/chat/VramSwitchCard.tsx
+++ b/src/components/chat/VramSwitchCard.tsx
@@ -63,7 +63,7 @@ export function VramSwitchCard() {
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -4 }}
transition={{ duration: 0.15 }}
- className="flex items-start gap-2 px-2.5 py-1.5 rounded-md border border-indigo-400/25 bg-indigo-500/[0.07] dark:bg-indigo-500/10 text-[0.65rem] text-indigo-700 dark:text-indigo-200"
+ className="flex items-start gap-2 px-2.5 py-1.5 rounded-md border border-gray-200 dark:border-white/10 bg-gray-50 dark:bg-white/[0.05] text-[0.65rem] text-gray-700 dark:text-gray-200"
>
<span className="mt-0.5 shrink-0">
{done ? <Check size={12} className="text-emerald-500" /> : <Loader2 size={12} className="animate-spin" />}
diff --git a/src/components/layout/AppShell.tsx b/src/components/layout/AppShell.tsx
index 044a0ba1..75d0ba98 100644
--- a/src/components/layout/AppShell.tsx
+++ b/src/components/layout/AppShell.tsx
@@ -571,7 +571,7 @@ export function AppShell() {
}
return (
- <div className="h-screen w-screen overflow-hidden bg-white dark:bg-[#202020] text-gray-900 dark:text-gray-100">
+ <div className="h-screen w-screen overflow-hidden bg-white dark:bg-[#1a1a1a] text-gray-900 dark:text-gray-100">
<div className="h-full flex flex-col">
<Titlebar />
<Header />
diff --git a/src/components/layout/Header.tsx b/src/components/layout/Header.tsx
index 8a71453a..829ea910 100644
--- a/src/components/layout/Header.tsx
+++ b/src/components/layout/Header.tsx
@@ -1,5 +1,5 @@
import { useState, useEffect } from 'react'
-import { Menu, Loader2, Power, Sun, Moon, RefreshCw, X } from 'lucide-react'
+import { Menu, Loader2, Sun, Moon, RefreshCw, X } from 'lucide-react'
import { useUIStore } from '../../stores/uiStore'
import { useSettingsStore } from '../../stores/settingsStore'
import { useChatStore } from '../../stores/chatStore'
@@ -9,7 +9,7 @@ import { ModelSelector } from '../models/ModelSelector'
import { UpdateBadge } from './UpdateBadge'
import { DownloadBadge } from './DownloadBadge'
import { CreateTopControls } from '../create/CreateTopControls'
-import { loadModel, unloadModel, listRunningModels } from '../../api/ollama'
+import { loadModel } from '../../api/ollama'
import { getProviderIdFromModel } from '../../api/providers'
import { ModelLoadError } from '../../lib/ollama-errors'
import { useModels } from '../../hooks/useModels'
@@ -22,7 +22,6 @@ export function Header() {
const isComparing = useCompareStore((s) => s.isComparing)
const activeModel = useModelStore((s) => s.activeModel)
const [loadingState, setLoadingState] = useState<'idle' | 'loading' | 'unloading'>('idle')
- const [isModelLoaded, setIsModelLoaded] = useState(false)
// Stale-manifest notice shown next to the Lichtschalter when Ollama rejects
// the model with "does not support (chat|completion|generate)". Offers a
// one-click refresh that re-pulls the model (progress tracked in DownloadBadge).
@@ -51,7 +50,6 @@ export function Header() {
setLoadingState('loading')
try {
await loadModel(modelToUse)
- setIsModelLoaded(true)
// If the store still thinks this model is stale (e.g. a scan ran before
// the user re-pulled externally), clear it.
markHealthFresh(modelToUse)
@@ -67,21 +65,6 @@ export function Header() {
finally { setLoadingState('idle') }
}
- const handleUnload = async () => {
- if (!modelToUse || loadingState !== 'idle') return
- setLoadingState('unloading')
- try {
- await unloadModel(modelToUse)
- setIsModelLoaded(false)
- } catch (e) {
- if (e instanceof ModelLoadError && (e.kind === 'stale-manifest' || e.kind === 'missing-blob')) {
- setStaleError({ model: e.model, message: e.message })
- syncStaleToStore(e.model)
- }
- }
- finally { setLoadingState('idle') }
- }
-
const handleRefreshStale = async () => {
if (!staleError) return
const name = staleError.model
@@ -131,30 +114,6 @@ export function Header() {
}
}, [modelToUse, isOllamaModel, healthStaleModels, staleError])
- // Check loaded state when model changes
- useEffect(() => {
- if (modelToUse && isOllamaModel) {
- listRunningModels().then(running => {
- setIsModelLoaded(running.some(r => r.includes(modelToUse.split(':')[0])))
- })
- } else {
- setIsModelLoaded(false)
- }
- }, [modelToUse, isOllamaModel])
-
- // Poll running state every 5s while idle
- useEffect(() => {
- if (!modelToUse || !isOllamaModel) return
- const interval = setInterval(() => {
- if (loadingState === 'idle') {
- listRunningModels().then(running => {
- setIsModelLoaded(running.some(r => r.includes(modelToUse.split(':')[0])))
- })
- }
- }, 5000)
- return () => clearInterval(interval)
- }, [modelToUse, isOllamaModel, loadingState])
-
const toggleTheme = () => {
updateSettings({ theme: settings.theme === 'dark' ? 'light' : 'dark' })
}
@@ -176,7 +135,7 @@ export function Header() {
)
return (
- <header className="h-10 flex items-center justify-between px-3 border-b border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-[#262626] z-20">
+ <header className="relative h-10 flex items-center justify-between px-3 border-b border-gray-200 dark:border-white/[0.04] bg-gray-50 dark:bg-[#212121] z-20">
{/* Left: Sidebar + Logo */}
<div className="flex items-center gap-2">
<button
@@ -192,82 +151,27 @@ export function Header() {
useCompareStore.getState().setComparing(false)
setView('chat')
}}
- className="flex items-center shrink-0 transition"
- title="LU Studio"
+ className="flex items-center shrink-0 text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-white transition"
+ aria-label="Locally Uncensored"
>
- {/* Brand wordmark in the top panel (David 2026-06-02): no logo here
- (the big mark was too large) — just "LU Studio". The logo itself
- lives in the titlebar above. */}
- <span className="text-sm font-semibold tracking-tight">
- <span className="text-violet-500">LU</span>{' '}
- <span className="text-gray-700 dark:text-gray-200">Studio</span>
- </span>
+ {/* Top-panel brand mark: the black/white monogram only (no wordmark),
+ inverted per theme. Matches the web companion. */}
+ <img src="/LU-monogram-bw.png" alt="" width={33} height={33} className="dark:invert-0 invert opacity-80" />
</button>
</div>
- {/* Center: contextual controls.
- - Chat views → chat model picker + Ollama Lichtschalter
- - Create view → Image/Video mode switch + ComfyUI model picker + ComfyUI Lichtschalter
- Both layouts follow the same visual pattern so the user has a
- single familiar control surface. */}
- <div className="flex items-center gap-1">
+ {/* Center: model picker, geometrically centered between the logo (left)
+ and the utilities (right). The per-row Lichtschalter that used to
+ live here has moved INTO the dropdown — each model row in
+ `ModelSelector` has its own load/unload toggle next to the name. */}
+ <div className="absolute left-1/2 -translate-x-1/2 flex items-center gap-1">
{currentView === 'create' ? (
<CreateTopControls />
) : (
<>
<ModelSelector />
- {isOllamaModel && (
- (() => {
- const busy = loadingState !== 'idle' || isRefreshing
- const hasStale = !!staleError
- const onClick = () => {
- if (busy) return
- if (hasStale) return // user uses the Refresh chip instead
- if (isModelLoaded) handleUnload()
- else handleLoad()
- }
- const title = busy
- ? (isRefreshing ? 'Refreshing model…' : loadingState === 'loading' ? 'Loading model…' : 'Unloading model…')
- : hasStale
- ? `Model "${staleError!.model}" has a stale manifest — click Refresh`
- : (isModelLoaded ? 'Model loaded — click to unload' : 'Model not loaded — click to load into VRAM')
- return (
- <button
- onClick={onClick}
- disabled={busy || hasStale}
- title={title}
- aria-label={title}
- className={`relative flex items-center h-[18px] w-[34px] rounded-full transition-colors duration-200 ${
- busy
- ? 'bg-amber-500/25 border border-amber-400/40'
- : hasStale
- ? 'bg-red-500/30 border border-red-400/60 animate-pulse'
- : isModelLoaded
- ? 'bg-green-500/25 border border-green-400/50'
- : 'bg-gray-200 dark:bg-white/10 border border-gray-300 dark:border-white/15 hover:bg-gray-300 dark:hover:bg-white/15'
- }`}
- >
- <span
- className={`absolute top-[1px] flex items-center justify-center w-[14px] h-[14px] rounded-full shadow-sm transition-all duration-200 ${
- busy
- ? 'left-[9px] bg-amber-400'
- : hasStale
- ? 'left-[1px] bg-red-500'
- : isModelLoaded
- ? 'left-[18px] bg-green-400'
- : 'left-[1px] bg-gray-400 dark:bg-gray-500'
- }`}
- >
- {busy ? (
- <Loader2 size={9} className="animate-spin text-gray-900" />
- ) : (
- <Power size={9} className="text-gray-900" />
- )}
- </span>
- </button>
- )
- })()
- )}
+ {/* Lichtschalter (load/unload into VRAM) now lives per-row inside the
+ ModelSelector dropdown — the header center stays just the picker. */}
{isOllamaModel && staleError && (
<div
className="ml-1.5 flex items-center gap-1 px-1.5 py-[2px] rounded-md bg-amber-500/10 border border-amber-400/30 text-[0.6rem]"
diff --git a/src/components/layout/LuLogo.tsx b/src/components/layout/LuLogo.tsx
deleted file mode 100644
index c15b7cb0..00000000
--- a/src/components/layout/LuLogo.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-// Brand mark — the LU monogram painted in the v2.5.0 accent violet.
-//
-// The shipped asset (`/LU-monogram.svg`) is a VECTOR glyph (white-filled paths
-// on transparent — vectorised from the old 512px bitmap whose binary 1-bit alpha
-// rendered visibly jagged at every size). As a CSS mask it anti-aliases perfectly
-// at any size. White fill = opaque under BOTH alpha- and luminance-mask modes
-// (robust against WebView2 mask-mode ambiguity; black would invert under luminance).
-// Instead of shipping a separate tinted asset (and keeping it in sync), we
-// render the glyph through a CSS mask and fill it with the violet token —
-// so the same source asset can be painted ANY colour, and it tracks the
-// design-token palette automatically. WebView2 / Chromium support
-// `-webkit-mask-image`; the unprefixed `mask-*` is set too for forward-compat.
-//
-// Used everywhere the brand mark appears (titlebar, header, empty state) so
-// the "violet LU monogram, no wordmark" identity is defined in exactly one
-// place (David, 2026-06-01: "LU logo überall aber lila, LUncensored weg").
-export function LuLogo({
- size = 24,
- color = 'var(--color-violet-500)',
- className = '',
- title = 'Locally Uncensored',
-}: {
- size?: number
- /** Any CSS colour. Defaults to the brand violet token. */
- color?: string
- className?: string
- /** Accessible label + native tooltip; the wordmark is intentionally gone. */
- title?: string
-}) {
- return (
- <span
- role="img"
- aria-label={title}
- title={title}
- className={className}
- style={{
- display: 'inline-block',
- flexShrink: 0,
- width: size,
- height: size,
- backgroundColor: color,
- WebkitMaskImage: 'url(/LU-monogram.svg)',
- maskImage: 'url(/LU-monogram.svg)',
- WebkitMaskRepeat: 'no-repeat',
- maskRepeat: 'no-repeat',
- WebkitMaskPosition: 'center',
- maskPosition: 'center',
- WebkitMaskSize: 'contain',
- maskSize: 'contain',
- }}
- />
- )
-}
diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx
index 964d4525..28d9f9ae 100644
--- a/src/components/layout/Sidebar.tsx
+++ b/src/components/layout/Sidebar.tsx
@@ -203,7 +203,7 @@ export function Sidebar() {
<AnimatePresence>
{sidebarOpen && (
<motion.aside
- className="w-56 h-full border-r border-gray-200 dark:border-white/[0.06] bg-gray-50 dark:bg-[#262626] flex flex-col z-20 overflow-hidden"
+ className="w-56 h-full border-r border-gray-200 dark:border-white/[0.04] bg-gray-50 dark:bg-[#1a1a1a] flex flex-col z-20 overflow-hidden"
style={{ zoom: 1.25 }}
initial={{ width: 0, opacity: 0 }}
animate={{ width: 224, opacity: 1 }}
diff --git a/src/components/layout/Titlebar.tsx b/src/components/layout/Titlebar.tsx
index 1688f772..eda1bcb0 100644
--- a/src/components/layout/Titlebar.tsx
+++ b/src/components/layout/Titlebar.tsx
@@ -1,6 +1,5 @@
import { useEffect, useState } from 'react'
import { Minus, Square, Copy, X } from 'lucide-react'
-import { LuLogo } from './LuLogo'
const isTauri = typeof window !== 'undefined' && !!(window as any).__TAURI_INTERNALS__
@@ -48,11 +47,11 @@ export function Titlebar() {
return (
<div
data-tauri-drag-region
- className="h-8 flex items-center justify-between bg-white dark:bg-[#202020] border-b border-gray-200 dark:border-white/[0.06] select-none"
+ className="h-8 flex items-center justify-between bg-white dark:bg-[#212121] border-b border-gray-200 dark:border-white/[0.04] select-none"
>
{/* Left: App icon + title */}
<div data-tauri-drag-region className="flex items-center gap-1.5 pl-3">
- <LuLogo size={21} className="pointer-events-none" />
+ <img src="/LU-monogram-bw.png" alt="" width={18} height={18} className="pointer-events-none dark:invert-0 invert opacity-80" />
</div>
{/* Right: Window controls */}
diff --git a/src/components/models/DiscoverModels.tsx b/src/components/models/DiscoverModels.tsx
index 1029e5a9..0d250928 100644
--- a/src/components/models/DiscoverModels.tsx
+++ b/src/components/models/DiscoverModels.tsx
@@ -485,7 +485,7 @@ export function DiscoverModels({ category }: Props) {
const filteredUncensored = uncensoredModels.filter(m => matchesSearch(m) && matchesVramTier(m.sizeGB))
const filteredMainstream = mainstreamModels.filter(m => matchesSearch(m) && matchesVramTier(m.sizeGB))
- const title = 'Discover LUncensored'
+ const title = 'Discover'
const subtitle = isText
? `Download GGUF models from HuggingFace.${hfModelPath ? ` Saves to: ${hfModelPath}` : ''}`
: isImage
diff --git a/src/components/models/ModelManager.tsx b/src/components/models/ModelManager.tsx
index 1f454339..6ca3836f 100644
--- a/src/components/models/ModelManager.tsx
+++ b/src/components/models/ModelManager.tsx
@@ -163,7 +163,7 @@ export function ModelManager() {
: 'text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-white'
}`}
>
- Discover LUncensored
+ Discover
</button>
</div>
diff --git a/src/index.css b/src/index.css
index 7b19522f..ca03fd0c 100644
--- a/src/index.css
+++ b/src/index.css
@@ -3,104 +3,24 @@
@custom-variant dark (&:where(.dark, .dark *));
/* ─────────────────────────────────────────────────────────────────────
- v2.5.0 Design-Polish — token layer (DD)
- Strategy: redefine the palette at the root so every existing utility
- (bg-/text-/border-/ring-/from-/hover:/dark:) inherits the new look
- without touching 300+ component call-sites.
- - ONE accent: the whole cool-accent family (blue/indigo/violet/purple/
- sky/cyan) collapses to a single muted violet → primary actions only.
- - Semantics kept: green/emerald stay green for success/status, just
- desaturated so they read "calm" instead of "neon toy".
- - Neutral ramp: spread wider than the flat #161616 base for real depth.
+ Visual layer aligned with the uselu web companion (DD 2026-06-05)
+ The previous build collapsed the whole cool-accent family
+ (blue/indigo/violet/purple/sky/cyan) onto ONE muted-violet ramp via a
+ @theme override, which tinted the entire app lilac. The web companion
+ keeps Tailwind's DEFAULT palette + neutral greys and only uses a few
+ deliberate purple accents. To match it we drop the colour-family override
+ entirely (Tailwind defaults return: blue is blue, green is green, the
+ sparse purple accents render as real purple, same classes the web uses)
+ and keep only the neutral ramp + structural radius/shadow tokens, which
+ carry no colour identity.
───────────────────────────────────────────────────────────────────── */
@theme {
- /* ── Accent → muted violet ──────────────────────────────────────────
- The whole cool-accent family (blue/indigo/purple/violet/sky/cyan)
- collapses to ONE violet ramp. Full 50→900 so badges, hovers and
- dark/light tints all stay on-brand instead of a few stray blues. */
- --color-violet-50: #f4f1fe;
- --color-violet-100: #e9e3fc;
- --color-violet-200: #d6cbf8;
- --color-violet-300: #cabef5;
- --color-violet-400: #c2b2f3;
- --color-violet-500: #a094f8;
- --color-violet-600: #8974dd;
- --color-violet-700: #7462bd;
- --color-violet-800: #5847a1;
- --color-violet-900: #44377d;
-
- --color-purple-50: #f4f1fe;
- --color-purple-100: #e9e3fc;
- --color-purple-200: #d6cbf8;
- --color-purple-300: #cabef5;
- --color-purple-400: #c2b2f3;
- --color-purple-500: #a094f8;
- --color-purple-600: #8974dd;
- --color-purple-700: #7462bd;
- --color-purple-800: #5847a1;
- --color-purple-900: #44377d;
-
- --color-indigo-50: #f4f1fe;
- --color-indigo-100: #e9e3fc;
- --color-indigo-200: #d6cbf8;
- --color-indigo-300: #cabef5;
- --color-indigo-400: #c2b2f3;
- --color-indigo-500: #a094f8;
- --color-indigo-600: #8974dd;
- --color-indigo-700: #7462bd;
- --color-indigo-800: #5847a1;
- --color-indigo-900: #44377d;
-
- --color-blue-50: #f4f1fe;
- --color-blue-100: #e9e3fc;
- --color-blue-200: #d6cbf8;
- --color-blue-300: #cabef5;
- --color-blue-400: #c2b2f3;
- --color-blue-500: #a094f8;
- --color-blue-600: #8974dd;
- --color-blue-700: #7462bd;
- --color-blue-800: #5847a1;
- --color-blue-900: #44377d;
-
- --color-sky-300: #cabef5;
- --color-sky-400: #c2b2f3;
- --color-sky-500: #a094f8;
- --color-sky-600: #8974dd;
-
- --color-cyan-300: #cabef5;
- --color-cyan-400: #c2b2f3;
- --color-cyan-500: #a094f8;
- --color-cyan-600: #8974dd;
-
- /* ── Success / status → desaturated green (semantics preserved) ──
- Stays unmistakably green for online/success/checkmarks, just calmed
- down from neon #22c55e so it reads "instrument", not "toy". */
- --color-green-50: #eef7f2;
- --color-green-100: #d8ede1;
- --color-green-200: #b3dcc6;
- --color-green-300: #8ccba8;
- --color-green-400: #6fc096;
- --color-green-500: #54a87b;
- --color-green-600: #428a63;
- --color-green-700: #356f50;
- --color-green-800: #2a5840;
- --color-green-900: #1f4030;
-
- --color-emerald-50: #eef7f2;
- --color-emerald-100: #d8ede1;
- --color-emerald-200: #b3dcc6;
- --color-emerald-300: #8ccba8;
- --color-emerald-400: #6fc096;
- --color-emerald-500: #54a87b;
- --color-emerald-600: #428a63;
- --color-emerald-700: #356f50;
- --color-emerald-800: #2a5840;
- --color-emerald-900: #1f4030;
-
- /* ── Neutral ramp — spread for depth (uselu base, widened) ── */
+ /* ── Neutral ramp — spread for depth (uselu base, widened). Used by the
+ elevated-surface helper below; the canvas/sidebar/header shades live as
+ literals in the layout components. ── */
--color-lu-base: #202020; /* app canvas */
- --color-lu-panel: #262626; /* sidebar, panels (= uselu base) */
- --color-lu-raised: #2d2d2d; /* cards, hover (= uselu elevated) */
+ --color-lu-panel: #262626; /* sidebar, panels */
+ --color-lu-raised: #2d2d2d; /* cards, hover */
--color-lu-overlay: #363636; /* dropdowns, modals, popovers */
/* ── Form: moderately less round (pills/cards read less "toy") ── */
@@ -134,23 +54,25 @@ body {
height: 100vh;
}
-/* Glass card — v2.5.0 polish: was "near-invisible" (border-bottom only),
- now a real raised surface so panels read as built objects with depth
- instead of a flat mockup. */
+/* Glass card — aligned with the web companion: near-invisible (a single
+ hairline divider, no filled surface) so panels read as light structure
+ instead of stacked cards. */
.light .glass-card {
- background: rgba(0, 0, 0, 0.02);
- border: 1px solid rgba(0, 0, 0, 0.08);
- border-radius: 0.625rem;
- padding: 0.75rem 0.875rem;
- margin-bottom: 0.5rem;
+ background: transparent;
+ border: none;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
+ border-radius: 0;
+ padding-bottom: 0.75rem;
+ margin-bottom: 0.25rem;
}
.dark .glass-card {
- background: rgba(255, 255, 255, 0.025);
- border: 1px solid rgba(255, 255, 255, 0.07);
- border-radius: 0.625rem;
- padding: 0.75rem 0.875rem;
- margin-bottom: 0.5rem;
+ background: transparent;
+ border: none;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);
+ border-radius: 0;
+ padding-bottom: 0.75rem;
+ margin-bottom: 0.25rem;
}
/* Custom scrollbar */
@@ -212,7 +134,10 @@ body {
background: rgba(255, 255, 255, 0.12);
}
::-webkit-scrollbar-thumb:hover {
- background: var(--color-violet-500);
+ background: rgba(0, 0, 0, 0.30);
+}
+.dark ::-webkit-scrollbar-thumb:hover {
+ background: rgba(255, 255, 255, 0.22);
}
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:start,
@@ -298,15 +223,14 @@ input[type="range"]::-webkit-slider-thumb {
-webkit-app-region: no-drag;
}
-/* Selection — tinted to the violet accent */
+/* Selection — neutral grey (web companion), no accent tint */
::selection {
- background: rgba(160, 148, 248, 0.28);
+ background: rgba(100, 100, 100, 0.3);
}
/* ─────────────────────────────────────────────────────────────────────
- v2.5.0 Design-Polish — HUD layer (ported from uselu web app)
- Gives the desktop the same "alive / tech instrument" character the
- web companion already has, and keeps the two visually consistent.
+ HUD layer — kept from the web companion. Gives the desktop the same
+ "alive / tech instrument" character and keeps the two visually consistent.
───────────────────────────────────────────────────────────────────── */
/* Faint vertical scan-grid over the app canvas — barely-there texture so
@@ -332,12 +256,12 @@ input[type="range"]::-webkit-slider-thumb {
background-repeat: repeat-y;
}
-/* Refined focus ring — thin, violet, replaces the browser default blue.
- Limited to clickable elements; inputs/textcareas get their focus
- affordance from their own border-color change (adding an outline there
- reads as a doubled "Windows accent ring"). */
+/* Refined focus ring — thin, neutral blue (web companion), replaces the
+ browser default. Limited to clickable elements; inputs/textareas get their
+ focus affordance from their own border-color change (adding an outline
+ there reads as a doubled "Windows accent ring"). */
:is(button, a):focus-visible {
- outline: 1px solid rgba(160, 148, 248, 0.6);
+ outline: 1px solid rgba(96, 165, 250, 0.6);
outline-offset: 1px;
}
:is(input, textarea, select):focus-visible {
@@ -364,3 +288,77 @@ input[type="range"]::-webkit-slider-thumb {
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: var(--shadow-lg);
}
+
+/* ─────────────────────────────────────────────────────────────────────
+ Theme-contrast rescue layer — ported from the web companion.
+ Many components were authored dark-first and use raw `text-gray-300/400`,
+ `text-white`, `bg-white/N`, `border-white/N` without a `dark:` variant.
+ On the darker #1a1a1a base those dim greys nearly vanish; in light mode the
+ dark-first whites/white-tints disappear on white. We remap them theme-
+ conditionally so the 300+ component call-sites don't each need touching.
+ Specificity: `.light .x` / `.dark .x` (0,2,0) beats the plain utility (0,1,0).
+ (The web scopes these to `.lu-app-scaled`; the desktop has no landing page,
+ so a plain theme-root scope is equivalent and simpler.)
+ ───────────────────────────────────────────────────────────────────── */
+
+/* Light mode: too-dim greys turn invisible on white. Darken them. */
+.light .text-gray-300 { color: rgb(75 85 99); } /* → gray-600 */
+.light .text-gray-400 { color: rgb(55 65 81); } /* → gray-700 */
+.light .text-gray-500 { color: rgb(55 65 81); } /* → gray-700 — same so 500 isn't dimmer than 400 */
+.light .text-gray-600 { color: rgb(31 41 55); } /* → gray-800 */
+
+/* Dark mode (#1a1a1a bg): too-dim greys turn invisible. Bump them up. */
+.dark .text-gray-700 { color: rgb(107 114 128); } /* → gray-500 */
+.dark .text-gray-600 { color: rgb(156 163 175); } /* → gray-400 */
+.dark .text-gray-500 { color: rgb(156 163 175); } /* → gray-400 — same as 600 so weight is consistent */
+
+/* Placeholders — Tailwind doesn't add a `dark:` for these. */
+.light ::placeholder { color: rgb(31 41 55); } /* gray-800 */
+.dark ::placeholder { color: rgb(229 231 235); } /* gray-200 */
+
+/* Light-mode rescue for legacy dark-first components that bake in
+ `text-white` / `bg-white/N` / `border-white/N` without a `dark:` variant.
+ Re-map them to dark-on-light equivalents so modals/tutorials stay legible.
+ Tailwind escapes the slash ("/" → "\/") and brackets ("[" → "\["), so the
+ selectors below need backslashes to match. */
+.light .text-white { color: rgb(17 24 39); } /* gray-900 */
+.light .hover\:text-white:hover { color: rgb(17 24 39); }
+
+.light .bg-white\/5 { background-color: rgba(0, 0, 0, 0.04); }
+.light .bg-white\/8 { background-color: rgba(0, 0, 0, 0.05); }
+.light .bg-white\/10 { background-color: rgba(0, 0, 0, 0.06); }
+.light .bg-white\/12 { background-color: rgba(0, 0, 0, 0.07); }
+.light .bg-white\/15 { background-color: rgba(0, 0, 0, 0.08); }
+.light .bg-white\/20 { background-color: rgba(0, 0, 0, 0.10); }
+.light .bg-white\/\[0\.03\] { background-color: rgba(0, 0, 0, 0.03); }
+.light .bg-white\/\[0\.05\] { background-color: rgba(0, 0, 0, 0.04); }
+.light .bg-white\/\[0\.06\] { background-color: rgba(0, 0, 0, 0.05); }
+.light .bg-white\/\[0\.08\] { background-color: rgba(0, 0, 0, 0.06); }
+
+.light .hover\:bg-white\/5:hover { background-color: rgba(0, 0, 0, 0.04); }
+.light .hover\:bg-white\/8:hover { background-color: rgba(0, 0, 0, 0.06); }
+.light .hover\:bg-white\/10:hover { background-color: rgba(0, 0, 0, 0.07); }
+.light .hover\:bg-white\/12:hover { background-color: rgba(0, 0, 0, 0.08); }
+.light .hover\:bg-white\/15:hover { background-color: rgba(0, 0, 0, 0.09); }
+.light .hover\:bg-white\/20:hover { background-color: rgba(0, 0, 0, 0.10); }
+
+.light .border-white\/5 { border-color: rgba(0, 0, 0, 0.06); }
+.light .border-white\/8 { border-color: rgba(0, 0, 0, 0.08); }
+.light .border-white\/10 { border-color: rgba(0, 0, 0, 0.10); }
+.light .border-white\/15 { border-color: rgba(0, 0, 0, 0.12); }
+.light .border-white\/20 { border-color: rgba(0, 0, 0, 0.15); }
+.light .border-white\/25 { border-color: rgba(0, 0, 0, 0.18); }
+.light .border-white\/\[0\.04\] { border-color: rgba(0, 0, 0, 0.06); }
+.light .border-white\/\[0\.06\] { border-color: rgba(0, 0, 0, 0.08); }
+.light .border-white\/\[0\.08\] { border-color: rgba(0, 0, 0, 0.10); }
+.light .border-white\/\[0\.1\] { border-color: rgba(0, 0, 0, 0.12); }
+
+.light .hover\:border-white\/15:hover { border-color: rgba(0, 0, 0, 0.12); }
+.light .hover\:border-white\/20:hover { border-color: rgba(0, 0, 0, 0.15); }
+.light .hover\:border-white\/25:hover { border-color: rgba(0, 0, 0, 0.18); }
+
+.light .focus\:border-white\/20:focus { border-color: rgba(0, 0, 0, 0.20); }
+.light .focus\:border-white\/25:focus { border-color: rgba(0, 0, 0, 0.22); }
+
+.light .placeholder-gray-500::placeholder,
+.light .placeholder-gray-600::placeholder { color: rgb(75 85 99); }