import { useStore } from '@nanostores/react' import { triggerHaptic } from '@/lib/haptics' import { Check, Palette } from '@/lib/icons' import { cn } from '@/lib/utils' import { $toolViewMode, setToolViewMode } from '@/store/tool-view' import { useTheme } from '@/themes/context' import { BUILTIN_THEMES } from '@/themes/presets' import { MODE_OPTIONS } from './constants' import { prettyName } from './helpers' import { Pill, SectionHeading, SettingsContent } from './primitives' function ThemePreview({ name }: { name: string }) { const t = BUILTIN_THEMES[name] if (!t) { return null } const c = t.colors return (
These are desktop-only display preferences. Mode controls brightness; theme controls the accent palette and chat surface styling.