alacritty-theme-switch
Version:
CLI utility for switching Alacritty color themes
21 lines • 543 B
TypeScript
/**
* Detects whether a theme is light or dark based on its background color.
*
* @param theme - Parsed theme content
* @returns "light" or "dark" based on the background color luminance
*
* @example
* ```ts
* const theme = {
* colors: {
* primary: {
* background: "#1e2127",
* foreground: "#abb2bf"
* }
* }
* };
* detectThemeBrightness(theme) // "dark"
* ```
*/
export declare function detectThemeBrightness(theme: Record<string, unknown>): "light" | "dark";
//# sourceMappingURL=theme-utils.d.ts.map