logsdx
Version:
<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>
10 lines (9 loc) • 586 B
TypeScript
import type { BackgroundInfo } from "./types";
export declare function detectTerminalBackground(): BackgroundInfo;
export declare function detectBrowserBackground(): BackgroundInfo;
export declare function detectSystemBackground(): BackgroundInfo;
export declare function detectBackground(): BackgroundInfo;
export declare function isDarkBackground(): boolean;
export declare function isLightBackground(): boolean;
export declare function getRecommendedThemeMode(): "light" | "dark";
export declare function watchBackgroundChanges(callback: (info: BackgroundInfo) => void): () => void;