SPB Git

Repository Public

use-terminal-theme.ts 373 B 11 lines typescript

1'use client';2import { useSettings } from '@/lib/queries';3import { useTheme, type Theme } from '@/stores/theme';45/** Terminal palette: the user's `terminalTheme`, where 'auto' follows the app theme. */6export function useTerminalTheme(): Theme {7  const app = useTheme((s) => s.theme);8  const pref = useSettings().terminalTheme;9  return pref === 'auto' ? app : pref;10}11
Files main
Menu

Theme