unified-query
Version:
Composable search input with autocompletion and a rich query-language parser for the Unified Data System
26 lines (25 loc) • 794 B
TypeScript
import type { Extension } from '@codemirror/state';
import type { StyleSpec } from 'style-mod';
export interface SearchThemeOptions {
/** Light or dark variant (affects default tooltip shadow, etc.) */
dark?: boolean;
/** Main font family for the query input */
fontFamily?: string;
/** Font size (e.g. "16px") */
fontSize?: string;
background?: string;
foreground?: string;
selection?: string;
caret?: string;
autocomplete?: {
background?: string;
border?: string;
selectionBackground?: string;
foreground?: string;
};
icons?: Record<string, string>;
entityName?: StyleSpec;
keyword?: StyleSpec;
}
export declare function createTheme(opts?: SearchThemeOptions): Extension;
export default createTheme;